NewRowPosition in RadGridView

2 posts, 0 answers
  1. crazy05
    crazy05 avatar
    74 posts
    Member since:
    Sep 2014

    Posted 27 Apr 2015 Link to this post

    I have NewRowposition at the top which is working fine.

     My Issue is when I click on that the Row ID# always shows '0'. I want it to show the next available ID on the Grid. How Can I do this ?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 28 Apr 2015 Link to this post


    You can try subscribing for the AddingNewDataItem event of RadGridView and initialize the e.NewObject.
    For example:
    private void radGridView_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
        e.NewObject = new MessageViewModel("", "Cats are cool", 100);


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top