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

Multi-row update?

2 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 14 May 2018, 05:06 PM

I would like to be able to select a number of rows in my grid.  Then I would like to select one of the columns in that set and change the value for all the rows simultaneously.  Is that doable?  Are there any samples I can follow?

 

Thanks!

Brad.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 17 May 2018, 01:47 PM
Hello Bradley,

We do not have any samples of such a functionality currently.

That said what I can suggest is using the SelectionChanged event in order to save the SelectedItems of the RadGridView. Then you can use the CellEditEnded event in order to update the values of all selected rows. You can encapsulate this logic in an attached behavior. I am attaching a sample project demonstrating this approach for your reference. Feel free to adapt it to your particular scenario.

I remain at your disposal for any further questions you might have.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Brad
Top achievements
Rank 1
answered on 07 Jun 2018, 12:35 AM

Sorry for being so slow to get back to you!  Anyway, I think the behavior you put in your sample is exactly what we're after.  Thanks a lot!

 

Brad.

Tags
GridView
Asked by
Brad
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Brad
Top achievements
Rank 1
Share this question
or