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

MasterPages with RadGrid

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Nov 2014, 05:41 PM
Hello,

I've got a site with nine pages which essentially do the same thing. Each page displays a table from my database. I tried using a master page with a ContentPlaceHolder in it, so that I could put GridColumnTemplate items in the ContentPlaceHolder in the pages which implement the master page. Unfortunately, I get an error which states that I cannot put ContentPlaceHolders in the RadGrid.

Does anyone have a recommended design pattern for creating pages similar to these?

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Nov 2014, 09:35 AM
Hello Michael,

If I understand correctly, you are trying to define the RadGrid in your Master page, but specify the columns in your Content pages. If that is the case, you will not be able to implement such design, because within the MasterTableView, RadGrid will be expecting a GridColumnCollection object, where the columns should be defined.

You could however use some UserControl with RadGrid with common settings, where you could change only the data source, depending on the Content Page.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or