Am creating the textbox,radcombo with check box dynamically in code behind.. while creating the rad combo it will be loaded with values from db.. on the initial load, its loading the values properly... but on the textbox changed event it will create the controls again and bind the values.. its doing that. but on adding the controls to the place holder its calling the checkbox template of rad combo and creating the controls again but its not binding the values..
class CheckBoxTemplate : ITemplate
string ColName = "FirstName";
public void InstantiateIn(Control container)
CheckBox checkBoxShopper = new CheckBox();
checkBoxShopper.Width = 100;
public void chkShopper_DataBind(Object sender, EventArgs e)
CheckBox chkShopper = (CheckBox)sender;
RadComboBoxItem radComboItem = (RadComboBoxItem)chkShopper.NamingContainer;
This is my check box template.. its getting called on adding the controls to the placeholder, InstantiateIn() is called but not chkShopper_DataBind().. thus clearing the text of check box.. but instantiateIn() is not called on adding the controls for the first time.. how to avoid this.. need the soln..
thanks in advance