jQuery UI Widgets Forums Grid Grid group renderer header text formatting

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 3 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • dan123
    Participant

    Hi i have this jqxgrid where i have enabled grouping where 1st level is product name and 2nd level is firstname.
    Now on the grouprenderer i created two dummy texts ‘Total’ and ‘Total’ which i want to position them exactly below the designated columns.

    1st level is product name
    The first ‘Total’ should be position right under column ‘Quantity’
    The second ‘Total’ should be position right under column ‘Price’

    2nd level is firstname
    The first ‘Total’ should be position right under column ‘Quantity’
    The second ‘Total’ should be position right under column ‘Price’

    I tried to do float right but that is not working out to push those two ‘Total’ to the right. So was wondering if there is a workaround and any help appreciated thanks.

    Here is my example:
    https://jseditor.io/?key=jqxgrid-group-text-format


    Hristo
    Participant

    Hello dan123,

    There is no issue that I could mark as such.
    It used custom logic to visualize the data on the wanted way.
    For this reason, it cannot expect a workaround.
    Also, I am not absolutely sure what you are wanted to achieve.
    On the last query, I look into your code and you could set the width of these containers to 100% to get the values on the right side.
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com


    dan123
    Participant

    Hi Hristo,

    I forgot to mention this that on the groupsrenderer, i want to return different text for the first group level and second group level.
    Sorry i can only illustrate using example of what i am trying to achieve. But will appreciate your help.
    For example:
    First row
    Group Main: Main Group
    Sub Group: Sub Group
    ..

    Here is my updated example:
    https://jseditor.io/?key=jqxgrid-group-text-format-ver-2


    Hristo
    Participant

    Hello dan123,

    You are almost done with it just need to use better check for the condition because always check the array.
    I would like to suggest you check by another sign, please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.