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,
Thank you very much to help me with that problem.
Like i said before I couldn't see the project anymore, and apparently someone else fixed it ! Anyway, I Checked your solution and it seemed to be the right one, even if i couldn't test it.
Thank you again !
Best regards,
Guillaume
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
For values in the igGrid columns you can use the formatter function - https://www.igniteui.com/help/api/2014.2/ui.iggrid#options:columns.formatter, which accepts a value and return the new formatted value. I believe this should work for you..
Please let me know if you need further assistance on the issue when you have access and try this in your project.
I can't provide more code at the moment, and am very restricted in the informations because i don't have any access on the project right now.
" 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 ?"
- It is exactly what i want to do but there isn't any method to change that format.
I also use the IgCombo as an editor for the IgGrid
Sorry to be stingy at the moment and will give you more informations when i'll get the project sources.