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

Rad Grid with dynamic columns

3 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stalin
Top achievements
Rank 1
Stalin asked on 30 Sep 2013, 10:50 AM
Hi,

I have a requirement like the first column list out the features and the other columns lists out the user selected products and there by user can compare the features against opted products. Since the product columns are dynamic, I have confusion on how to implement. What is the best approach ?


Thanks,
Stalin. 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Sep 2013, 12:01 PM
Hi,

RadGrid does not support mixing declarative grid columns with grid columns added dynamically at run time. You should either create all the columns in the grid programmatically, or else define them all in the ASPX file. You can find out the same mentioned in the following help document:
Programmatic creation

Thanks,
Shinu.
0
Stalin
Top achievements
Rank 1
answered on 01 Oct 2013, 01:14 PM
Hi Shinu,

Thanks for your reply. 

Is it possible to bring the Details Table in the same row as of the DataItem row, instead of new row for Details table ?

Thanks,
Stalin
0
Eyup
Telerik team
answered on 04 Oct 2013, 10:56 AM
Hi Stalin,

You can try to use NestedViewTemplates to achieve the desired appearance:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

Alternatively, you can use Panels in the ItemTemplate of a GridBoundColumn:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Stalin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Stalin
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or