tabalinas / jsgrid

Lightweight Grid jQuery Plugin
http://js-grid.com
MIT License
1.53k stars 353 forks source link

editTemplate on row change error throw $inputFrom was not an function #1426

Open MuhammadAzhaan opened 1 year ago

MuhammadAzhaan commented 1 year ago

when i first load the grid and click on the row its works but after click on the second row $inputFrom.change function throw erorr i.e, $inputFrom was not an function, please suggest whats an issue?

editTemplate: function (value) { debugger; var $inputFrom = jsGrid.fields.timeField.prototype.editTemplate.call(this, value);
$inputFrom.change(function () { var selectedValue = $(this).val(); validFrom2 = selectedValue;
});
return $inputFrom; }

MuhammadAzhaan commented 1 year ago

The field on which i am applying the edittemplate is date calendar field.