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

[Solved] Many Grids + Many Pages = Config Nightmare?

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 16 Apr 2009, 01:05 PM
Pretty simple question and I'm sure there's a good solution for this: I want to keep my UI very consistent.  I'm going to have lots of pages that make use of the RadGrid control.  What I want to avoid is having to re-create the default properties, i.e - setting page size, allow sorting, skin, etc, etc.

I'm guessing I would create some kind of wrapper for the Grid control and set its default values there.  Then instead of using <telerik:RadGrid... I can use <customtelerik:RadGrid... that uses my default settings.  Of course, I would want the ability to override those in the specific pages if I have to.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Bruno
Top achievements
Rank 2
answered on 21 Apr 2009, 03:58 PM
The easiest way will be to wrap the grid inside a usercontrol and if needed to expose its properties. Other approch will be to inherit the grid and set properties default values or use a composite control to wrap it similar to the usercontrol approch.
Tags
Grid
Asked by
Michael
Top achievements
Rank 2
Answers by
Bruno
Top achievements
Rank 2
Share this question
or