Delete Multiple Rows Using RadButton

2 posts, 0 answers
  1. Sascha
    Sascha avatar
    3 posts
    Member since:
    May 2011

    Posted 09 May 2011 Link to this post

    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.


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

  2. Ivan Ivanov
    Ivan Ivanov avatar
    1201 posts

    Posted 10 May 2011 Link to this post

    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.

    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
Back to Top