Rank: Newbie Groups: Member
Joined: 12/19/2012 Posts: 5
|
Hi,
i am using EO grid with in the gridview as per the requirement. There are cascading dropdowns functionality in the EO grid. i have to get the clientID of the drodowns in the BeginEdit and EndEdit functions as i can't hardcode the clientID for the dropdowns in the EO grid in gridview because of dynamic controls. i need something like this
function on_begin_class_edit(cell) { g_curItemIndex = cell.getItemIndex(); var v = cell.getValue();
//Set the drop downbox's selectedIndex based on the current value var dropDownBox = null;
dropDownBox = document.getElementByID("<%= dropdown.ClientID %>")
for (var i = 0; i < dropDownBox.options.length; i++) { if (dropDownBox.options[i].text == v) { dropDownBox.selectedIndex = i; return; } } dropDownBox.selectedIndex = 0; }
Please help on this and i am struck near dropdown.ClientID line.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
This is something you need to resolve yourself. We consider such questions as generic ASP.NET programming questions, so we are not in a position to answer those. Sorry about it!
Thanks!
|