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

[Solved] Dynamic Deletion and Creation of Columns

3 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan Caskey
Top achievements
Rank 1
Ryan Caskey asked on 12 Feb 2010, 12:13 AM
Hello,
  I'm trying to write and app where I have a list of available columns for a grid, and i can click and drag those column names onto the grid to show those columns.  This works fine, however I am having problems trying to remove the column by clicking and dragging it off.  I would like to have a lot of the logic of what columns are visible and it what order all done server side, as I will be doing some server side work with the columns they've selected.  I was going to attach what I have so far but it's not letting me (since it's not a jpeg)

3 Answers, 1 is accepted

Sort by
0
Ryan Caskey
Top achievements
Rank 1
answered on 15 Feb 2010, 02:04 AM
Still no ideas about this?  Does anyone know if any future versions of Telerik will have this functionality built in (or at least more events that we can bind to for each column header?)  I'm also trying to figure out when someone clicks on a column, but can't seem to find any server-side events for click or anything on the columns.
0
Iana Tsolova
Telerik team
answered on 17 Feb 2010, 02:10 PM
Hello Ryan,

Please check out this online demo to see how you can use RadGrid header context menu to hide and show columns.
Give it a try and let me know if it works for you.

Kind regards,
Iana
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Ryan Caskey
Top achievements
Rank 1
answered on 17 Feb 2010, 02:20 PM
While it seems that using the context menu would give me the ability to remove a column, we were hoping to use a drag and drop interface to add and remove columns from a grid.  The user has a list of possible columns on the left, and drags the ones they want onto the grid, and we wanted them to be able to drag a column off the grid if they no longer wanted it.

In regard to having an event where someone clicks on a column, I was able to bind my code to the sort event.
Tags
Grid
Asked by
Ryan Caskey
Top achievements
Rank 1
Answers by
Ryan Caskey
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or