jquery - is there any way to find the row number where I am selecting in dropdown in Kendo grid? -


enter image description herein kendo grid want find row number making selection in dropdown. cauld change datepicker editable , focused.

attaching pic reference.

enter image description here

this code kendo field

  {                           field: "md_of_iss",                           title: "mode of issue",                           template: "#= modename(md_of_iss) #",                           editor: function (container) {                                      var input = $('<input id="md_of_iss" name="md_of_iss">');                               input.appendto(container);                               input.kendodropdownlist({                                   datatextfield: "rsrc_description",                                   datavaluefield: "md_of_iss",                                   datasource: array,                                   change: function (e) {                                    }                                }).appendto(container);                           },                        }, 

try this:

change: function (e) {     var rowindex = $(this).closest("tr").index(); }.bind(input) 

working demo

just bind input change event context use find current tr index index().


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -