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
0
Kostadin
Telerik team
answered on 21 Nov 2014, 09:51 AM
Hello Ruchi,
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.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.