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

Clear RadListView on client-side

1 Answer 153 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 19 Sep 2011, 04:03 PM
Hi,

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

Thanks,
Andrey

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 22 Sep 2011, 09:43 AM
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,
Mira
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
Tags
ListView
Asked by
Andrey
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or