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

[Solved] Disable "Insert" event in a RadGridview

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rome Marti
Top achievements
Rank 1
Rome Marti asked on 26 Aug 2009, 02:26 PM
Hello,

I want to disable the insert event on my Gridview when I use the key "Inser".
I don't want to use the IsReadOnly property to true on my gridview, because I want to keep the ability to to modify the content of my different row.
I tried to check for the KeyDown event and the AddingNewDataItem event, but i can't figure out the way to cancel the event associate to the adding or the pressing of the "Inser' key.

Thank you for your help.

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 27 Aug 2009, 12:31 PM
Hi Rome Marti,

You can set the CanUserInsertRows property to false. That should just disallow insertion of new rows but keep the grid editable.

Regards,
Milan
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.
0
Rome Marti
Top achievements
Rank 1
answered on 27 Aug 2009, 01:57 PM
Hi,
Thanks for yout reply.

The CanUserInsertRows implementation is not available in Telerik for Silverlight (even the last version).
it is implemented in Telerik for WPF.
By the way, i work on a Silverlight application... I can't use this property...
0
Vlad
Telerik team
answered on 31 Aug 2009, 05:41 AM
Hello,

This property is available in both WPF and Silverlight versions of RadGridView.

Kind regards,
Vlad
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
GridView
Asked by
Rome Marti
Top achievements
Rank 1
Answers by
Milan
Telerik team
Rome Marti
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or