Inherit from RadGridView and modify it

4 posts, 0 answers
  1. ron klod
    ron klod avatar
    35 posts
    Member since:
    Feb 2010

    Posted 07 Aug 2010 Link to this post

    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
  2. ron klod
    ron klod avatar
    35 posts
    Member since:
    Feb 2010

    Posted 07 Aug 2010 Link to this post

    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
  3. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 10 Aug 2010 Link to this post

    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
  4. xiaofeng
    xiaofeng avatar
    60 posts
    Member since:
    Jun 2008

    Posted 06 Mar 2012 Link to this post

    Hello
    I am doing the same thing with the toolbar.Can you tell  me how to do it?
    Thank you every much
Back to Top