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

Delete Multiple Rows Using RadButton

1 Answer 47 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Sascha
Top achievements
Rank 1
Sascha asked on 09 May 2011, 06:05 PM

I'm using a simple RadGridView with a DomainDataSource as ItemSource for it. I can easily select as many rows as I like and press the delete key on my keyboard. But I want to do this operation by providing a CommandButton ("Delete selected rows"), too.

What's the best way to do this? I'm not able to figure it out. When I access the DataView directly I'm receiving error messages.

BTW:

Currently I'm using a Binding to the 'IsBusy' property of the DomainDataSource to block manipulation in the GridView while system is submitting changes. See code below:

<telerik:RadGridView IsBusy="{Binding IsBusy, ElementName=DomainDataSource}"/>
I don't like the visual IsBusy state. Is there any possibility to push the delete command into some kind of queue which is handled in an other thread and previously detach the row from the GridView (thus, the user thinks that operation has performed yet).?

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 10 May 2011, 09:39 AM
Hi Sascha,

I have prepared an example for you, utilizing RadGridView and RadDomainDataSource. Please, refer to it and inform us if this approach meets your requirements.

Regards,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DomainDataSource
Asked by
Sascha
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or