web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

method to override which trigger after form is fully loaded.

(0) ShareShare
ReportReport
Posted on by 928

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 have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: method to override which trigger after form is fully loaded.

    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.

  • Khurshid Wali Profile Picture
    928 on at
    RE: method to override which trigger after form is fully loaded.

    Yes Girish

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: method to override which trigger after form is fully loaded.

    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.

  • Khurshid Wali Profile Picture
    928 on at
    RE: method to override which trigger after form is fully loaded.

    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

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: method to override which trigger after form is fully loaded.

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,850

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 795 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 519 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans