Redundant "header" cells in row area

4 posts, 0 answers
  1. Won
    Won avatar
    2 posts
    Member since:
    Dec 2015

    Posted 22 Dec 2015 Link to this post

    Please see the attached image for an example.

    Is there a way I can get rid of or hide the extra header cells in the row area?

    For example, let's say my data source is a JSON object similar to:

    [{"MAIN NAME": "MAIN NAME 2", "SUBNAME": "SUBNAME 1}, {"MAIN NAME": "MAIN NAME 2, "SUBNAME": "SUBNAME 2"}]

    For example,  can I combine the cells for SUBNAME and SUBNAME1?

    As it is, the extra MAIN NAME and SUBNAME cells being rendered are taking up a lot of horizontal real estate.

    Thanks

  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 24 Dec 2015 Link to this post

    Hi Won,

    Set expand: false for your rows in the configuration of your kendoPivotGrid.
    rows: [{ name: "Field1", expand: false }]
    In this case they will be collapsed by default and not take the extra horizontal space.

    Regards,
    Vasil
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Won
    Won avatar
    2 posts
    Member since:
    Dec 2015

    Posted 24 Dec 2015 in reply to Vasil Link to this post

    Hi Vasil, thanks for the reply.

     Setting the expand: false only hides the issue though - if the user drills down, they still see the additional "header" rows cells.

    Essentially there are two cells being created in the row for each field - the name of the field itself (i.e. "City", and the value of the field "New York".

     Please see the attached screenshots. The first (sample0.png) is how it is right now. The second (sample1.png) is what I'm trying to achieve.

    Thanks,

  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 25 Dec 2015 Link to this post

    Hello Won,

    I am afraid that this functionality is not supported by the widget at this time.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready