Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

method to override which trigger after form is fully loaded.

(0) ShareShare
ReportReport
Posted on by 924

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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • Khurshid Wali Profile Picture
    Khurshid Wali 924 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

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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
    Khurshid Wali 924 on at
    RE: method to override which trigger after form is fully loaded.

    Yes Girish

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans