You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw issue #2031 was closed recently as unable to reproduce, however I'm having the same issue. When I call grid.select(item) in code, the item is selected in memory, however it's not highlighted/checked on the screen. I've put some screenshots of a TestGrid class I wrote, a log entry showing that the item is in fact selected, and what I see in the UI. In the previous issue, the issue was closed and some sample code was provided showing it works as expected. I tried that sample code and it in fact worked as expected, however the sample code was populating the grid with a single column of strings. When I reworked that sample code to pull values from the database to populate the grid it stops working.
here's my code:
here's a screenshot of the log output:
here's a screenshot of what I see in the browser:
as you can see in the screenshots, other than me calling on my specific class to populate the grid, it's identical to yours. Also, based on the log output, it is "selecting" the first item fetched by default. However in the browser, no row is highlighted. I've greatly simplified this from what I'm trying to do for real. I'm actually working with a multi-select for real, but this appears to be the same issue regardless so I'm just using a single select here.
thanks for your help.
The text was updated successfully, but these errors were encountered:
Tried with the following snippet, and for me the first items shows as selected just fine. Can you check if your SystemName class has errors in equals and hashCode implementations.
I don't have any errors in equals or hashCode.
your example showed selected in the UI? Can you send me your 'DepartmentData' class so I can try for myself?
I saw issue #2031 was closed recently as unable to reproduce, however I'm having the same issue. When I call grid.select(item) in code, the item is selected in memory, however it's not highlighted/checked on the screen. I've put some screenshots of a TestGrid class I wrote, a log entry showing that the item is in fact selected, and what I see in the UI. In the previous issue, the issue was closed and some sample code was provided showing it works as expected. I tried that sample code and it in fact worked as expected, however the sample code was populating the grid with a single column of strings. When I reworked that sample code to pull values from the database to populate the grid it stops working.
here's my code:
here's a screenshot of the log output:
here's a screenshot of what I see in the browser:
as you can see in the screenshots, other than me calling on my specific class to populate the grid, it's identical to yours. Also, based on the log output, it is "selecting" the first item fetched by default. However in the browser, no row is highlighted. I've greatly simplified this from what I'm trying to do for real. I'm actually working with a multi-select for real, but this appears to be the same issue regardless so I'm just using a single select here.
thanks for your help.
The text was updated successfully, but these errors were encountered: