Hello All,
I inherited some code that has a data bound UltraWebGrid where a single WebNumericEdit object on the page is used to set the same number of editor decimals for every grid column. i.e. I loop through all the grid columns, post-bind, and set the column EditorControlID to be the ID of the WebNumericEdit object.
I now find out that I need to have different numeric editor options on every column in order to have different numbers of decimals for every column. Can anyone provide any guidance on how, at load time, to create/use WebNumericEdit editors to set different number of decimals on every column?
The data source can have any number of numeric columns - that's what has got me stumped.
Thanks for any advice.
Corey.
Hello CoreyW,
This is just a follow up on the thread if you have any questions in regards to setting the Format property of the UltraGridColumn for displaying different decimal options. In the attached sample shows the usage of the property with a decimal type of the data's record.
Let me know if you have any questions with this matter. Thank you.
For setting different number of decimals for each column you can set within the Format property of the UltraGridColumn. More information can be found here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Infragistics4.WebUI.UltraWebGrid.v11.1~Infragistics.WebUI.UltraWebGrid.UltraGridColumn~Format.html.
Attached is a sample that I ran for this using NetAdvantage 11.1.20111.2020 and displaying different number of decimals for 3 different columns.