Hi,
I'd like to show/hide the new(+) button of sub-grid on the form, and I try the solution Show or hide the 'Add New' button on form sub-grid based on the value on the form then I can hide the '+' button successfully.
The other thing is using Xrm.Page.getControl("sub-grid-name").getGrid().getTotalRecordCount() in setTimeout function, then I can get the total record counts in sub-grid.
But how can I implement the enable rule on Ribbon(control the display) right after I get the right record count in sub-grid.
I put the setTimeout function before I return true or false for enable rule, but it doesn't work. It just shows the default grid before I get the counts number.
Is there any solution?
Thanks for your help.
*This post is locked for comments
I have the same question (0)