Hello,
Why when i use the "LoadContentFile" method ot the "LoadXml" method a new instance of RadListBox has been created.
If i use these methods, first it goes into the constructor of the listbox.
Below is my class inherite from RadListBox
If i create an instance of MyListBox and call to LoadContentFile("LB.xml) then first it to the MyRadListBox Ctor.
Is there any option to avoid this? it pretty annoying and cause to bugs.
Regards,
Oren
Why when i use the "LoadContentFile" method ot the "LoadXml" method a new instance of RadListBox has been created.
If i use these methods, first it goes into the constructor of the listbox.
Below is my class inherite from RadListBox
public class MyRadListBox: RadListBox
{
public MyRadListBox()
{
InitControl();
}
.
.
.
}
If i create an instance of MyListBox and call to LoadContentFile("LB.xml) then first it to the MyRadListBox Ctor.
MyListBox myListBox=new MyListBox();
myListBox.LoadContentFile("LB.xml");
Is there any option to avoid this? it pretty annoying and cause to bugs.
Regards,
Oren