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

Column selection without adding columns to grid

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 28 Feb 2013, 02:06 PM
Is there a way to have a column show up in the column selector without adding that column the grid and hiding it? I have a data source with 100+ columns and only 15 are shown by default, and I want to allow the user to select the other columns if needed, but not load all 100+ columns and hide 85 of them.  The performances isn't too great with 100+ columns added.  Thanks!

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 04 Mar 2013, 09:20 AM
Hello Aaron,

You can hide the columns initially by setting their columns.hidden property to true, however the data for all columns should be loaded in the DataSource. KendoUI Grid does not support dynamic column adding, to improve the performance you may consider using serverPaging. In this way you would be able to reduce the number of rows loaded on the client.

There are some workarounds that you could use to rebind the Grid and show different columns (not initially fetched from the server), but please have in mind that they may cause unexpected side effects. For more information please check this forum topic.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Aaron
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or