jquery - is there any way to find the row number where I am selecting in dropdown in Kendo grid? -
in kendo grid want find row number making selection in dropdown. cauld change datepicker editable , focused.
attaching pic reference.
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)
just bind input
change
event context use find current tr
index index()
.
Comments
Post a Comment