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

RadGridView's SelectedItem and DataForm

3 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 11 Jul 2012, 07:49 AM
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?
Thanks

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Jul 2012, 06:56 AM
Hello,

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

Regards,
Didie
the Telerik team

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

0
MV
Top achievements
Rank 1
answered on 09 Jun 2016, 06:50 PM

Hello,

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

Thanks

0
Stefan
Telerik team
answered on 14 Jun 2016, 08:16 AM
Hi,

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
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
MV
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or