Conditionally Hide/Show UniGrid Delete Action in XML Definition

Daniel Maley asked on August 7, 2018 21:46


I have created a custom module and I am looking for the ability to hide/show the delete action in object listing XML based on the module data. How can this be achieved? Do I need to implement an extender? If so I am not sure how to select an existing header action. Any guidance?

Correct Answer

Peter Mogilnitski answered on August 7, 2018 22:42

You can add advanced logic for individual actions buttons in handlers of the UniGrid's OnExternalDataBound event (for example, defining for which rows the actions are available). See: UniGrid - Implementing custom functionality

0 votesVote for this answer Unmark Correct answer

Recent Answers

Daniel Maley answered on August 20, 2018 21:09

Thanks Peter, that is what I ended up doing!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.