Hi,
I am using GenericDropDown Control with TreeView. I am adding content to the Treeview dynamically from an Oracle database. On the same page, I have a calendar control inside a callbackPanel. When the user selects an entry from the TreeView inside the GenericDropDown control, I want to get the key (or value) selectedNode info from the Treeview. This value is used to get data from the database to populate the calendar control.
I added this in the page_load event.
this.GenericDropDown1.Attributes.Add("OnChange", "getSelectedIndex('Show');return false;");
and here is the javascript:
function getSelectedIndex(param)
{
__sfCallbackPanel4.callback(param);
}
On the callbackPanel around the calendar control I have the
OnCallbackRefresh="CallbackPanel4_CallbackRefresh"
When I select from GenericDropDown Control, the CallBackPanel event is not getting fired.
Any help would be great!!
Thanks,
Rekha
AD
Administrator
Syncfusion Team
February 2, 2007 09:27 AM UTC
Hi Rekha,
Attached is the sample as per your requirement.
http://www.syncfusion.com/Support/user/uploads/GenericDropDown-CallBackPanel_dc334ff2.zip
GenericDropDown Control has an property 'ClientSideOnTextChanged' which executes the ClientSide event when
the text value of the GenericDropDown Control is changed. In this sample this event is used to call the Callback function that changes the text value of the DropDownCalendar control based on the TreeView node selected.
Please let us know if you have any further queries.
Regards,
Valli.