Removing items from listview in drawer view

2 posts, 0 answers
  1. jmillar
    jmillar avatar
    33 posts
    Member since:
    Oct 2006

    Posted 09 Dec 2014 Link to this post

    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.

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2543 posts

    Posted 11 Dec 2014 Link to this post

    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:

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top