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

Insert new row sample... where?

4 Answers 196 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 11 Nov 2009, 02:17 PM
Hello,
after having used the GridView for showing only data, now I need to allow the user to insert new Row... I've set  those

CanUserInsertRows="True"  AddingNewDataItem="gvLimiti_AddingNewDataItem" 

but doesn't seems to work....
I'm using Q3 GridView... I've found no sample on the demo application...
can someone tell me where to look for it?
Thanks

Paolo

4 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 12 Nov 2009, 02:49 PM
Hello Paolo,

Probably you expect to see some UI where you can add data for the new data item. This feature is in our TODO list. As soon as this feature is available we will make it public via latest internal build program, so stay tuned.

This doesn't mean that users cannot add new rows. You can add new items into RadGridView in two simple steps - just click inside RadGridView to get focus and then press "Insert" key. Another way is to call RadGridView.BeginInsert() method from code behind. Hope this helps.

All the best,
Nedyalko Nikolov
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
Marc Roussel
Top achievements
Rank 2
answered on 21 Jan 2010, 03:34 PM
I have a question regarding the insertion.

If the user press INSERT, He maye enter values for an object that yet doesn't exist on the server but needs ti get the id of this row from SQL so I have to do a round trip but I still don't know what is the Event in which I have to go to make sure the new row the user is adding will get the Identity from SQL for the object he's adding.

You see, something like BeforeAddingRow so I can send the object to the server, which will add the object and return with the Identity so I can set it to this object and then the object will really be added to the collection
 

I'm working on it....

 

 

0
Vlad
Telerik team
answered on 26 Jan 2010, 01:10 PM
Hi,

Why not use AddingNewDataItem event in your case?

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.
0
Marc Roussel
Top achievements
Rank 2
answered on 26 Jan 2010, 09:54 PM
Yeah I did learn it afterward.  Thank you
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Nedyalko Nikolov
Telerik team
Marc Roussel
Top achievements
Rank 2
Vlad
Telerik team
Share this question
or