Welcome Guest Search | Active Topics | Sign In | Register

Can't get ContextMenu Checked Item after postback Options
Texwinca Developer
Posted: Thursday, October 8, 2009 6:35:24 AM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I have created a context menu with 3 menu item and one of it is checked. This context menu will show under a Toolbar Dropdownbutton. I have set the OnClickScript value to a Javascript Client Function "LOC_CODE_Click". Inside the function, I just do the following things.

function LOC_CODE_Click()
{
var cm = eo_GetObject("ContextMenu1");
for (var i=0; i < cm.getTopGroup().getItemCount();i++)
{
cm.getTopGroup().getItemByIndex(i).setChecked(false);
}
eo_GetNavigatorEventInfo().getItem().setChecked(true);
eo_Callback('cbp', 'LoadBG');
}

but after I do Callback, I can't get the "Checked" Menu Item at Sever Side. Could you give me advice ?
eo_support
Posted: Thursday, October 8, 2009 9:18:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Menu does not pass any changes made on the client side back to the server side. So you may wish to use some other mechanisms such as hidden field to pass those data back to the server and then re-apply them on the server.

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.