RadGrid Custom Header with two levels

6 posts, 0 answers
  1. Pascal
    Pascal avatar
    10 posts
    Member since:
    Oct 2007

    Posted 14 Mar 2008 Link to this post

    Hi,
    I'm using the RadGrid from prometheus Q3 2007. What I want to do is to add a row in the header of the grid to group the colomuns. Exemple:

    <table>
    <tr>
        <td colspan="2">group1</td>
        <td colspan="2">group2</td>
    </tr>
    ... Followed by the standart header, assuming that my grid has 4 columns...

    I'm creating my grid programmatically and adding it to a placeholder like the exemple showed here in the section "Creating ItemTemplate/EditItemTemplate of GridTemplateColumn programmatically".

    I' using visual studio 2008, framework 3.5.

    Thanks,

    Pascal.
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 17 Mar 2008 Link to this post

    Hi Pascal,

    I suggest you take advantage of the grouping feature exposed by RadGrid Prometheus:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GroupBy/OutlookStyle/DefaultCS.aspx

    How to define group expressions statically or programmatically in code you can learn from these documentation articles:

    http://www.telerik.com/help/radcontrols/prometheus/?grdGroupByDeclarativeDefinition.html
    http://www.telerik.com/help/radcontrols/prometheus/?grdGroupByProgrammaticDefinition.html

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kenneth
    Kenneth avatar
    29 posts
    Member since:
    Sep 2004

    Posted 05 May 2008 Link to this post

    I'm also interested in the same header layout as Pascal. Please take a look at the following image. I want to have days as "groups" and details for each day under the day name.

    Is this possible with the current version of RadGrid?

    Regards
    Kenneth
  5. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 05 May 2008 Link to this post

    I think that the Telerik Scheduling component will be more appropriate for this purpose (judging from the screenshot you pointed). Take a look at its online demos to see whether it suits your needs:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/TimelineView/DefaultCS.aspx

    Kiara
  6. Kenneth
    Kenneth avatar
    29 posts
    Member since:
    Sep 2004

    Posted 06 May 2008 Link to this post

    The image attached was just an example and no, I'm afraid that the time scheduler won't suit my needs. I want to have the grid (with it's functionality like editing, sorting, calculated columns, footers etc) but with two row headers... 

  7. Nikita Gourme
    Nikita Gourme avatar
    318 posts
    Member since:
    May 2006

    Posted 06 May 2008 Link to this post

    Then consider Pascal's suggestion above in this thread or may be the new global item template feature will be suitable for you:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/GeneralFeatures/CardView/DefaultCS.aspx

    Just my  two cents here.
     
    Nikita
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017