Changing Header Text of Rad Grid Columns

2 posts, 0 answers
  1. Alexis
    Alexis avatar
    23 posts
    Member since:
    Aug 2010

    Posted 19 Jan 2011 Link to this post

    Hi Team,

                     I have a Telerik grid in my application like figure 1. I would like to add a link button(Edit) on every visible header column as Figure 2. When I click the Edit button, it has to allow the user to edit the header text, and it has to allow to update the edited header. see figure 3.

    Figure 1:

    Name             

    Age                

    Country         

    City                

    Jogn

    25

    USA

    CA

    Micheal

    28

    USA

    NY

    Marie

    23

    USA

    LA

    Figure 2:

    Name             Edit

    Age                 Edit

    Country          Edit

    City                 Edit

    Jogn

    25

    USA

    CA

    Micheal

    28

    USA

    NY

    Marie

    23

    USA

    LA

    Figure 3:

    First Name

     
                      update cancel

    Age                 Edit

    Country          Edit

    City                 Edit

    Jogn

    25

    USA

    CA

    Micheal

    28

    USA

    NY

    Marie

    23

    USA

    LA

    The box which holds the “First Name” text is a TextBox.


    Please send me a solution as soon as possible.

    Thanks

    Alexis



  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 21 Jan 2011 Link to this post

    Hi Alexis,

    In order to achieve your goal, you can try using GridTemplateColumns and define your own HeaderTemplate for them. There you can place all the controls and alter their visibility.

    Greetings,
    Iana
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top