Private Sub Filter_CategoryCreating(sender As Object, e As FilterViewCategoryCreatingEventArgs)
AddHandler DirectCast(e.Category, FilterViewBooleanCategoryElement).ItemCreated, AddressOf BoolCategoryItemCreated
In this particular case, we have custom RadButtonElements placed in the title bar of the form. We have subscribed to the click event on each button. In the click event handlers, we are showing file dialogs. When clicking one time to show a dialog and the mouse leaves the title bar bounds, this triggers the click event twice, thus opening another dialog.
As a workaround, we could use the MouseDown event instead or raise a flag in the click event handler.
Setting the DataSource in the SelectedIndexChanged event will trigger the event again. Thus leading to StackOverflowException.
A possible workaround will be to unsubscribe from the event when changing the DataSource property or raise a flag which can be checked in the event handler.
A possible workaround here is to make the panel parent of the buttons visible.
RadPageViewStripElement element = this.radPageView1.ViewElement as RadPageViewStripElement;
element.ItemContainer.ButtonsPanel.DrawFill = true;
element.ItemContainer.ButtonsPanel.NumberOfColors = 1;
Repro-steps:
Observed behavior:
Expected behavior:
StackOverflowException is thrown when setting SelectedValue in the SelectedIndexChanged event.
To workaround this we can unsubscribe from the event before setting the SelectedValue property and then subscribe again. Another approach is to change the SelectedIndex property in the SelectedIndexChanged or SelectedValue in the SelectedValueChanged event.
Hi,
We recently upgraded the Telerik UI for Winforms for our project to 2020.2.512, after the upgrade we noticed some controls got re-positioned, if we keep the forms unopened in Visual Studio it would be okay, however, once we opened the forms, some controls (those with anchor set to Right) would have their location changed suddenly. If we change the location property at design time and run the project, it may be fine, but once we close the form and re-open it, the control location would be reset.
We have prepared a testing project for your reference.
1) In the group box on the LHS, there are two controls that have set anchor to Top, Right: lnkViewCriteria and lnkClearSearchCriteria
In Design mode, change their location as follows:
> lnkViewCriteria: Location = 130,9
> lnkClearSearchCriteria: Location = 190, 9
2) Similarly, in the panel on the RHS, there are two controls that have set anchor to Top, Right: lblProjects and rtxtProjects
In Design mode, change their location as follows:
> lblProjects: Location = 600,1
> rtxtProjects: Location = 333,9
3) Close the form in design mode, then re-open it. The controls location will be changed and hidden from the form.
4) Make any change to the form, save & run the project, it will save the new location of the controls as well so that those controls would be out of sight permanently until you notice it.
It was working fine before the upgrade, there are many forms in our project as well many controls with anchor set to Right. We do not know how to resolve this, if we change the control location in Design mode, then save & close the form before running the application, it may work fine, but we cannot re-open the form in Design mode because it will reset the control position. We do not want to go through every controls on our forms to set their location in the code.
Please help!!! We do not how to proceed with our development!
Thanks,
Jane.
Changing the text of a Page runtime will update the page navigation view item, but the header element won't. Reselecting the page will update the header element text.
Hello,
By referring to
https://docs.telerik.com/devtools/winforms/controls/forms-and-dialogs/tabbedform/getting-started
I created a RabTabbedForm instance; however WinForms designer was not enabled by default and the form could not be designed visually. How would you recommend?
Additional questions by the way,
1. Is there an easy way to switch on the WinForms DPI awareness for the Telerik forms?
2. At the RadTabbedForm header I see button controls can be added to the left and right sections; can other types of controls be added into these sections, for instance, dropdown buttons, toggle switches etc?
Thank you for your time!