or
<telerik:GridNumericColumn FilterListOptions="VaryByDataType" FilterControlWidth="20px" AllowRounding="false" KeepNotRoundedValue="true"
DataField="Menge" DataType="System.Double" DataFormatString="{0:F2}" HeaderText="Menge" SortExpression="Menge"
UniqueName="Menge">
<HeaderStyle Width="70px" />
</telerik:GridNumericColumn>
Grid editmode is InPlace.
It works fine, when not in edit mode. However when in editmode, the value is shown without decimals - rounded - when the the GridNumericColumn does not have the focus.
When the GridNumericColumn, still in edit mode, gets the focus, the correct double value with decimals is displayed.
Any other property to set?
Thanks
Andreas
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadTreeView1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="PnlSiteContent" /> |
| <telerik:AjaxUpdatedControl ControlID="LitMsg" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="PnlSiteContent"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="PnlSiteContent" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <div style="float: left"> |
| <div style="float: left; border: solid 1px #ccc; padding-right:10px;"> |
| <telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView1_NodeClick"> |
| </telerik:RadTreeView> |
| </div> |
| <div style="float: left; border: solid 0px #ccc; width:700px; padding-left:10px;"> |
| <asp:Literal ID="LitMsg" runat="server"></asp:Literal> |
| <telerik:RadAjaxPanel ID="PnlSiteContent" runat="server"> |
| </telerik:RadAjaxPanel> |
| </div> |
| </div> |
| protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e) |
| { |
| LitMsg.Text = e.Node.Value; |
| Control cTest = LoadControl("CMTest.ascx"); |
| PnlSiteContent.Controls.Add(cTest); |
| } |
| <h1> |
| <asp:Literal ID="LitMsg" runat="server"></asp:Literal> |
| </h1> |
| <asp:TextBox ID="Tb" runat="server"></asp:TextBox><asp:Button ID="Btn" runat="server" Text="Click" OnClick="Btn_Click" /> |
| protected void Btn_Click(object sender, EventArgs e) |
| { |
| LitMsg.Text = "You entered: " + Tb.Text; |
| } |