grouplist item(id).$selected

Hi, im using the grouplist api and when im inside of an item with subitems and i use

$$("mymenu").showItem(id);
$$("mymenu").item(itemWithSubitemsId).$selected = false;
$$("mymenu").refresh();

im expecting that the item with subitems change its design to “unselected” but it remains with the selected state.

screenshot is attached.

Thank you

Jorge Figueroa
Crossdata-Tools

Hi,

try the following:

$$(“mymenu”).item(itemWithSubitemsId).$template="";
$$(“mymenu”).showItem(itemWithSubitemsId);

$$("mymenu").item(itemWithSubitemsId).$selected = false;

There is an api command some.unselect(id) - why not use it, instead of direct attribute manipulation?

Hello Stanislav, i tried before the some.unselect(id) and it didnt work in my case, but Alexandra solution works just fine for me :wink:.

Thank you

We will doublecheck unselect logic for grouplist

The “$” starting attributes are part of inner logic, so changing them directly is not officially supported use-case, and while it may work, we can’t guarantee, that it will work in future.