Home > Forum > General > Change style of Datatable

Change style of Datatable
0

How can i cange the style of the Datatable? As example i want to change the row height to a certain number, and the column width to fit the content, however i did not manage to achieve this simple goal.
i would appreciate any tipp on how to do it.

MVP

Hi Almin,

I was just modifying the styling of our data table and remembered your question

You can achieve this by adding an HTML field with the css.

In our case we target column _1, which is the internal name of the calculated column of the BPS internal view used for the data table.

You may need to modify this a bit to match your WEBCON BPS version. This is working for 2022.

#SEL_SQLGrid_#{WFCON:2335}# td[data-column="_1"],#SEL_SQLGrid_#{WFCON:2335}# th[data-key="_1"] {
width:50px;
}


Best regards,
Daniel

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings