Hi Alex,
Thanks for writing.
In order to get the expanded items, you can use the “getItemStates” function. The “getItemStates” returns an array of item indexes and their expand/collapse states.
The code snippet below gets the jqxNavigationBar items states and loops through them. When the state’s value is true, the item is expanded, otherwise the item is collapsed.
var states = $(“#jqxNavigationBar”).jqxNavigationBar(‘getItemStates’);
$.each(states, function (index) {
if (this) {
// The current item is expanded.
}
else {
// The current item is collapsed.
}
});
Hope this helps you.
Please feel free to write us, if you have additional questions.
Best Regards,
Peter Stoev