Disabling Addition of row in Editable Grid
Hi All,
Is it possible to disable the (+)"Add new row" button of the editable grid in some actions while keeping the same enabled in other actions.
Kindly help..!!
Thanks
Comments
-
I don't think so.
As a work-around, I think you could duplicate your grid on the form, and then only show the relevant grid for each action.
0 -
Hi,
As the simplest solution I'd agree with Ethan that hiding and showing either an editable or read-only grid on certain actions should meet what you are trrying to do, but as a slight alternative you could disable the add button using jQuery.
Running the following line of code on load of the form will do the trick:
$telerik.$("#MyEditableGrid input.addButtonEditableGrid").attr("disabled", "disabled");
This would keep the grid looking consistent, however depending on how clever your users are, there is a work around to still edit the grid by clicking on the grid itself and hitting the 'INSERT' key.
Just to conclude, if you then wanted to disable the pressing of the 'INSERT' key, then you could write an additional event handler to capture keystrokes and ignore the 'INSERT' key, but a) I'm not sure if this would work, and b) this is going a bit far isn't it?!
Good luck.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories