[CLOSED] a problem with Time Field when change Thread Culture to .ru-RU.

  1. #1

    [CLOSED] a problem with Time Field when change Thread Culture to .ru-RU.

    i have a problem with reading and set the TimeField control when chnage site culture from en-us to .ru-RU, when using en-us everrything going perfect but when change the culture to ru-RU follwoing happened.

    sboxMiniReportTime.SelectedTime = TimeSpan.Parse(Utilities.CommonUtil.LoginUserInfromation().MiniRportReceiveTime);
    the above code have nClick image for larger version. 

Name:	ErrorTimeField.jpg 
Views:	64 
Size:	61.0 KB 
ID:	3009o exceptions but the Time field set to its empty default value ( set the time not working.

    also when try to read time to safe an exption occuerd , please find the attached image.

    your urgent help really appreciated.
    Last edited by Daniil; Aug 02, 2011 at 1:55 PM. Reason: [CLOSED]
  2. #2
    Hi,

    All works correctly for me
    <%@ Page Language="C#" Culture="ru-Ru" UICulture="ru-Ru"  %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <script runat="server">
        protected void SetTimeClick(object sender, DirectEventArgs e)
        {
            TimeField1.SelectedTime = new TimeSpan(18, 0, 0);
        }
    </script>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="rm" runat="server" />
            
            <ext:TimeField ID="TimeField1" runat="server" />
            
            <ext:Button runat="server" Text="Set time" OnDirectClick="SetTimeClick" />
        </form>
    </body>
    </html>
    Please provide your test case

Similar Threads

  1. [CLOSED] Change culture of ext:datepicker
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 15
    Last Post: Jan 28, 2013, 2:03 PM
  2. Replies: 4
    Last Post: Apr 15, 2011, 3:53 PM
  3. Time Field problem(Format)
    By Dinesh.T in forum 1.x Help
    Replies: 1
    Last Post: Jun 21, 2010, 8:39 PM
  4. [FIXED] Number field culture bug
    By markvb in forum Bugs
    Replies: 3
    Last Post: Jun 11, 2010, 1:07 PM
  5. Time Field Time Format Setting
    By Dinesh.T in forum 1.x Help
    Replies: 0
    Last Post: Aug 18, 2009, 3:21 AM

Posting Permissions