Event In User Control.
Hello Friends,
I have telrik combo box , I m using this control as my Custom Control. Telrik combobox has an event named âItemsRequestedâ.
I hv made an user control in which I have made a property suppose :
public string Query
{
get { return _Query; } set { _Query = value; }
}
Now I want to create an event for this control in my UserControl.ascx.cs file using delegate according to âQuery â propertyâs value that has been set for this control by user.
protected void Page_Load(object sender, EventArgs e)
{
if (_Query == "anything")
{
RadComboBox1.ItemsRequested += new Telerik.Web.UI.RadComboBoxItemsRequestedEventHandl er(KeyPressOnCombo);
}
}
Please tell me that in which event I can create this event because if I do this in Page_load of the control then I am getting my Controlâs property always is blank while I have set the property with a string value.
I hope I have described my query nicely.
Thanks!!
__________________
DPK..
|