File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,25 @@ Specifies the [template](/api/javascript/kendo/methods/template) which is used f
3030 });
3131 </script>
3232
33+ ### focusFirst ` Boolean ` * (default: false)*
34+
35+ Specifies if the first editor of the form will be focused on initialization.
36+
37+
38+ #### Example
39+
40+ <form id="myForm"></form>
41+
42+ <script>
43+ $("#myForm").kendoForm({
44+ formData: {
45+ Name: "Ivan",
46+ ZipCode: 1000
47+ },
48+ focusFirst: true
49+ });
50+ </script>
51+
3352### formatLabel ` Function `
3453
3554Callback function that could be used to change the default format of the automatically generated labels.
Original file line number Diff line number Diff line change @@ -2265,12 +2265,15 @@ var __meta__ = { // jshint ignore:line
22652265
22662266 if ( selectedIndex === index ) {
22672267 $ ( children [ selectedIndex ] ) . removeClass ( "k-state-selected" ) . attr ( "aria-selected" , false ) ;
2268+ var dataItem = this . _view [ index ] . item ;
2269+ var position = this . _dataItemPosition ( dataItem , this . _values ) ;
22682270
22692271 removed . push ( {
2270- position : j + removedIndices ,
2271- dataItem : dataItems . splice ( j , 1 ) [ 0 ]
2272+ position : position ,
2273+ dataItem : dataItem
22722274 } ) ;
22732275
2276+ dataItems . splice ( j , 1 ) ;
22742277 selectedIndices . splice ( j , 1 ) ;
22752278 indices . splice ( i , 1 ) ;
22762279 values . splice ( j , 1 ) ;
@@ -2298,6 +2301,7 @@ var __meta__ = { // jshint ignore:line
22982301
22992302 for ( ; idx < indices . length ; idx ++ ) {
23002303 index = indices [ idx ] ;
2304+
23012305 dataItem = this . _view [ index ] . item ;
23022306 position = this . _dataItemPosition ( dataItem , this . _values ) ;
23032307
You can’t perform that action at this time.
0 commit comments