I want to add a group by on grid column.
grid.groupby('table_columnName');
If I add this code to init method then it is working the first time. if we modify some parameters it is not grouping the column again.
It is working if I add this code to a button clicked() method and click it after the form is loaded,
but not working on active or executeQuery() or any modified field method because the grid is not ready at that time.
I have set on Grid property and it is not working.
Kindly suggest a way to achieve it.
I don't think there is any method other then this.
Functionality you are trying to achieve is particular to UI design only.
Also on the UI itself when you add group by of column and after filtering and removing - Group by also will be removed.
This is the standard behavior and I don't think you can change that.
Thanks,
Girish S.
Hi Girish,
I don't found any method for grid control. and mouse enter is not a good idea as it will trigger the code multiple times.
Regards,
Khurshid Wali
This is the standard behavior - If we use standard filter on the column and after removing the filters the group by column will also be removed.
You already said that its working on button clicked method. This is the only way since you said its not working when you add it in executeQuery or active method.
Also see some override methods on the grid control and add the code in mouseEnter or some other methods and check.
Thanks,
Girish S.
Yes Girish
Hi Khurshid Wali,
Are you talking about the group by option which is done through personalization?
So you are trying the same thing via code?
Thanks,
Girish S.
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156