set default properties for all new radgrids

2 posts, 0 answers
  1. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 07 May 2015 Link to this post

    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

  2. James
    James avatar
    70 posts
    Member since:
    Jun 2009

    Posted 11 May 2015 Link to this post

    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>

Back to Top