Table Component Row styleclass dataprovider is reset

Forum to discuss the new web client version of Servoy.

Table Component Row styleclass dataprovider is reset

Postby dev-ws-011 » Thu Mar 31, 2022 4:52 pm

Hi All,

I am working with Servoy Extra Table component in NG Desktop client. I have come across an issue while setting rowStyleClassDataprovider. This property is working fine when screen is loaded and style is implemented.
As soon as a record with row style implemented is selected, it is updated to selectedRow styleclass and does not revert to row styleclass when unselected (another record is selected). This makes rowStyleclassDataprovider ineffective. If screen is loaded again, then style appears again.

Thing to note here is that Row style vary according to each record for e.g. record with progress '100%' can be displayed as green, etc.

Any help shall be highly appreciated.

Thanks
Servoy Developer
dev-ws-011
 
Posts: 73
Joined: Fri Oct 21, 2016 8:23 am

Re: Table Component Row styleclass dataprovider is reset

Postby robert.edelmann » Fri Apr 01, 2022 4:29 pm

Have you tried checking in the developer-tools (in the Menu "View" under "Toggle Developer Tools") if the style is applied to the row?

You can check which styles are applied to the grid / row / cell and if something else overrides the style.
mit freundlichen Grüßen
Robert Stefan Edelmann
User avatar
robert.edelmann
 
Posts: 91
Joined: Wed Aug 14, 2013 6:12 pm

Re: Table Component Row styleclass dataprovider is reset

Postby dev-ws-011 » Mon Apr 04, 2022 1:25 pm

robert.edelmann wrote:Have you tried checking in the developer-tools (in the Menu "View" under "Toggle Developer Tools") if the style is applied to the row?

You can check which styles are applied to the grid / row / cell and if something else overrides the style.


Yes, initially, it appears with correct style but as soon as record is selected its style is removed and normal table style gets applied.
Servoy Developer
dev-ws-011
 
Posts: 73
Joined: Fri Oct 21, 2016 8:23 am


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests