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

[Solved] Adding custom control to GridView cell

1 Answer 120 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.
Vien Nguyen
Top achievements
Rank 1
Vien Nguyen asked on 21 Jan 2011, 11:47 PM
I need to create a grid view column to display different statuses (red, green, yellow, orange) using a custom LED light control. Any suggestions on how I can do this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 24 Jan 2011, 04:54 PM
Hi Vien,

 
There are a couple of approaches you may use. You may define CellTemplate for a particular column where you can define this control in the following manner:

<telerik:GridViewColumn Header="LED" .... >
        <telerik:GridViewColumn.CellTemplate>
                   <local:CustomLEDControl ..../>
        </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>


Also you may create your own custom column as it is described in the following online help article.

If you need any additional information please let me know.

Regards,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Vien Nguyen
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or