Posted By

dmilligan on 08/03/15


Tagged

javascript grid Keno


Versions (?)

Kendo Grid Auto Select Input


 / Published in: C#
 

Attach script to the Kendo grid Edit event.

  1. mainGrid.Events(c => c.Edit("Cumulus.GridEditHandler")).Render();
  2.  
  3. Cumulus = Cumulus || {};
  4. Cumulus.GridEditHandler = function (e) {
  5. if (!e.model.isNew()) {
  6. var kInput = $(e.container).find(".k-input");
  7. if (kInput) {
  8. kInput.one('focus', function () {
  9. var ki = $(this);
  10. setTimeout(function () {
  11. ki.select();
  12. });
  13. });
  14. }
  15. }
  16. };

Report this snippet  

You need to login to post a comment.