jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Dynamic Items in Drop Down Menu

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dynamic Items in Drop Down Menu #10253

    Hello,

    I know there is a way to dynamically change data in a grid using the localdata property of the source variable. I was wondering if it was possible to add/remove items after a menu has been initialized like the grid?

    I’ve hacked together a solution by resetting the local data, re-instantiating a dataAdapter, calling dataBind on that, then using the getRecordsHeirarchy method, and finally re-initializing the menu. I feel that there might be a better way, but I was unable to find it in the documentation. Thank you.

    Anthony

    Dynamic Items in Drop Down Menu #10262

    Peter Stoev
    Keymaster

    Hi Anthony,

    There’s no built-in way to add/remove items from the Grid’s menu.

    Best Wishes,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.