Welcome Guest Search | Active Topics | Sign In | Register

property used to show dialog on menuitem click Options
Angel
Posted: Thursday, December 9, 2010 12:51:50 PM
Rank: Member
Groups: Member

Joined: 11/1/2010
Posts: 18
Hi,

I want to popup dialog on menuitem click. could you please suggest what property should be used.
eo_support
Posted: Thursday, December 9, 2010 4:11:39 PM
Rank: Administration
Groups: Administration

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

If you do it on the server side, you would use this property:

http://doc.essentialobjects.com/library/1/eo.web.dialog.initialstate.aspx

If you do it on the client side, you would use this method:

http://doc.essentialobjects.com/library/1/jsdoc.public.dialog.show.aspx

Thanks!
Angel
Posted: Friday, December 10, 2010 5:13:37 PM
Rank: Member
Groups: Member

Joined: 11/1/2010
Posts: 18

Thanks for the response. I tried server side initialstate property, it worked fine for topgroup menuitem click. My actual functionality is popup dialog on submenu item click. so i tried like this... but it is not displaying dialog. could you please suggest where am going wrong..

protected void GridMenu_ItemClick(object sender, NavigationItemEventArgs e)
{
if (GridMenu.Items[2].SubMenu.Items[1].Selected == true)
{
this.SaveDialog.InitialState = EO.Web.DialogState.Visible;
}
}
eo_support
Posted: Friday, December 10, 2010 8:37:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You don't need to check the item's Selected property. "Selected" and "Clicked" are two different things. e.MenuItem should tell you which item is clicked.

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.