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

Radgrid Formating and Inheritance

2 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ricardo Rekowsky
Top achievements
Rank 1
Ricardo Rekowsky asked on 27 Jul 2010, 01:21 AM
Hello!

I'm playing around with RadGrid and spent already some days researching on how to customize autogenerated fields and have two questions:

How can I define a diferent  label color for a required field or even the text/checkbox etc?
I read a bit about using ColumEditor and tried from the example:

<telerik:GridCheckBoxColumnEditor ID="requiredCheckBox" runat="server" >
    <CheckBoxStyle BackColor="#edffc3" BorderColor="#ecbb0d" BorderStyle="Solid" ForeColor="#7fa822"  />
</telerik:GridCheckBoxColumnEditor>

It makes the color as it should but even when the records are listed and not only for the edit/insert/update mode. How can I change this... and further, isn't there a generic way to do this instead of having to format all individual fields?

Another thing I'm trying to accomplish is to create a basic page with a RadGrid and EntityDataSource on it and apply the table on page load so I can do something similar as a master page for generic tables with few fields so if I decide to change something on the grid I can have it applied to all of them?

Is there a way to accomplish this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 30 Jul 2010, 10:28 AM
Hello Ricardo,

There is not generic way to achieve the desired functionality. You could try manually changing the style of the messages labels.

Regarding your second question:
The best way to achieve the desired functionality is to use the MasterPage file and create the RadGrid into it. If you create a RadGrid into standard aspx page and use this page as a basic page to other aspx pages you may get some issues.
Additionally please check out the following links which explains how to create a base page for all pages:
http://www.4guysfromrolla.com/articles/041305-1.aspx
http://www.codeguru.com/csharp/.net/net_asp/webforms/article.php/c11939

Best wishes,
Radoslav
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
Ricardo Rekowsky
Top achievements
Rank 1
answered on 12 Aug 2010, 08:01 PM
Thanks for the reply.
I'll be reading the links carefully to check if it's worth doing it
Tags
Grid
Asked by
Ricardo Rekowsky
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Ricardo Rekowsky
Top achievements
Rank 1
Share this question
or