This is a migrated thread and some comments may be shown as answers.
Hide a template column with checkbox
0 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 28 Aug 2012, 05:33 PM
Anybody know how to hide the first column on the mvc grid with Jquery or javascript? It is a checkbox. I've tried all of these below. No luck:

                var grid = $("#ClaimDetailsGrid").data("t-grid");
                var columnA = grid.columns[0];  //works 
                //columnA.readonly = true;         //no worko
                //columnA.hidden = true; //no worko 
                columnA.attr('hidden', 'true'); //no worko 
columnA.attr('readonly', 'readonly'); //no worko 

At this point I'd settle for disabling it, hiding it anything. 

Thanks
Tags
Grid
Asked by
James
Top achievements
Rank 1
Share this question
or