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

RadGrid control design discussion.

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 07 Oct 2012, 11:47 AM
Hello!

I am having a disagreement with a co-worker on the design of web pages that are using the RadGrid as the primary control. In his design he suggests that the grid should be build dynamically, adding columns and properties, etc. in the on_Init event. My suggested design is that the layout for the grid be done in the web page markup and using the page/grid events for only functionality and binding. The radgrid on the page needs to do some very complicated tasks and act like an excel spreadsheet. In our spreadsheet style control it will have a master/detail view and include custom filtering and incorporate event handling such as the double click event and right click event. Now, in my version of the design I plan to use the NeedDataSource to bind a datatable; however, he believes that the datafield can be set dynamically as well. Can you provide a brief list of pro's and con's for each of the two approaches to designing the webpage grid layouts?

Thanks,

Steve Holdorf

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 12 Oct 2012, 01:23 PM
Hello Steve,

There is no best way to create a RadGrid on the page which is applicable for all scenarios. This totally depends on your specific requirements and the developer vision for the page creation.
I would suggest you to review the online resources below which elaborates on both approaches and decide which of these is the most appropriate for your case:
http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/definingstructure/defaultcs.aspx

Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or