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

Show multiple data rows types

3 Answers 178 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leandro
Top achievements
Rank 1
Leandro asked on 12 Apr 2017, 02:58 PM
Hello,

I´d like to know if there are possible to create multiple data columns and rows types in the custom grid type. (please, see the image sample).

In this sample, I created all data columns e rows using <asp:Literal /> tag and HtmlTextWriter class. But, this This way it takes a lot of work.

Using radgrid I created the header and the rows of data like this sample. But i can´t to create the complement of data rows subtotals.

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Apr 2017, 08:25 AM
Hello Leandro,

This customization of the grid is not supported. You can check:

1. GridTemplateColumn which will repeat the same template for every record:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/column-types#template

3. Grouping functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/group-footers/defaultcs.aspx

4. NestedViewTemplate:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/hierarchy-with-templates/defaultcs.aspx

5. DetailItemTemplate:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/detailitemtemplate/defaultcs.aspx

The most suitable control for such custom layout seems to be RadListView:
http://demos.telerik.com/aspnet-ajax/listview/examples/appearancestyling/customlayouts/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/listview/examples/appearancestyling/predefinedlayouts/defaultcs.aspx

Or combination of RadListView + RadGrid.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Leandro
Top achievements
Rank 1
answered on 20 Apr 2017, 09:45 PM
Thanks Eyup

I´am studing how to use the footer template.
The most problem is create the custom subtotals data rows. Maybe to use the footer template can to work fine. I hoope.

thank you,
regards.
0
Eyup
Telerik team
answered on 25 Apr 2017, 10:24 AM
Hi Leandro,

For implementing footer templates, you can also check the following article:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/grouping/group-header-and-footer-templates

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Leandro
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Leandro
Top achievements
Rank 1
Share this question
or