Telerik Forums
UI for ASP.NET MVC Forum
2 answers
215 views
Hi, 

I am setting up a Kendo sortable with a grid.

@(Html.Kendo().Sortable()
            .For("#MyGrid")
            .Filter(".sortable, table > tbody > tr:not(.k-grid-edit-row)")            
            .Disabled(".disabledDragSort")
            .Cursor("move")
            .HintHandler("ConfigureHint")
            .PlaceholderHandler("placeholder")
            .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?






Minh
Top achievements
Rank 1
 answered on 07 Nov 2014
4 answers
104 views
I am not sure how to get the values from the sortable object on the post call.  Does the Viewmodel property have to match the <li> name or I the sortible object name 



               @(Html.Kendo().Sortable()
                        .For("#StandardsDirectives")
                        .ConnectWith("#MyStandardsDirectives")
                        .PlaceholderHandler("placeholder")
                        .Cursor("url('" + Url.Content("~/Content/Curser/closedhand.cur") + "'), default")
                    )

OR

                                       @if (!Equals(Model.Document, null))
                                        {
                                            foreach (var standard in Model.Document.MyStandardsDirectives)
                                            {
                                                <li class="list-item">@Html.Label(standard.Name)</li>
                                            }
                                        }
steve
Top achievements
Rank 1
 answered on 02 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?