This is a migrated thread and some comments may be shown as answers.

How to Disable RadGrid

3 Answers 839 Views
Grid
This is a migrated thread and some comments may be shown as answers.
taraka chaitanya
Top achievements
Rank 1
taraka chaitanya asked on 26 Mar 2010, 11:32 AM

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.

Thanks,
Chaitanya

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Mar 2010, 12:18 PM

Hello Chaitanya,

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.

Enabled/Disabled conventions

Thanks,

Princy.

0
Miladin
Top achievements
Rank 1
answered on 19 Dec 2012, 11:27 AM
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.

Cheers
0
Eyup
Telerik team
answered on 24 Dec 2012, 08:21 AM
Hi Miladin,
The mentioned snippet is already included in the DisableGrid javascript function:
http://www.telerik.com/help/aspnet-ajax/grid-enabled-conventions.html

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.
Tags
Grid
Asked by
taraka chaitanya
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Miladin
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or