sony
sony

Reputation: 1503

Is there any event for the Kendo ui window got focus?

I couldnt find an event for the got focus for the Kendo window. My requirement is to refresh the grid data once it gets focus.

Upvotes: 2

Views: 1859

Answers (2)

Nic
Nic

Reputation: 12846

Use jQuery:

$("#windowName").focusin(function() {
  $("#gridName").data("kendoGrid").dataSource.read();
});

Upvotes: 0

Alvin Magalona
Alvin Magalona

Reputation: 771

Kendo UI is a jQuery-based UI.

There should be a focusin even for the element.

See http://api.jquery.com/focusin/

Upvotes: 2

Related Questions