Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chybné zobrazení datagridu při groupAction #472

Closed
xpackal5 opened this issue Feb 26, 2017 · 7 comments
Closed

Chybné zobrazení datagridu při groupAction #472

xpackal5 opened this issue Feb 26, 2017 · 7 comments

Comments

@xpackal5
Copy link

Ahoj. Chybka při zobrazování tabulek, kde se používají groupAction

Pokud je tabulka bez nalezených dat (např. defaultně vyfiltrovaná) -> chybí sloupec s fajfkama ke groupActions, jakmile filtr změním a nějaká data se objeví, přidá se sloupec s fajfkama, ale v hlavičce zůstane původní rozložení, tj sloupec s fajfkama se přiřadí k hlavičce prvního sloupce atd. děje se to jenom při Ajaxu. Nakonec počet sloupců v hlavičce je menší než počet sloupců v tabulce
2017-02-26-105420_1280x800_scrot

@lesho
Copy link

lesho commented Feb 26, 2017

Did you tried to use required columns only from the tables? I have had similar issue with select * from XYZ join ...

@paveljanda
Copy link
Member

@xpackal5

  1. Can you please write the issues in EN? Thanks.
  2. What version of ublaboo/datagrid are you using? And version of assets?

@xpackal5
Copy link
Author

Hi. Sorry for Czech, but it was faster for me :-)
I have fresh Ublaboo/Datagrid (5.0.8) and assets too. I am using model class that implements IDataSource a return Array.

@xpackal5
Copy link
Author

You can view this bug on DEMO page too. Try [https://ublaboo.org/datagrid/?examplesGrid-filter%5Bname%5D=xxx] and then delete xxxx from filter. You can see that header of table is displaced Check collumns is on ID, ID is on NAME and NAME is on LINK
2017-02-26-180131_1280x800_scrot

@paveljanda
Copy link
Member

@xpackal5 Aah, I see. Thanks for the report. WIll fix it.

@xpackal5
Copy link
Author

I try this hack.
<tr n:block="header-column-row"> {var $isGroupAction=$control->hasGroupActions()} <th n:if="$isGroupAction" rowspan="2" class="col-checkbox"> <input n:class="$control->useHappyComponents() ? 'happy gray-border' , primary" name="{$control->getName()|lower}-toggle-all" type="checkbox" data-check="{$control->getName()}" data-check-all="{$control->getName()}"> </th>
And it seems to be ok.

@paveljanda
Copy link
Member

@xpackal5 Is it still broken? Can not replicate it..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants