Studio for Silverlight

English to Portuguese

  •  Seratti said 11 months, 3 weeks ago:

    Hi boys and girls,

    I have a doubt and I think that somebody can help me.

    I have a Web Silverlight Application. In one of my windows I’m using a

    <c1:C1DataGrid.../>

    and I have this code (below) inside of my DataGrid.

                <c1:C1DataGrid.TopRows>
                    <c1:DataGridFilterRow Height="35"/>
                </c1:C1DataGrid.TopRows>
    

    But the filter is in English. How can I do to my Filter be in Portuguese.

    before -> "Type here to filter"
    after -> "Clique aqui para filtrar"

    I put a image below…

    Attachments:
    You must be logged in to view attched files.
  •  C1_UpkarS64p said 11 months, 3 weeks ago:

    You can listen to the LoadedCellPresenter event and set the watermark there:-

     datagrid.LoadedCellPresenter += (s, e) =>
                    {
                        if (e.Cell.Row.Type == DataGridRowType.Top)
                        {
                            (e.Cell.Presenter.Content as C1TextBoxBase).Text = "my text";
                        }
                    };

    Regards

  •  Seratti said 11 months, 3 weeks ago:

    Can you tell me where I need to put this code ?! I dont found the event (S, E) :(

  •  C1_UpkarS64p said 11 months, 3 weeks ago:

    Which event you didn’t found-’LoadedCellPresenter’?

  •  Seratti said 11 months, 3 weeks ago:

    I tried put yout code in my LOAD of my page and I didnt found some things. You can see bellow. I change a line you can see here :

     if (e.Cell.Row.Type == C1.Silverlight.DataGrid.DataGridRowType.Top)
    Attachments:
    You must be logged in to view attched files.
  •  C1_UpkarS64p said 11 months, 3 weeks ago:

    Please add the namespace C1.Silverlight and C1.Silverlight.DataGrid to the page. Also, please set the watermark property instead of the 'Text’.

    Regards

  •  Seratti said 11 months, 2 weeks ago:

    I try to put the namespace but I dont found the "C1TextBoxBase).Text". And sometimes when I execute my application I get these message: " Object reference not set to an instance of an object" in the line 4 (four).
    Whats I can do ?! My code bellow:

                gridAgendamento.LoadedCellPresenter += (s, e) =>
                {
                    if (e.Cell.Row.Type == DataGridRowType.Top)
                    {
                        (e.Cell.Presenter.Content as C1TextBoxBase).Content = "Clique para filtrar";
                    }
                };
  •  Greg Lutz15p said 11 months, 2 weeks ago:

    We also provide translated resource files for you in Portuguese. This would handle all of the built-in strings in the control such as the filter drop-downs, and grouping area. You can see how to apply the portuguese resource files here:

    http://our.componentone.com/2011/07/22/localization-localizacion-lokalisering/

    This is more of the correct way to handle localization,

    Thanks

    Answer
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.