[CLOSED] Conversion

  1. #1

    [CLOSED] Conversion

    In version 1.2 I wore

    Ext.Net.DateField Ext.Net.DateField a = new ();
    a.MonthYearText = "test";
    How do I use the 2.2?
    Last edited by Daniil; Jun 04, 2013 at 5:09 AM. Reason: [CLOSED]
  2. #2
    Hello!

    It seems that we didn't moved this property to Ext.NET 2.x.

    Globally you can change it using the following code:

    <script>
    	Ext.override(Ext.picker.Date, {
    		monthYearText: 'test',
    	});
    </script>
    If you want to change it only for one instance use the following code:

    DateField  a = new DateField();
    a.Listeners.AfterRender.Handler = "this.getPicker().monthBtn.setTooltip('test')";
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!

    It seems that we didn't moved this property to Ext.NET 2.x.

    Globally you can change it using the following code:

    <script>
    	Ext.override(Ext.picker.Date, {
    		monthYearText: 'test',
    	});
    </script>
    If you want to change it only for one instance use the following code:

    DateField  a = new DateField();
    a.Listeners.AfterRender.Handler = "this.getPicker().monthBtn.setTooltip('test')";
    Ok, and others?

    NextText
    PrevText
    TodayText
    TodayTip
  4. #4
    We are working on a solution.
  5. #5
    Quote Originally Posted by Daniil View Post
    We are working on a solution.
    We work with multilingual, and we are migrating to v2.2 is scheduled for this solution?
  6. #6
    We asked Sencha about this if they wouldn't add required functionality we will add that by ourself. We will inform you as soon as possible.
  7. #7
    Generally, we are very near to add this functionality. It is already done on client side, just needs to add a server property. But it will be included to the next release.

    For v2.1 we can suggest the following.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <script>
            var myPickerOptions = {
                monthYearText: "my monthYearText",
                nextText: "my nextText",
                prevText: "my prevText"
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />       
            
            <ext:DateField runat="server">
                <CustomConfig>
                    <ext:ConfigItem Name="pickerOptions" Value="myPickerOptions" Mode="Raw" />
                </CustomConfig>
            </ext:DateField> 
        </form>
    </body>
    </html>
  8. #8
    Quote Originally Posted by Daniil View Post
    Generally, we are very near to add this functionality. It is already done on client side, just needs to add a server property. But it will be included to the next release.

    For v2.1 we can suggest the following.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <script>
            var myPickerOptions = {
                monthYearText: "my monthYearText",
                nextText: "my nextText",
                prevText: "my prevText"
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />       
            
            <ext:DateField runat="server">
                <CustomConfig>
                    <ext:ConfigItem Name="pickerOptions" Value="myPickerOptions" Mode="Raw" />
                </CustomConfig>
            </ext:DateField> 
        </form>
    </body>
    </html>
    Sorry do not want to be boring, but I'm migrating to v2.2, and must be read in codebehind because I saw the translation database, which expected to launch the rellease?
  9. #9
    Quote Originally Posted by majunior View Post
    Sorry do not want to be boring, but I'm migrating to v2.2, and must be read in codebehind because I saw the translation database
    Example
    <ext:ConfigItem 
        Name="pickerOptions" 
        Value="{ monthYearText: 'my monthYearText', nextText: 'my nextText', prevText: 'my prevText' }" 
        Mode="Raw" />
    Quote Originally Posted by majunior View Post
    which expected to launch the rellease?
    The next release might appear soon. Do not you want to update for the SVN trunk? We added a DateField's PickerOptions property. It is possible to set up all the required options via that property.

Similar Threads

  1. [FIXED] Bug on Enum conversion
    By JCKodel in forum Bugs
    Replies: 1
    Last Post: Nov 27, 2012, 7:04 AM
  2. [CLOSED] Slow Conversion from ASP
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 10, 2012, 6:03 PM
  3. DateTime conversion error
    By HexElffilter in forum 1.x Help
    Replies: 6
    Last Post: Feb 21, 2012, 11:29 AM
  4. [CLOSED] TimeField Conversion
    By capecod in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 25, 2010, 9:19 AM
  5. [CLOSED] JSON conversion
    By Lex in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 22, 2008, 4:06 AM

Posting Permissions