telerik - Getting a reference to the text box elements on an edit -


in mvc grid, i'm trapping edit event follows:

 .events(events => events.change("gridrowchange").edit("onedit")) 

in onedit() method gets called when edit occurring, i'd reference text box elements each editable cell in row can attach onblur event of them. how go getting reference each text box element in row being edited?

as per telerik's documentation onedit:

the event argument exposes 3 fields: dataitem - javascript object editor row bound to. undefined during insertion. mode - string value either "insert" or "edit" form - dom element contains editing components (textboxes, checkboxes, dropdownlists etc.)

this should reference given textbox:

function onedit(e) {     var yourtextbox = $(form).find("#your_id");      yourtextbox.on("blur", function () {         //your on blur code here     }); } 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -