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

[Solved] Features Needed

4 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Lovell
Top achievements
Rank 1
David Lovell asked on 09 Nov 2009, 05:46 PM
I am considering using the Telerik Grid control in an application I need to write, but need to know if it supports the following:

- Pure AJAX mode - I would like to instantiate/render the grid on the client (ie: no ASP.NET control), then use AJAX calls to a pre-written handler page (.ashx) to retreive the data to be populated in the grid. Is this possible? I need the application to be as lightweight as possible, so I dont want to use ASP.NET partial page rendering with the grid.

- Tree'd grid - need to have 2 levels of drill in where you start with say 5 rows, each with a + next to them, you can expand any of them to get more sub-rows (all with the same columns). Finally you can expand the subrows a second time with the same behavior, etc.

- Category/Subcategory column header. Need to be able to have 2 rows of column header that has a category/subcategory style relationship. So you would have maybe 4 columns with their own headers, then above those headers you have a single column header that is the parent category for those 4 subcategories, etc.

If these features supported/expected for the telerik ajax grid?

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 12 Nov 2009, 04:13 PM
Hi David,

Directly onto your questions:
  1. This is not supported since RadGrid for ASP.NET AJAX is ASP.NET server control. However, you can implement client-side binding for the grid as illustrated in these samples:
    http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx
    http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx
  2. For this type of data presentation you may consider using the self-referencing hierarchy feature of the control:
    http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx
  3. Use template columns with html tables inside their header and item templates. See the last column on this example for reference:
    http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

Best regards,

Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David Lovell
Top achievements
Rank 1
answered on 12 Nov 2009, 11:01 PM
1) I did download the docs and looks like I guess I can setup the ASP.NET control one time and have it rendered on first page view, then still use my own webservice to create the json datasource that I can push into the control via javascript to update the view? As long as I can avoid partial page rendering (ie: UpdatePanel) and control the AJAX calls myself, that would be ideal.

2) I saw that example of the self-referencing heirarchy and it will probably work fine. Do you know if I can use plus/minus instead of the less than sign for expanding?

3) I saw the template column example, however there were no grid lines for the "subcategories" in the column header. Can the templated column do all the same things regarding independent sorting by clicking the header of the subcategory column? Can the gridlines be preserved? ie: Top header category is Q1 and the 4 sub headers (the actual columns) are Jan/Feb/Mar/Apr. I want those 4 to behave as the real columns with sorting, gridlines, etc.  Is that possible?
0
Sebastian
Telerik team
answered on 13 Nov 2009, 04:18 PM
Hello David,
  1. Considering that as addressed.
  2. You can choose your own image for the expand/collapse functionality based on your preferences.
  3. Specify grid lines for the html tables in the header/item templates and implement individual filtering and sorting for the sub-columns based on the approach demonstrated in this code library entry.

Best regards,

Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David Lovell
Top achievements
Rank 1
answered on 13 Nov 2009, 06:02 PM
Thank you for the link, I will take a look. I appreciate the responses.
Tags
Grid
Asked by
David Lovell
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
David Lovell
Top achievements
Rank 1
Share this question
or