I have a radgrid with Add, delete and refresh buttons in the CommandItemTemplate. On click of Add, I want to hide the template. How can I achieve this?
1 Answer, 1 is accepted
answered on 21 Nov 2014, 09:51 AM
You can hide the CommandItemTemplateby setting CommandItemDisplay to None on an add button click. For this purpose you need to hook OnItemCommand event handler and check whether the fired command is InitInsert. Please check out the following code snippet.