I have used Radcheckbox i have RightToLeftChanged event ,but inside a ribbion bar group i have added RadCheckboxElement for that i dont have RightToLeftChanged event.Why is it so
What is the difference can anyone explain me and how can i implement RightToLeftChanged event for RadCheckBoxElemnt.
3 Answers, 1 is accepted
Thank you for your question.
The difference between RadCheckBox and RadCheckBoxElement is that RadCheckBox inherits from RadControl and RadCheckBoxElement inherits from RadElement. RadControl itself inherits from the .NET framework class Control which provides the basic functionality for controls. RightToLeftChanged event is inherited from the Control class. RadElement represents visual element which is used to form the layout of any RadControl. For example: RadCheckBox is a RadControl and its main element is RadCheckBoxElement. This is how our Telerik Presentation Framework is designed. You can find more information about the TPF on this link.
In your case, in order to be notified when the RightToLeft property of the RadCheckBoxElement is changed, you should subscribe to the following event:
I hope this helps. Feel free to ask if you have any additional questions.
the Telerik team
I am getting error like checkboxelement_RadPropertyChanged does not exist .why is it so and like radcheckbox theme i want to write for radcheckboxelement how can i write
For Radcheckbox i have written
void radCheckBox1_RightToLeftChanged(object sender, EventArgs e)
// ThemeResolutionService.LoadPackageResource("C:\\Documents and Settings\\Divya\\Desktop\\New Folder\\MyControlDefault.tssp");
if (this.radCheckBox1.RightToLeft == System.Windows.Forms.RightToLeft.Yes)
this.radCheckBox1.ThemeName = "CheckBoxTheme"; //this is theme i hav created
this.radCheckBox1.ThemeName = "ControlDefault";
now in the same way how can i write for radcheckboxelemnt because for radcheckbox i am not able to find themename property so can u explain how to do it
Below is the whole code of my Form1.cs example:
Here you can see how to access the control that contains given element, as well as how to be notified when the RightToLeft property of RadElement has changed.
I hope this helps. Feel free to ask if you have any further questions.
the Telerik team