Insert new row sample... where?

5 posts, 0 answers
  1. Paolo
    Paolo avatar
    423 posts
    Member since:
    Jun 2009

    Posted 11 Nov 2009 Link to this post

    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
  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 12 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 21 Jan 2010 Link to this post

    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....

     

     

  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 Jan 2010 Link to this post

    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.
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 26 Jan 2010 Link to this post

    Yeah I did learn it afterward.  Thank you
Back to Top
DevCraft banner