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

[Solved] Want to disable grid filter with Jquery

1 Answer 17 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.
Venkata
Top achievements
Rank 1
Venkata asked on 11 May 2012, 11:18 AM

Please help me to disable Grid filter with jquery.

My code:

$(document).ready(

function () {
var isReadOnly = '@Model.IsReadOnly';
if (isReadOnly = true) {$(".t-grid-filter").click(function (e) {
alert('hi');
return false;
});}
});

 

 

1 Answer, 1 is accepted

Sort by
0
Venkata
Top achievements
Rank 1
answered on 14 May 2012, 07:04 AM

Please help me to disable Grid filter with jquery.

My code:

$(document).ready(

function () {
var isReadOnly = '@Model.IsReadOnly';
if (isReadOnly = true) {$(".t-grid-filter").click(function (e) {
return false;
});}
});

Tags
Grid
Asked by
Venkata
Top achievements
Rank 1
Answers by
Venkata
Top achievements
Rank 1
Share this question
or