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

Inherit from RadGridView and modify it

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ron klod
Top achievements
Rank 1
ron klod asked on 07 Aug 2010, 01:19 PM
Hi,

I would like to add a tool bar to the radgridview, it should be added to each instanc of it.
the tool bar should be above the grid, somthing like your grouping panel(where the user can selected columns to group)
what I would like to is to change the xaml of the grid to allow this, can you please show me what should I change

Thanks
Ron

3 Answers, 1 is accepted

Sort by
0
ron klod
Top achievements
Rank 1
answered on 07 Aug 2010, 09:33 PM
1. ok, I found How to do it
2. another question:
I have created a class that inherits from RadGridView,, no I would like to do the follwoing:
for the first column: at run time add a button to the first column header

I have a reference to the columns collection in the

OnApplyTemplate method, but I haven;t figured out how to add at run time a button to the header of the first column



how ca I do it?

Thanks

Ron
0
Veselin Vasilev
Telerik team
answered on 10 Aug 2010, 12:24 PM
Hi ron klod,

How about this:

column.Header = new System.Windows.Controls.Button() { Content = "click me" };

Hope this helps.

Greetings,
Veselin Vasilev
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
xiaofeng
Top achievements
Rank 1
answered on 06 Mar 2012, 08:41 AM
Hello
I am doing the same thing with the toolbar.Can you tell  me how to do it?
Thank you every much
Tags
GridView
Asked by
ron klod
Top achievements
Rank 1
Answers by
ron klod
Top achievements
Rank 1
Veselin Vasilev
Telerik team
xiaofeng
Top achievements
Rank 1
Share this question
or