test_page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test_page [2024/02/10 20:29] – [RadWaitingBar – rwb] admin | test_page [2024/02/10 20:34] (current) – [* RadWizard – rw] admin | ||
|---|---|---|---|
| Line 1236: | Line 1236: | ||
| Like a progress bar but with no start or end. It just shows activity. | Like a progress bar but with no start or end. It just shows activity. | ||
| - | ^{{tdn:image128.gif? | + | ^{{tdn:image129.gif? |
| - | | |{{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | | |{{tdn: |
| Properties | Properties | ||
| Line 1270: | Line 1270: | ||
| RadRating is a flexible UI component that allows users to place their rating by selecting from a finite number of items (stars, diamonds and hearts). The developers can fully customize the control by configuring its orientation, | RadRating is a flexible UI component that allows users to place their rating by selecting from a finite number of items (stars, diamonds and hearts). The developers can fully customize the control by configuring its orientation, | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| ==== RadRotator – rrot ==== | ==== RadRotator – rrot ==== | ||
| Line 1278: | Line 1278: | ||
| RadRotator is a multipurpose component for content rotation and personalization. Highly customizable, | RadRotator is a multipurpose component for content rotation and personalization. Highly customizable, | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| ==== RadTitleBar – rtb ==== | ==== RadTitleBar – rtb ==== | ||
| Line 1292: | Line 1292: | ||
| To customize the help, minimize, maximize and close buttons, use the RadTitleBar.TitleBarElement' | To customize the help, minimize, maximize and close buttons, use the RadTitleBar.TitleBarElement' | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| //Note: By default, the HelpButton is not shown. It is necessary to set its Visibility property to ElementVisibility.Visible in order to be displayed.// | //Note: By default, the HelpButton is not shown. It is necessary to set its Visibility property to ElementVisibility.Visible in order to be displayed.// | ||
| Line 1306: | Line 1306: | ||
| Using Telerik scrollbars is a bit more intricate compared to using the standard scrollbars because you have to handle scroll event manually. Add a RadPanel to your form then add a RadVScrollbar in the panel and dock it to the Right. Add another RadPanel inside the 1< | Using Telerik scrollbars is a bit more intricate compared to using the standard scrollbars because you have to handle scroll event manually. Add a RadPanel to your form then add a RadVScrollbar in the panel and dock it to the Right. Add another RadPanel inside the 1< | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| Then subscribe to the Scroll event of the vertical scrollbar and assign its negated value to the Top property of the second RadPanel: | Then subscribe to the Scroll event of the vertical scrollbar and assign its negated value to the Top property of the second RadPanel: | ||
| + | <code csharp> | ||
| void radVScrollBar1_Scroll(object sender, ScrollEventArgs e) | void radVScrollBar1_Scroll(object sender, ScrollEventArgs e) | ||
| - | |||
| { | { | ||
| - | + | this.radPanel2.Top = -this.radVScrollBar1.Value; | |
| - | this.radPanel2.Top = -this.radVScrollBar1.Value; | + | |
| } | } | ||
| + | </ | ||
| Finally, set the Maximum property of the scrollbar to reflect the size of the scrollable height which is the total height of the scrollable content minus the visible height. For the example of this section in particular, that is the height of the second panel minus the height of the first panel. | Finally, set the Maximum property of the scrollbar to reflect the size of the scrollable height which is the total height of the scrollable content minus the visible height. For the example of this section in particular, that is the height of the second panel minus the height of the first panel. | ||
| + | <code csharp> | ||
| this.radVScrollBar1.Maximum = this.radPanel2.Size.Height - this.radPanel1.Size.Height; | this.radVScrollBar1.Maximum = this.radPanel2.Size.Height - this.radPanel1.Size.Height; | ||
| + | </ | ||
| ==== * RadWizard – rw ==== | ==== * RadWizard – rw ==== | ||
| - | http:// | + | http:// |
| http:// | http:// | ||
| Design Time Settings http:// | Design Time Settings http:// | ||
| Line 1331: | Line 1328: | ||
| Wizard dialog with multiple pages and < | Wizard dialog with multiple pages and < | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| * Could leave as default assigned name unless we will use more than one Wizard in a project. | * Could leave as default assigned name unless we will use more than one Wizard in a project. | ||
| Line 1368: | Line 1365: | ||
| > [[http:// | > [[http:// | ||
| > | > | ||
| - | > Subscribe to the Next event | + | Subscribe to the Next event |
| - | > | + | this.radWizard1.Next += new WizardCancelEventHandler(radWizard1_Next); |
| - | > this.radWizard1.Next += new WizardCancelEventHandler(radWizard1_Next); | + | Handle the Next event |
| - | > | + | <code csharp> |
| - | > Handle the Next event | + | private void radWizard1_Next(object sender, WizardCancelEventArgs e) |
| - | > | + | { |
| - | > private void radWizard1_Next(object sender, WizardCancelEventArgs e) | + | |
| - | > | + | |
| - | > { | + | |
| - | > | + | |
| - | > if (this.radWizard1.SelectedPage == this.radWizard1.Pages[1]) %%//%% Check if this is the desired page | + | |
| - | > | + | |
| - | > { | + | } |
| - | > | + | } |
| - | > %%//%% Do some validation here | + | </code> |
| - | > | + | |
| - | > e.Cancel = true; %%//%% If the validation does not pass | + | |
| - | > | + | |
| - | > this.radWizard1.SelectedPage = this.radWizard1.Pages[0]; | + | |
| - | > | + | |
| - | > %%//%% Or you could show some message to the user | + | |
| - | > | + | |
| - | > } | + | |
| - | > | + | |
| - | > } | + | |
| * Previous - Fires when the Back command button is clicked. It is cancelable event. | * Previous - Fires when the Back command button is clicked. It is cancelable event. | ||
| * SelectedPageChanging - Fires before the selected page of RadWizard is changed. It is cancelable event. The arguments of the event provide the selected page of the control and the page to be selected. | * SelectedPageChanging - Fires before the selected page of RadWizard is changed. It is cancelable event. The arguments of the event provide the selected page of the control and the page to be selected. | ||
test_page.1707614952.txt.gz · Last modified: 2024/02/10 20:29 by admin