Using Multi Select Check BOx Column In Grid with hidden columns and retrieving selected records
Using Multi Select Check BOx Column In Grid with hidden columns and retrieving selected records
inguva_vamsi
Posts: 8Questions: 3Answers: 0
Hi All,
Can anyone send me example code where i have multiple columns with hidden columns and also a multi select check box column and after i do select those rows i need to retrieve hidden column values in , seperated form on a button click .Please help
Thanks,
Vamsi
This discussion has been closed.
Replies
This example shows how to get the selected rows. All you need to do is change the
count()
to thedata()
to get the selected row data, including hidden columns. You may also be interested in using thetoArray()
API to get just the data. Once you have the array of data you can process it in anyway you need using Javascript statements.Kevin
Hi kthorngren,
I am using the following code to display datatable which is working fine. Now i want multi select check box column in grid. Could you please help.
I am confused betwen columndefs and columns in datatable declarations
Could you please help
Hi @inguva_vamsi ,
You need to define
columns
if you're using object based data, and all columns need to be defined, so DataTables knows where to put the data.columnDefs
can set similar configuration options, but is more selective, you only set properties for specific columns that need a certain configuration option.As Kevin said, use Select extension for column selection, here's another example with checkboxes.
Cheers,
Colin
Hi @colin,
I am succesfully getting data in the datatable. My Only Challenge is how to change this code so that i will get check box column in the datatable. Please note that the below code is placed in ms dynamics CRM and there are some restrictions to directly pass api to the source so i am using the following code
@inguva_vamsi isn't this the same as this other thread - you've posted three times the same question...
first
second
third
There is some problem here i submitted three times sorry for this