This is a migrated thread and some comments may be shown as answers.

Radfilter textbox German numeric format issue

7 Answers 66 Views
Filter
This is a migrated thread and some comments may be shown as answers.
RAKESH
Top achievements
Rank 1
RAKESH asked on 28 Aug 2013, 11:02 AM

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

7 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 02 Sep 2013, 06:42 AM
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.
0
RAKESH
Top achievements
Rank 1
answered on 02 Sep 2013, 01:40 PM
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
0
Antonio Stoilkov
Telerik team
answered on 05 Sep 2013, 08:16 AM
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.
0
RAKESH
Top achievements
Rank 1
answered on 11 Dec 2013, 08:41 AM
Hi Antonio,

Did you get any response from dev team?

Regards,
Kumar
0
Antonio Stoilkov
Telerik team
answered on 16 Dec 2013, 06:30 AM
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.
0
Jannis
Top achievements
Rank 1
answered on 16 Sep 2015, 08:04 AM

Hi,

anything new on that topic?

Is this already fixed?

 

Regards

Jannis

0
Kostadin
Telerik team
answered on 21 Sep 2015, 08:43 AM
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
Tags
Filter
Asked by
RAKESH
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
RAKESH
Top achievements
Rank 1
Jannis
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or