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

Removing items from listview in drawer view

1 Answer 164 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
jmillar
Top achievements
Rank 1
jmillar asked on 09 Dec 2014, 06:04 PM
Hi all;

I'm using a listview in drawer navigation.  What's the best way to remove items from the listview if (for example) you detect that a user is using a tablet instead of a phone?  Currently I just have two lists and use jQuery to hide one based on form factor - is there a better way?  I tried using .remove() but couldn't seem to get it working with a static list of items that isn't data bound.

Thanks,
Jason

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 11 Dec 2014, 10:43 AM
Hello Jason,

You can use the jQuery remove() method to remove the DOM elements that you no longer need. Please check the following example and let me know if it helps:

http://dojo.telerik.com/ojone

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView (Mobile)
Asked by
jmillar
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or