This is a migrated thread and some comments may be shown as answers.

How can I get along with bilingual headers (RadGridView)?

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Enric
Top achievements
Rank 1
Enric asked on 18 Jan 2014, 03:48 PM
Hi there,

In my WPF project I'm using two RESX files in order to keep both english and spanish languages, freely chosen for the user

When I assign my SQL view on ItemsSource I get twice the name of the headers (logically, I get each header from V_Clientes2 object and then get each header in Columns collection.. For example: Header="{Resx RadGridViewCustomers_Nombre}")



I do not know how can I fix that... it is not acceptable at all, 'cause the user see "Name" and "Nombre" at the same time instead to see just one of them:

XAML:

  <telerik:RadGridView x:Name="dgvClientes" ItemsSource="{Binding V_Clientes2}" HorizontalAlignment="Left"
            Margin="10,44,0,-45" VerticalAlignment="Top" Height="531"
            Width="469" ColumnWidth="SizeToCells" PreviewMouseDoubleClick="dgvClientes_PreviewMouseDoubleClick" Grid.ColumnSpan="2" Grid.RowSpan="3">

            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Tipo}" Header="{Resx RadGridViewCustomers_Tipo}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Documento}" Header="{Resx RadGridViewCustomers_Doc}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Nombre}" Header="{Resx RadGridViewCustomers_Nombre}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Apellido1}" Header="{Resx  RadGridViewCustomers_PrimerApellido}" />

            </telerik:RadGridView.Columns>



Find attached one image where you can see this problem.

Thanks in advance for your time and advices,

1 Answer, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 21 Jan 2014, 12:49 PM
Hello Enric,

As far as I can see, you have not set RadGridView.AutoGenerateColumns to False and there are columns defined in xaml. I guess that this is the reason for having duplicated columns.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
General Discussions
Asked by
Enric
Top achievements
Rank 1
Answers by
Vera
Telerik team
Share this question
or