[CLOSED] Add code to localization grid header

  1. #1

    [CLOSED] Add code to localization grid header

    Hi,

    A long time ago I published posts to consult on the issue DisplayName:
    http://forums.ext.net/showthread.php...-column-header
    and attached on the code.
    However, I missed some of the code, so it does not work well.Here I am attaching other codes.

    1.MVC\MetadataAware\ColumnBaseAttribute.cs
    Line 431
     column.Text = Regex.Replace(metadata.PropertyName, "([a-z])([A-Z])", "$1 $2");
    to
    
    
                    if (!string.IsNullOrEmpty(metadata.DisplayName))
                    {
                        column.Text = metadata.DisplayName;
                    }
                    else
                    {
                        column.Text = Regex.Replace(metadata.PropertyName, "([a-z])([A-Z])", "$1 $2");
                    }
    2.MVC\factory\tablepanelbuilder.cs
    Line 73
     column.Text = Regex.Replace(meta.PropertyName, "([a-z])([A-Z])", "$1 $2");
    to
                    if (!string.IsNullOrEmpty(meta.DisplayName))
                    {
                        column.Text = meta.DisplayName;
                    }
                    else
                    {
                        column.Text = Regex.Replace(meta.PropertyName, "([a-z])([A-Z])", "$1 $2");
                    }
    I hope you will add the code in the next version to achieve localization, thank you!
    Last edited by Daniil; Mar 31, 2014 at 11:57 PM. Reason: [CLOSED]
  2. #2
    Hi @macroe,

    Thank you for the suggestion. It has been done in the revision #5741 and will go to the next public release.

Similar Threads

  1. Replies: 4
    Last Post: Jul 13, 2012, 7:47 PM
  2. [CLOSED] Localization of grid column menus?
    By anup in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 28, 2011, 1:47 PM
  3. Grid panel column header localization
    By reezvi in forum 1.x Help
    Replies: 5
    Last Post: Aug 08, 2011, 9:57 AM
  4. Replies: 1
    Last Post: Nov 24, 2009, 11:31 AM
  5. Replies: 9
    Last Post: Apr 27, 2009, 3:19 PM

Posting Permissions