RadGridView's SelectedItem and DataForm

4 posts, 0 answers
  1. Paolo
    Paolo avatar
    426 posts
    Member since:
    Jun 2009

    Posted 11 Jul 2012 Link to this post

    Hello Telerik,
    I've a RadGridView on the left and a RadDataForm on the right of my screen... as the selecteditem changes the data on the dataforms changes too...when I click an edit button the dataform goes to edit mode and the selectedrow keeps to be selected... when I click something on the dataform the selecteditem is lost.... how can I prevent this?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 12 Jul 2012 Link to this post


     May I ask you to share some additional details on how you have bound the DataForm to the SelectedItem of the GridView?

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. MV
    MV avatar
    28 posts
    Member since:
    Dec 2015

    Posted 09 Jun 2016 Link to this post


    I have a RadGrid and a button inside edit form template. When the user clicks the button, I want to open a RadDataForm using a Radwindow. I want to populate the RadDataForm based on the value of the textboxes in the RadGrid. I've tried many things and can't get it to work. What would be the best way to accomplish this? .

    Note: I can't use my database to bind, I want the changes to be displayed in RadDataForm before the user clicks Update (RadGrid) and the button will be enabled during Insert (RadGrid).


  4. Stefan
    Stefan avatar
    774 posts

    Posted 14 Jun 2016 Link to this post


    Generally, all data operations of RadGridView should be performed on data level also. The control provides virtualization mechanisms, so accessing the values of the TextBoxes directly is highly not recommended. The proper approach would be to access the properties of the bound data source and populate RadDataForm based on it.

    You can take a look at the Getting Started topic of RadDataForm's online help for more information on the matter.

    Hope this helps.

    Best Regards,
    Stefan X1
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top