Welcome Guest Search | Active Topics | Sign In | Register

ClientID property Options
Member
Posted: Thursday, December 20, 2012 6:59:43 AM
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.
eo_support
Posted: Thursday, December 20, 2012 9:09:42 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.