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:
row header increase a lot, how I can solved this trouble?
a lot of thanks for advance
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
hey Ruben,
just checking if you need any additional help. Thanks
great, thanks Ruben. If there is anything you need, let me know.
Hi Angel,
this project is a MVC 4 project so I have this content in my _layout.cshtml
<link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/IGStyles/base/ig.ui.editors.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/IGStyles/base/ig.ui.grid.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/IGStyles/ig/jquery.ui.custom.css")" rel="stylesheet" type="text/css" />
I have all this references en mi project, but are all necessaries references?
my Infragistics version of infragistics.Web.MVC is 3.11.1.2118 so i don't have the hide column option...
I can upgrade mvc.grid to have this option?
I think that I miss a css style? it's possible?
a lot of thanks Angel
I suggest to take a look at the following topic, which explains which CSS to include and how:
http://help.infragistics.com/Help/NetAdvantage/jQuery/2013.1/CLR4.0/html/Deployment_Guide_Styling_and_Theming.html
As for the hidden property, yes, if you upgrade, you will definitely have it.
Thanks,
do you need any other feedback on this scenario? Let me know how things are going. Thanks,
Can I get one sample project with the necessary files for this¿?
i read the document but i don't have all the files.
Thanks a lot!