Friday, January 8, 2010

Populate Cascading Dropdown using Javascript

Here is javascript code will be useful to Populate Cascading Dropdown Manually

function pageLoad()
{
var cde = $find('test_cascade');
cde.set_contextKey("not raymond");
var parent = $get(cde.get_ParentControlID());
var index = parent.selectedIndex;
parent.selectedIndex = -1;
cde._onParentChange(null, false);
parent.selectedIndex = index;
cde._onParentChange(null, false);
}


Reference : http://forums.asp.net/t/1155780.aspx

No comments:

Post a Comment