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
45
WebnumericEditor In Grid And Format Issue
posted

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 Indifferent Some ideas to get the grid remembering 3 decimals?

Thanks in advance

Johannes

 Thats what i've done ;-)

oCol.AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes

oCol.Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom

 

Dim nf1 As System.Globalization.NumberFormatInfo = New System.Globalization.NumberFormatInfo()

nf1.NumberDecimalDigits = 3

nf1.NumberDecimalSeparator = ","

nf1.NumberGroupSeparator = ""

Dim oNumericEdit As Infragistics.WebUI.WebDataInput.WebNumericEdit = CType(oPage.FindControl("WebNumericEdit2"), Infragistics.WebUI.WebDataInput.WebNumericEdit)

oNumericEdit.NumberFormat = nf1

oNumericEdit.HorizontalAlign = HorizontalAlign.Right

oNumericEdit.Visible = True

oCol.EditorControlID = CType(oPage.FindControl("WebNumericEdit2"), Infragistics.WebUI.WebDataInput.WebNumericEdit).UniqueID

Parents
No Data
Reply
  • 480
    Verified Answer
    posted

     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.

Children