Savan S
Savan S

Reputation: 417

Kendo sortable handler with angularjs

I want to use handler feature in my list which is kendo sortable.

I have left side handle to drag. This feature is available in kendo sortable for jquery but not for angular.

enter image description here

<ul kendo-sortable k-on-end="endHandler(kendoEvent)" k-placeholder="placeholder" k-hint="hint" >
            <li ng-repeat="state in protocolStateList " ng-click="stateClicker(state.Id)">
                <a class="drag">
                    <i class="fa fa-ellipsis-v fa-lg"></i>
                </a>
                {{state.Statename}}</span>
                <input type="text" class="ordering-value" value="{{$index + 1}}" />
                <a href="#" class="state-delete col-xs-1 " ng-click="deleteState(state)">
                    <i class="fa fa-trash"></i>
                </a>
            </li>
        </ul>

Upvotes: 0

Views: 425

Answers (1)

Dillon
Dillon

Reputation: 707

k-handler="'.drag'"

Add the above to your kendo-sortable element to define the handler query.

Upvotes: 1

Related Questions