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

set default properties for all new radgrids

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 07 May 2015, 02:10 PM

Hi, we're migrating a site with lots of gridviews to radgrids. We want a uniform setup of radgrids with the same paging options, enable scrolling and show footer settings.

 

is there way to set these settings globally for all radgrids in a site, or alternatively is there a way of setting the values for these properties for all newly added radgrids from the toolbox?

 

doing and find/replace throughout he site is not really a good idea

 

thanks

 

james

1 Answer, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 11 May 2015, 08:52 AM

If anyone is interested in how I made this work - I have a normal ASP.net theme still applied to the site. I have added the following to a .skinfile in the app_code folder:

 

<telerik:RadGrid runat="server"
AllowPaging="True" PageSize="50" AllowSorting="True" EnableHeaderContextMenu="True" EnableHeaderContextFilterMenu="True">
<MasterTableView AutoGenerateColumns="False" width="100%">
<PagerStyle Mode="Slider" />
<NoRecordsTemplate>
There are no records to display
</NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>

Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Share this question
or