This is a migrated thread and some comments may be shown as answers.

[Solved] Capture Sort event on grid

0 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
AR
Top achievements
Rank 1
AR asked on 04 Nov 2011, 02:26 PM
i am using the telerik grid for mvc in operation mode and having some difficulty while capturing the sort and filter events ... i have asked a similar question on the stackoverflow.com, it can be viewed here question asked at SO

The click event is not being recognized when i click on the header part dont know why but some how its being cancelled

i have tried binding it explicitly and tried namespacing the event but it didnt work

 $(".thead").bind("click.namespace");

or

 $(".t-link").bind("click.namespace");

or

$("#gridID>table>thead").bind("click.namespace");

couldn't capture it with

 $(".thead").live("click.namespace", function (e) {
          console
.log("t-head");
     
});

or if i do

  $(document).click(function (e) {
      console
.log(e.target);
      console
.log($(e.target).attr("class"));
 
});

works well with clicks on the table cell but when click on the column header nothing gets logged

here is a snapshot
Tags
Grid
Asked by
AR
Top achievements
Rank 1
Share this question
or