How to open an item in a grouplist programatically

I have 2 group lists next to each other. Both have a list of categories in them. When I select a category in list 1 I want it to open the same categories in list 2 (they have different child lists). I can find the corresponding list item in the other list but I can't seem to open the item programatically so that the child list shows.

I'm using the following code to try and select the same category in the other grouplist:
('category' is the item value of the selected item in grouplist 1)

if (obj.category == category) {

the 'select' only highlights the item but does not open it. I did not see a method in the group list to open the item so that the child lists shows.

Is there a way to do this?




  • I found a way to do this. By showing the first item of the child list of the item I want to open. The 'each' function spins thru parent and child lists.

    var catfound = false;
    // make first child item visible once category is found
    if (catfound == true) {
    catfound = false;
    if (obj.category && obj.category == category) catfound = true;

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion