Clear RadListView on client-side

2 posts, 0 answers
  1. Andrey
    Andrey avatar
    1 posts
    Member since:
    Jul 2012

    Posted 19 Sep 2011 Link to this post


    What is the way to delete all items from RadListView on client-side? I suppose I can use deleteItem() method but it requires an index so I need to get at least items count somehow.

    I also have tried to use get_clientDataKeyValue() method but it doesn't return what I expect (array of actual items).

  2. Mira
    Mira avatar
    1124 posts

    Posted 22 Sep 2011 Link to this post

    Hello Andrey,

    The RadListView does not serialize the data on the client and each call to deleteItem will initialize a request to the server.
    To implement the desired functionality, I recommend that you fire a custom DeleteAll command client-side and handle it server-side and delete all RadListView items.

    I hope this helps.

    Best wishes,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top