Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
Column.width(0px) increase row height
posted

Hi all, 

I have this grid 


imag

but when i put the width (to 0px)with this code:

.Columns(column =>
{
column.For(x => x.uniCODOBJ).DataType("string").HeaderText("ID").Width("0px");
column.For(x => x.strTITOL).DataType("string").HeaderText("Títol");
column.For(x => x.strNOMPRO).DataType("string").HeaderText("Nom Productor");
column.For(x => x.datFECCRE).DataType("date").HeaderText("Data").Format("dd/MM/yyyy");
})

iggrig after code:


imag

row header increase a lot, how I can solved this trouble? 

a lot of thanks for advance

Parents
No Data
Reply
  • 24671
    posted

    Hey Ruben,

    I am not sure which version you're using, but the grid looks like it's not styled properly. Could you let me know how you reference the CSS  and which version you're using.

    Also we have column hiding feature, and that's the best way to hide a column compared to setting its width to 0px. You can set hidden="true" or Hidden(true) if you're configuring the grid in an MVC view.

    Let me know. Thanks

    Angel

Children