Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
localize GroupArea text
posted

 Hi,

I'd like to know if it's possible to translate or change text in the GroupBy Area:

Group by Area Drag a filed here to group by that field

 

Now it's in english but I'd like to translate to other languages.

 

Thanks

Parents
No Data
Reply
  • 2125
    posted

    Hi,

    You can change( translate) the text in the GroupByArea  of the xamDataGrid  by manipulating the  GroupByArea ‘s  properties :

    1. Prompt1  - Returns/sets the first of 2 instructional prompts displayed in the
    Infragistics.Windows.DataPresenter.GroupByArea.
    2. Promp2  - Returns/sets the second of 2 instructional prompts displayed in the
    Infragistics.Windows.DataPresenter.GroupByArea .
     
     You can manipulate them through Xaml


      Here is a solution:


      <Window x:Class="xamDataGridCellAreaManipulation.xamDataGridCellArea"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:igDp="http://infragistics.com/DataPresenter"   
        Title="xamDataGridCellArea" Height="459" Width="548">
        <Grid>
            <Grid.Resources>
                <Style x:Key="changeGroupByArea" TargetType="
                             {x:Type igDp:GroupByArea}">
                        <Setter Property="Prompt1" Value="group by area 2"/>
                        <Setter Property="Prompt2" Value="Drag a field 2"/>
                    </Style>
            </Grid.Resources>
            <igDp:XamDataGrid Name="xamDataGrid1" GroupByAreaStyle="{StaticResource changeGroupByArea}"
            BindToSampleData="True" Margin="0,0,0,117" BorderBrush="Coral"/>    
        </Grid>
      </Window>

      You can manipulate them directly  through code:

       private void button1_Click(object sender, RoutedEventArgs e)
            {
                xamDataGrid1.GroupByArea.Prompt1 ="group by area 2";
                xamDataGrid1.GroupByArea.Prompt2 ="Drag a field 2";
            }


    Best Regards,
    Yanko

Children
No Data