Radfilter textbox German numeric format issue

8 posts, 0 answers
  1. RAKESH
    RAKESH avatar
    6 posts
    Member since:
    Jun 2012

    Posted 28 Aug 2013 Link to this post

    Hi,

    I'm filtering my grid column using RadFilter. For numeric columns for en-US (english) culture with value 0.5 it is working fine.

    But if I change my culture to german (de-DE), Radfilter textbox is accepting value as 0,5 (which is correct) and my grid column also filtered with 0,5 values, but radfilter textbox converting 0,5 value as 5,00 which is not correct. It should show as 0,5.

    <telerik:RadFilter runat="server" ID="rfControllers" FilterContainerID="RadFilter1" ShowApplyButton="true" Visible="true" Skin="Web20"></telerik:RadFilter>

    Please refer to the attachment.

    Please help me.

    - Kumar

  2. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 02 Sep 2013 Link to this post

    Hi,

    I have assembled a sample page in order to replicate the issue but to no avail. In order to further investigate the problem you could modify the provided page to show the unwanted behavior so we could debug it and advice you with the best possible solution. You could upload the files on a public sharing site and provide a link in your post.

    Regards,
    Antonio Stoilkov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RAKESH
    RAKESH avatar
    6 posts
    Member since:
    Jun 2012

    Posted 02 Sep 2013 Link to this post

    Hi Antonio,

    I have created sample pages to replicate the issue. Please see below working code. Filter Value with 1,5 and click on apply button. You will notice that value 1,5 changing it to 15,00 in Radfilter Numeric Textbox.

    ASPX
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default3.aspx.cs" Inherits="Dave.Web.Default3" %>
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <telerik:RadScriptManager runat="server">
            </telerik:RadScriptManager>
             
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
            
            <telerik:RadFilter runat="server" ID="rfControllers" FilterContainerID="RadGrid1">
                <FieldEditors>
                    <telerik:RadFilterNumericFieldEditor FieldName="Value"></telerik:RadFilterNumericFieldEditor>
                </FieldEditors>
            </telerik:RadFilter>
             
                <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"
                    AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" PageSize="7">
                    <MasterTableView>
                        <Columns>
                            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Value" HeaderText="Value" UniqueName="Value">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </telerik:RadAjaxPanel>
        </div>
        </form>
    </body>
    </html>

    ASPX.CS
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
    using System.Data;
     
    namespace Dave.Web
    {
        public partial class Default3 : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
     
            }
     
            protected override void InitializeCulture()
            {
                Page.UICulture = "de-DE";
                Page.Culture = "de-DE";
            }
     
            protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
            {
                DataTable table = new DataTable();
                table.Columns.Add("ID", typeof(int));
                table.Columns.Add("Value", typeof(double));
                for (int i = 1; i < 21; i++)
                {
                    double val = i + 0.5;
                    table.Rows.Add(i, val);
                }
                RadGrid1.DataSource = table;
            }
        }
    }

    Sorry for pasting the code here. I don't have any URL to upload the code.

    - Kumar
  5. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 05 Sep 2013 Link to this post

    Hi,

    I have successfully replicated the problem. It seems that when the RadNumericTextBox parses its Text property value it does not take into account the culture. I can ensure you I have passed your request to the dev team and the issue will be further researched and fixed. 

    Regards,
    Antonio Stoilkov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. RAKESH
    RAKESH avatar
    6 posts
    Member since:
    Jun 2012

    Posted 11 Dec 2013 Link to this post

    Hi Antonio,

    Did you get any response from dev team?

    Regards,
    Kumar
  7. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 16 Dec 2013 Link to this post

    Hello Rakesh,

    Our dev team have confirmed the problem and will do their best to ensure a fix in the next Beta release. It seems the problem is not trivial and will require change in the current implementation for getting and setting values. This is why we could not provide an exact estimation when the behavior will be corrected.

    Regards,
    Antonio Stoilkov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  8. Jannis
    Jannis avatar
    9 posts
    Member since:
    May 2013

    Posted 16 Sep 2015 Link to this post

    Hi,

    anything new on that topic?

    Is this already fixed?

     

    Regards

    Jannis

  9. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 21 Sep 2015 Link to this post

    Hello Jannis,

    The bug should be already resolved so I would suggest you to update to our latest official release.

    Regards,
    Kostadin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017