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

[Solved] Easy way to enable/disable add, edit and delete buttons

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 03 Apr 2009, 08:10 AM
Hi,
If I wants to hide for example the delete button on a row I can do that in the databound event but it would be nice if there were a property or a couple of properties for it.
It would be easier and cleaner to write something like:
RadGrid1.EnableAddNewRow = false
RadGrid1.EnableUpdateRow = false
RadGrid1.EnableDeleteRow = false
 
Or some combination like 
RadGrid1.EnableEditing = false

This just went through my head, maybe there is something like it already implemented?! :)

/Mattias

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 06 Apr 2009, 03:22 PM
Hello Mattias,

Thank you for the suggestion - I will forward it to our developers for further consideration. If this appears to be a commonly requested enhancement, you may see it included in a future version of the product.

In the meantime you may consider hiding the delete/update/edit buttons in the grid rows conditionally as demonstrated in these topics from the documentation:

http://www.telerik.com/help/aspnet-ajax/grdconditionalimagedisplayingridcolumn.html
http://www.telerik.com/help/aspnet-ajax/grdseteditpermissionsdependingonpermissionfield.html

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Mattias
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or