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,
Finally, I found a way to delete commas on Text Column. But i still have a problem : I can't delete commas which come from Combo. I can't apply a "groupSeparator" on Combo ... Is there a way to delete commas in ColumnEditorType.Combo ?
I am glad you have managed to resolve your issue. However I am not quite sure I understood you correctly regarding your second question.
Could you please provide more details around your scenario ? For example you can tell if you are using the igCombo as an editor for the igGrid, what's the dataSource of the igCombo.
" I can't delete commas which come from Combo" - do you mean that selecting an item in the combo commits a value like "some number 123,456" from which you want to remove the commas before commiting the value to the cell ?
Looking forward to hearing from you.