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

Changing Header Text of Rad Grid Columns

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 19 Jan 2011, 09:52 AM

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



1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 Jan 2011, 03:38 PM
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.
Tags
Grid
Asked by
Alexis
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or