I'd like to get a clear answer on whether the AutoGenerateHierarchy property of RadGrid for ASP.NET AJAX (in a .NET WebForms application context) supports object-relational business objects.
The AutoGenerateHierarchy property itself is valid*, but seems to behave differently in the case of WebForms rather than WinForms** applications & I'm finding the Telerik documentation around this ambiguous.
The property description*** reads like the DataSoruce value would have to be of type DataSet for AutoGenerateHierarchy to work. Additionally, all of the ASP.NET AJAX-specific examples I find so far assign a RadGrid DataSource of type DataSet.
However, the DataSource property itself, of course, does not have to be assigned to an object of type DataSet.****
Further, if not supported (combining a non-DataSet DataSource with AutoGenerateHierarchy='True'), shouldn't we expect an error message or warning?
I'm not getting any errors trying to apply this in testing scenarios (just silent failure on any hierarchy). To recreate set - AutoGenerateHierarchy to 'True' in a bare-bones RadGrid where the DataSource is bound to a very simple object graph on Page_Load. Make one of the properties of the top-level object (top parent in the hierarchy) a list of another simple object. This should generate a flat grid (no hierarchy/nesting), but not error out.
Products + Scenario :
RadControls for ASP.NET AJAX
Telerik.Web.UI Version 2012.3.1308.40 (v4.0.30319)
.NET WebForms
References:
* http://www.telerik.com/help/aspnet-ajax/allmembers_t_telerik_web_ui_radgrid.html
**http://www.telerik.com/help/winforms/gridview-hierarchical-grid-object-relational-hierarchy-mode.html
***http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_autogeneratehierarchy.html
****http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_datasource.html
The AutoGenerateHierarchy property itself is valid*, but seems to behave differently in the case of WebForms rather than WinForms** applications & I'm finding the Telerik documentation around this ambiguous.
The property description*** reads like the DataSoruce value would have to be of type DataSet for AutoGenerateHierarchy to work. Additionally, all of the ASP.NET AJAX-specific examples I find so far assign a RadGrid DataSource of type DataSet.
However, the DataSource property itself, of course, does not have to be assigned to an object of type DataSet.****
Further, if not supported (combining a non-DataSet DataSource with AutoGenerateHierarchy='True'), shouldn't we expect an error message or warning?
I'm not getting any errors trying to apply this in testing scenarios (just silent failure on any hierarchy). To recreate set - AutoGenerateHierarchy to 'True' in a bare-bones RadGrid where the DataSource is bound to a very simple object graph on Page_Load. Make one of the properties of the top-level object (top parent in the hierarchy) a list of another simple object. This should generate a flat grid (no hierarchy/nesting), but not error out.
Products + Scenario :
RadControls for ASP.NET AJAX
Telerik.Web.UI Version 2012.3.1308.40 (v4.0.30319)
.NET WebForms
References:
* http://www.telerik.com/help/aspnet-ajax/allmembers_t_telerik_web_ui_radgrid.html
**http://www.telerik.com/help/winforms/gridview-hierarchical-grid-object-relational-hierarchy-mode.html
***http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_autogeneratehierarchy.html
****http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radgrid_datasource.html