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

QdataGrid: row styling RowStyle and AlternateRowStyle not rendered if AddRowAction #293

Closed
paolo-anghileri opened this issue Sep 24, 2013 · 3 comments
Labels
Milestone

Comments

@paolo-anghileri
Copy link

In QdataGrid: row styling RowStyle and AlternateRowStyle not rendered if AddRowAction method is used on the same datagrid;

screenshot from 2013-09-24 11 23 51

  1. $this->dtgGroups->AddRowAction(new QMouseOverEvent(), new QCssClassAction('datagrid_row_mouse_over'));
  2. $this->dtgGroups->AddRowAction(new QMouseOutEvent(), new QCssClassAction());
  3. objStyle = $this->dtgGroups->RowStyle;
  4. $objStyle->FontSize = 12;
  5. $objStyle = $this->dtgGroups->AlternateRowStyle;
  6. $objStyle->BackColor = '#f6f6f6';

The alternate row styling in the screenshot datagrid only work if lines 1 and 2 are removed.

screenshot from 2013-09-24 11 30 32

@scottux
Copy link
Member

scottux commented Sep 24, 2013

Is line 3 a typo? The variable should be $objStyle

The example for this functionality uses the second parameter in the mouseover action:

$this->dtgGroups->AddRowAction(new QMouseOverEvent(), new QCssClassAction('datagrid_row_mouse_over', true));

Do you get any errors in your javascript console?

@paolo-anghileri
Copy link
Author

Thanks Scott.
Line 3 is a typo (missing $) in the message.
I tried adding also second parameter without results.
Data grid misses row styles and alternate row style if I add row action.

@scottux
Copy link
Member

scottux commented Sep 24, 2013

I will look into it. Thanks for the report.
On Sep 24, 2013 11:03 AM, "paolo-anghileri" notifications@github.com
wrote:

Thanks Scott.
Line 3 is a typo (missing $) in the message.
I tried adding also second parameter without results.
Data grid misses row styles and alternate row style if I add row action.


Reply to this email directly or view it on GitHubhttps://github.com//issues/293#issuecomment-25012078
.

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

No branches or pull requests

2 participants