Sortable Filter with multiple JQuery Selector

3 posts, 1 answers
  1. Minh
    Minh avatar
    2 posts
    Member since:
    Oct 2014

    Posted 31 Oct 2014 Link to this post


    I am setting up a Kendo sortable with a grid.

                .Filter(".sortable, table > tbody > tr:not(.k-grid-edit-row)")            
                .ContainerSelector("#MyGrid tbody")
                .Events(events => events.Start("onStart").Change("onChange"))

    When I set the filter as above it does not work. I am trying to filter for two separate jQuery selectors, separated by a comma. It does not work. When I remove one or the other, for example: .Filter(".sortable"), it works.  What can I do to get this working?

  2. Answer
    Alexander Valchev
    Alexander Valchev avatar
    2873 posts

    Posted 04 Nov 2014 Link to this post

    Hi Minh,

    You should be able to use multiple selectors separated by coma. Please see the following example:

    In fact any valid CSS selector can be used and your selector looks valid. I assume that the problem is related to the mark-up of your page. Where are the .sortable elements located? Are they inside the #MyGrid element?

    Alexander Valchev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET AJAX banner
  4. Minh
    Minh avatar
    2 posts
    Member since:
    Oct 2014

    Posted 07 Nov 2014 in reply to Alexander Valchev Link to this post

    Yes, the .sortable elements are inside the #MyGrid element. I will look at rebuilding the mark-up of the page based on the example you provided. Thanks very much.
Back to Top