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
70
Deleting commas in Infragistics.Grid
posted

Hello,

I'm having trouble by deleting number's commas inside columns. I tried the Format() method, which works outside columns but not inside.

Here is the working code to delete commas :

@(Html.Infragistics().Combo().ID("idFilteringIdDeclarant").Format("").DataSource(ViewBag.Entities).ValueKey("EntityNumber").TextKey("EntityNumber").Width("100px").Render())

Here are the columns that don't change when applying Format() method  :

.Columns(column =>
     {
         column.For(x => x.IdLineD).Hidden(true);
         column.For(x => x.IdForm).Hidden(true);
         column.For(x => x.EntityNumber).Format("").Hidden(false).Width("5%");
         column.For(x => x.ReferenceAIEA).Hidden(true);
         column.For(x => x.Processing).Hidden(true);
         column.For(x => x.NbArticles).Format("").DataType("number").Hidden(true);
         column.For(x => x.NuclearMaterial).Hidden(true);
         column.For(x => x.Mass).Format("").DataType("number").Hidden(true);
         column.For(x => x.WasteOrigin).Hidden(true);
         column.For(x => x.ENDAN).FormatterFunction("lookupCountry").Width("75%").Hidden(false);
         column.For(x => x.DestinationAddress).FormatterFunction("lookupAd").Hidden(true);
         column.For(x => x.ExportDates).Hidden(true);
         column.For(x => x.Comments).Hidden(true);
         column.For(x => x.AdminComments).Hidden(true);
         column.For(x => x.Status).Width("20%").Hidden(false);
         column.For(x => x.canBeDeleted).Hidden(true);
     })}

Do you know any solution to counter this ? I really need to have a specific format (displaying 4 numbers without a comma)

Thank you very much,

Parents Reply Children