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

Create Sections in Telerik RadGrid.

3 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bhanu
Top achievements
Rank 1
Bhanu asked on 25 Jun 2013, 06:52 AM

Hi,

We are using Telerik RadGrid version ASP.NET AJAX Q3 2009 SP2 with Visual Studio 2008 and IE 8. I have to display a two-level read-only grid. First level grid will have certain rows and columns. When each row is expanded, the inner / detail level grid should display data in three sections. Please refer to the attached screenshot for reference. All sections / values are read-only. Each section has a different background color and the section name should be displayed in BOLD. Can you explain how to achieve this functionality ?

Your help is very much appreciated.


Thanks
Bhanu.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Jun 2013, 01:11 PM
Hello,

In order to achieve your goal you could use the approach demonstrated in this online demo application. As for the background color you could check this help topic.

Regards,
Andrey
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.
0
Bhanu
Top achievements
Rank 1
answered on 04 Jul 2013, 01:26 PM

Thanks for the response. I used the below link as we are defining the grid programmatically. 

http://www.telerik.com/community/code-library/aspnet-ajax/grid/programmatic-creation-of-radgrid-hierarchy-with-templates.aspx

As it is noticed that the second level, i.e. the nested level view (for all rows in the grid) is populated while loading the grid itself.
My grid has to retrieve lot of data from the database based on the selected row id. 
Can we make it on demand ?  i.e. the nested level view should be populated only when expand row is clicked.

Thanks
Bhanu.
0
Andrey
Telerik team
answered on 05 Jul 2013, 10:05 AM
Hello,

I am afraid that there is no built-in way that could be used to achieve your goal. However, depending on the scenario you could cancel the databinding and thus achieve your goal. You could use the ItemCommand event to check whether command is "Expand/Collapse" and then set a global boolean variable which will control the databinding. If the value is false databinding is not processed if it is true you allow the databinding to occur.

Regards,
Andrey
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
Bhanu
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Bhanu
Top achievements
Rank 1
Share this question
or