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

Rad Grid: Disable activity like insert, edit, update delete when a row is in edit mode

3 Answers 387 Views
Grid
This is a migrated thread and some comments may be shown as answers.
K
Top achievements
Rank 1
K asked on 08 Dec 2008, 12:45 PM
Rad Grid: Disable activity like insert, edit, update delete when a row is in edit mode.

Following are the scenarios i would like to describe for which the code errors out:
1) A newly added row is in edit mode. Now when the grid generated CommandItem for adding a new row is clicked, the page errors out.
Here the user shouldn't have been able to click the add new row link at all. This can be achieved by setting the display of the commandItem. Still the other permutation and combination exists where
2) Add new row link is clicked and a previously existing row is now clicked for edit. Here two rows are in edit mode. One is for adding a new row and other for editing a row. Now if we click on Insert button the page errors out. Here the user shouldn't have been able to click the edit button since already a row is in Insert mode.

Concluding, is there any way that we can control the activity for the links on Insert, Update, Edit where they cannot be clicked if any one activity is currently in progress?

KS

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Dec 2008, 03:34 PM
Hello,

Please test the attached example illustrating how to disable the unwanted modes under certain circumstances.

Let me know if I missed something.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
archimede
Top achievements
Rank 1
answered on 10 Nov 2009, 10:05 AM
Hello,
I want disable the change page command of radgrid's pager (it's a slider).
I try to do this by setting the property AllowPaging of the grid to false, but it's not correct because it's change the visualization of the paging structure of the grid. 
Any suggestion?

Best regards
0
Yavor
Telerik team
answered on 13 Nov 2009, 08:57 AM
Hi archimede,

Attached to this message, is a small application, which demonstrates how to handle a task very similar to the one which you described.
Please, take a look at it and let me know how it goes and if any other questions arise.

Sincerely yours,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
K
Top achievements
Rank 1
Answers by
Daniel
Telerik team
archimede
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or