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

Editing Grid Header Columns in the UI

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mariano
Top achievements
Rank 1
Mariano asked on 08 Jun 2015, 03:09 PM

Hi all:

 We have a functional requirement to be able to edit the data in a column inside a kendo grid, by selecting a different header.

 For example, let's say we have a kendo grid that has six columns. 

 Name City Class etc

We need the ability for a user (with the given permission) to select a different option for each header column. 

Let's say they decide that they don't want "Class" as the third header/column.  We'd like the user to be able to click into the header, a dropdown appear and then the user can select a different data source.  Once selected the grid would update with the new data in the third column.

 Anyone able to point me in the right direction?  We also need to be able to reorder the kendo columns but I see that already with the Grid/Column reordering drag drop feature which is perfect.

 Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 10 Jun 2015, 10:49 AM

Hello Mariano,

 

As far as I understand the goal is to change the data shown in specific column. To achieve this, then the data for the entire grid should be changed (replaced). 

 

A possible solution for this case would be using the data method of the data source or the setDataSource method of the Grid. 

 

Regards,
Boyan Dimitrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Mariano
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or