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

Need to change first column according drop-down

0 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vinodh
Top achievements
Rank 1
Vinodh asked on 13 Oct 2012, 07:32 AM
Is that possible to make first column title/heading as what ever we selected from drop down. For example :- If a serial number is searched , serial number should be in the first column of the search. But I am unable to get that since we defined column definition generically in sorted manner. Depending upon selection we hide rest of the column. for example:

xxx.xxxColDef = [ {
    field : "serialNo",
    title : "Serial No",

}, {
    field : "firstname",
    title : "firstname",
    }, {
    field : "lastnameo",
    title : "lastname",
    },


from the drop down if i select first name the first name should be in the first column. but i am getting first column as serial no Is there any way? without adding separate column definition for each.this should be done automatically not using column re-ordering not manually

No answers yet. Maybe you can help?

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