Group header causes column resizing to not work properly

QuestionsGroup header causes column resizing to not work properly
Warren Davis asked 1 month ago

I have two columns grouped under a single header. Resizing any column causes the headers to become mismatched from the rest of the grid.  NOTE: This error occurs in your demo as well…

https://www.gridphp.com/demo/demos/appearance/group-headers.php

Column definitions…

$col = array();
$col["title"] = "Contract"; // caption of column
$col["name"] = "msContrHeads"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["width"] = "60";
$col["hidden"] = false;
$col["search"] = false; // this column is not searchable
$col["editable"] = true; // this column is editable
$col["editrules"] = array("number"=>true);
$colsMS[] = $col;

$col = array();
$col["title"] = "Current"; // caption of column
$col["name"] = "msCurrHeads"; // grid column name, must be exactly same as returned column-name from sql (tablefield or field-alias)
$col["width"] = "60";
$col["hidden"] = false;
$col["search"] = false; // this column is not searchable
$col["editable"] = true; // this column is editable
$col["editrules"] = array("number"=>true);
$colsMS[] = $col;

SETTING THE GROUP HEADERS...

$g2->set_group_header( array(
        "useColSpanStyle"=>true,    // NOTE: problem occurs whether this is true or false
        "groupHeaders"=>array(
            array(
                "startColumnName"=>'msContrHeads', // group starts from this column
                "numberOfColumns"=>2, // group span to next 2 columns
                "titleText"=>'Head Counts' // caption of group header
            )
        )
    )
);
1 Answers
Abu Ghufran Staff answered 1 month ago

Yes, this issue exist. We’ll be reviewing this bug and update this ticket after some progress.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

9 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?