Hi,
How do a RadGrid be in View mode or non editable mode?
Scenario:
Based on the user role, RadGrid should be in Disable mode(no Add/Update/Remove functionalities ) or Enable mode. This should happen dynamically.
In order to disable radgrid, you have to set the Enabled property of the control to false and switch off the auto postback on row click, column resizing, client row selection and keyboard navigation. Here is the documentation which shows how to enable/disable RadGrid.
I know that this is an old forum thread but I need to write it in here in order that someone like me does not loose time trying to disable grid :)
If U wish to completely disable grid, beside properties mentioned in http://www.telerik.com/help/aspnet-ajax/grid-enabled-conventions.html, U will have to add this line also
ClientSettings.AllowColumnsReorder = false;
If people from Telerik agree with this, please update documentation on link mentioned above.
We will add the server side property too, in any case. Thank you for the feedback.
All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.