aggrid table: default selected row

I see you can easily have windmill select the first row of an aggrid table on load. Is there a way to default to a different row based either on index or some value in the row?
9 Replies
rubenf
rubenf2w ago
frontend script that setSelectedIndex
UncleLeoTheDad
UncleLeoTheDadOP2w ago
@rubenf : when I try to add a frontend script today, it doesn't seem to work. Have tried on multiple browsers and multiple apps. Video attached
rubenf
rubenf2w ago
what version are you on? can you send us a reproduction from a clean app somehow, and your browser console logs please
UncleLeoTheDad
UncleLeoTheDadOP2w ago
Hmmm it is working in a clean app. We are on 1.486.0. Let me poke around a bit more now that I know it isn't universal. Thanks!
(NO PINGING) Space Gecko
i was having front end issues on that version, updating to .1 fixed it f or me
UncleLeoTheDad
UncleLeoTheDadOP3d ago
upgrading to EE v1.488.0-1-g242a56542 fixed the problem. Thanks! @rubenf : I tried using setSelectedIndex, but it doesn't seem to work. Am i missing something? Here's a simple example app:
Shenanigans
Shenanigans3d ago
Encountered a similar issue about a week ago. I had accidentally created 2 empty frontend scripts. Removed them, refreshed page and was able to create my script.
UncleLeoTheDad
UncleLeoTheDadOP3d ago
Thanks @Shenanigans ! I was able to get past this via n upgrade. Now I am stuck as I have a front end script to execute setSelectedIndex, but there’s no result. Thanks!

Did you find this page helpful?