Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Grid column header attach event handler

$
0
0
Hi Radoslav's,

Your suggested solution work as non data binding solution.
As kendo is MVVM framework.
Rule of MVVM framework.
1. viewModel can not access the view directly.
2. View can not access the Model directly.

So in our project we are not accessing the view in the viewModel.
means we are not accessing any jquery object in the viewModel
example : 
dataBound: function(e) {
      $("th[role='columnheader']").on("click", function(ev){alert("clicked");});
},

Please suggest solution as per the rule of MVVM framework.

Best Regards,
Nilesh Padbidri

Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images