Welcome Guest Search | Active Topics | Sign In | Register

Issues with EO:Menu Options
Christiano
Posted: Thursday, November 13, 2008 4:13:07 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Is it possible to:

1) Sort menu position just before binding?
I populate a dataset from a SQLServer with a nested table. So far, i can sort it on the query string and every runs fine.... But then I merge this dataset with the data from a XML file.
The Merged data should be the very first item (index 0), but it's place in the last position.
How can I resort it??

2) How can I expand the menu on click and not on mouse over??

3) Can I expand a menu by code behind?



Using VB.NET with VS2k5, under 2.0 Framework.
tks...
Christiano

Still in trial... But really expecting to buy...
eo_support
Posted: Thursday, November 13, 2008 5:39:11 AM
Rank: Administration
Groups: Administration

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

Thanks for contacting us. As to your questions:

1. I don't think the menu will do any kind of sorting for you. The data must be already sorted before you hand it over to the menu. I am not sure how you merge the dataset with XML file, but if you use a DataTable as data source for the menu, you can easily sort on the DataTable before calling Menu.DataBind;

2. You need to set this property to "EnabledAlways":

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Menu.ExpandOnClick.html

3. Yes. You would simply set a menu item's Expanded to true:

Code: Visual Basic.NET
Menu1.Items.Item(0).Expanded = True


Please feel free to let us know if you have any more questions.

Thanks
Christiano
Posted: Thursday, November 13, 2008 6:31:39 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Code: Visual Basic.NET
Menu1.Items.Item(0).Expanded = True


Is there any client side coding for this???


Is the menus navigatable by keyboards directional keys? Or by code, then i'll handle the keypress...??
eo_support
Posted: Thursday, November 13, 2008 6:44:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
There are. You will want to go over this topic first to get an idea of how to use our client side interface:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

Once you are familiar with how our client side JavaScript API works, you will need to call this function:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.MenuItem.expandSubMenu.html

The final code would be something like this:

Code: JavaScript
eo_GetObject("Menu1").getTopGroup().getItemByIndex(0).expandSubMenu();


The menu is navigatable by keyboards when you set this property to true:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.WebControl.EnableKeyboardNavigation.html

You may want to take a look of the reference section of the document if you have any more questions. Most information you are looking for should already be there.

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.