I have ran into a problem that I cannot figure out.
I have 2 controls in a template column of a RadGrid.
An ASP textbox (tried also RadTextBox) and a RadNumericTextbox.
I am getting a Javascript error for NumberFormat.
Error : 'NumberFormat.AllowRounding' is null or not an object
I have tried declaring ALL properties but that does not seem to change the behavior. And I get the get the error sometimes on AllowRounding, DecimalSeperator and DecimalSeperator. I added the declaration to the NumberFormat for each exception that has occurred but that did not the issue.
I am using SelfReferencingHierachy based on the example of Self Referencing Hierarchy in the Demo's Section.
Here is my MasterTableView declaration
Here is the script that is getting the exception
How can I fix or work-around this issue? Do you need more information?
Thanks,
Mark.
I have 2 controls in a template column of a RadGrid.
An ASP textbox (tried also RadTextBox) and a RadNumericTextbox.
I am getting a Javascript error for NumberFormat.
Error : 'NumberFormat.AllowRounding' is null or not an object
I have tried declaring ALL properties but that does not seem to change the behavior. And I get the get the error sometimes on AllowRounding, DecimalSeperator and DecimalSeperator. I added the declaration to the NumberFormat for each exception that has occurred but that did not the issue.
I am using SelfReferencingHierachy based on the example of Self Referencing Hierarchy in the Demo's Section.
Here is my MasterTableView declaration
| <MasterTableView |
| HierarchyDefaultExpanded="True" HierarchyLoadMode="Client" |
| Width="100%" |
| EditMode="inline" DataKeyNames="Id,ParentId,Name" > |
| <SelfHierarchySettings ParentKeyName="ParentId" KeyName="Id" /> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name" ReadOnly="true"> |
| <HeaderStyle Width="150px" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn UniqueName="Value" HeaderText="Value" DataField="Value"> |
| <HeaderStyle Width="100px" /> |
| <ItemTemplate> |
| <asp:TextBox ID="stringValue" runat="Server" Visible="false" /> |
| <telerik:RadNumericTextBox ID="intValue" runat="Server" Skin="RxLink" EnableEmbeddedSkins="false" Visible="false" SelectionOnFocus="SelectAll"> <NumberFormat DecimalDigits="0" AllowRounding="false" KeepNotRoundedValue="true" DecimalSeparator="." />
|
| </telerik:RadNumericTextBox> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
Here is the script that is getting the exception
| NumberFormat.Round=function(_1,_2){ |
| if(!_2.NumberFormat.AllowRounding){ |
| return _1; |
| } |
How can I fix or work-around this issue? Do you need more information?
Thanks,
Mark.