Hi!
We use a ajax grid to display different prices. In our case we need 3 places after the decimal separator (","). The first time, the grid is loaded everthing looks correctly. When I change the value everything works fine. Just when I trigger Rows.refresh all numbers are displayed with 2 decimal places (Which is wrong). When i click back in the cell, the editor gets applied and the 3 places are back Some ideas to get the grid remembering 3 decimals?
Thanks in advance
Johannes
Thats what i've done ;-)
oCol.Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom
nf1.NumberDecimalDigits = 3
nf1.NumberDecimalSeparator = ","
nf1.NumberGroupSeparator = ""
oNumericEdit.NumberFormat = nf1
oNumericEdit.HorizontalAlign = HorizontalAlign.Right
oNumericEdit.Visible = True
oCol.EditorControlID = CType(oPage.FindControl("WebNumericEdit2"), Infragistics.WebUI.WebDataInput.WebNumericEdit).UniqueID
Thank you a lot!
Now I reasign the numberformat on every initialize layout event of the grid, which is not very beautous, but everything works as it should!
I'm almost sure that the format of the WebNumericEdit is lost when you connect to the server, so renitialize the format of the editor everytime there's a server-client connection should work.