Monday, 11 November 2019

Show button only when the record is selected - Selection Count Rule

Hi Everyone,

Today I was working on adding some button on the Subgrid and the requirement was to show the button when at least single record is selected.

We can easily achieve this using a Enable Rule - Selection Count Rule. Here is the enable rule of the same, we just have to attach this rule to the button command.

      <EnableRule Id="...SelectionCount.EnableRule">
        <SelectionCountRule AppliesTo="PrimaryEntity" Minimum="1" Default="false" />

Hope this helps.

Happy 365'ing

No comments:

Post a Comment