-
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.| #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)
| #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.| #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"; } };| #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.
Studio for Silverlight
English to Portuguese
- Downloads
- Products
- ComponentOne Ultimate
- Studio Enterprise
- Studio for WinForms
- Studio for WPF
- Studio for Silverlight
- Studio for Windows Phone
- Studio for ASP.NET Wijmo
- Studio for iPhone
- Studio for Entity Framework
- Studio for ActiveX
- Studio for Compact Framework
- Studio for WinRT XAML
- Studio for WinJS
- ActiveReports
- Spread Studio for .NET
- Spread for WinForms
- Spread for ASP.NET
- Spread WPF-Silverlight
- Spread WinRT
- Spread COM
- Wijmo - HTML5/jQuery
- Maps Powered by Esri
- Studio for LightSwitch
- OLAP for WinForms
- OLAP for Silverlight
- OLAP for LightSwitch
- IntelliSpell
- XapOptimizer
- Doc-To-Help
- DemoWorks
- Support
- Community
- About
- Store
As a leading component vendor in the Microsoft Visual Studio Industry Partner program, ComponentOne has been providing the widest range of Microsoft Visual Studio components, IDE platform development tools, and applications for over 22 years. ComponentOne product lines encompass custom WinForms, ASP.NET, WPF, Silverlight, Mobile, and COM components, documentation tools, and Web Parts for Microsoft Office SharePoint Server and Windows SharePoint Services.
Contact ComponentOne: 1.800.858.2739 | Pittsburgh: 412.681.4343
©2013 ComponentOne LLC All Rights Reserved.
All product and company names herein may be trademarks of their respective owners.
ComponentOne holds a license under Patent No. 5,490,216 (which expires on September 21, 2013)

