eduardosuruagy Posted August 8, 2019 Share Posted August 8, 2019 How to expand and collapse dbgrid groups via code? 1 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 8, 2019 Share Posted August 8, 2019 Hi, Please check Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 8, 2019 Author Share Posted August 8, 2019 unidbgrid.JSInterface.JSCall('view.features[0].collapseAll') => collapse all groups I put the code in a button and the error happened: Cannot read property '0' of undefined O589.view.features[0].collapseAll(); Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 8, 2019 Share Posted August 8, 2019 Hi, It is working as expected. Please check attached demo. GridGrouping.rar 1 Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 9, 2019 Author Share Posted August 9, 2019 12 hours ago, Hayri ASLAN said: Oi, Está funcionando como esperado. Por favor, verifique a demonstração anexa. GridGrouping.rar It worked, my problem I think was the way I created the index, I had a composite index. Thanks a lot for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.