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

[Solved] RadGridMaster?

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill Murphy
Top achievements
Rank 1
Bill Murphy asked on 22 May 2008, 02:53 PM


Hi,

The other day I was thinking... it'd sure be nice if there were a centeral place to set the "default" skin that all RadGrids would use. Maybe there could be a "RadGridMaster" class? Then you could set the skin once, and every RadGrid instance would "inherit" from it...

Similarly, RadComboboxMaster, RadSplitterMaster, etc...

Similarly, for lots of other settings beyond skins.

--Bill



There are other things that we set on every-single-grid... For example:

myGrid.PagerStyle.PagerTextFormat = Resources.

Documents.Pages_45Items;

myGrid.PagerStyle.AlwaysVisible =

true;

myGrid.PagerStyle.HorizontalAlign =

HorizontalAlign.Right;

myGrid.PagerStyle.Mode =

GridPagerMode.NextPrevNumericAndAdvanced;

myGrid.MasterTableView.TableLayout =

GridTableLayout.Fixed;

myGrid.MasterTableView.NoMasterRecordsText = Resources.

Atlas.NoItems;

myGrid.MasterTableView.NoDetailRecordsText = Resources.

Atlas.NoItems;

myGrid.MasterTableView.SortExpressions.AllowNaturalSort =

false;

myGrid.AutoGenerateColumns =

false;

myGrid.ClientSettings.Resizing.EnableRealTimeResize =

false;


1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 23 May 2008, 08:16 AM
Hi Bill,

You can optimize your code by using ASP.NET themes to set the same properties to numerous RadGrids.

In addition, you can set the same skin for all you web application RadGrids by using the following key in web.config:

<add key="Telerik.Grid.Skin" value="Vista" />

Let us know if you need further advice.


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Bill Murphy
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or