Rank: Member Groups: Member
Joined: 9/28/2007 Posts: 20
|
Hi, I am trying to implement a datepicker control as show in the sample of "Title template and Footer template". I liked the feature of allowing users to select the Month and Year from a drop down. I also saw the sample code provided for the same. However, I want to add a small feature to this menu in my application which is "the month or year of the date should be Selected in menu when the user clicks the Month or Year drop down arrow." for eg if user picked June 21 2007 as the date, then the Month menu drop down should have June as the selected month. Could you provide some sample code for this request.
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi Venkat, In order to select an item, you would need to call this function on the client side or set the menu item's Selected on the server side: http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.NavigationItem.setSelected.htmlThis page explained how to use our client side JavaScript interface: http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.htmlYou would also need to provide a "Selected Style" to be used for menu items that are selected. You can find more information here: http://www.essentialobjects.com/ViewDoc.aspx?t=MenuCommon%2fStyleAndAppearance%2fitem_state.htmlThanks
|