public class ccNumericTextBox : RadMaskedNumericInput
{
public ccNumericTextBox()
{
}
public override void EndInit()
{
base.EndInit();
}
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
{
this.SelectAll();
base.OnGotKeyboardFocus(e);
}
}
Here is the XAML:
<cc:ccNumericTextBox x:Name="txtDuration" Padding="2" Mask="#3.1" Height="22" Value="{Binding Path=Hours, Mode=TwoWay}"/>
Here is the Style:
<Style TargetType="{x:Type cc:ccNumericTextBox}">
<Setter Property="Margin" Value="3,3,3,3"/>
</Style>
<
telerik:GridViewDataColumn Header="Modifier Type" DataType="{x:Type System:String}" Width="*" DataMemberBinding="{Binding SystemModifierType_.Name}" />


Hello Telerik,
We use a ResourceFIle for all displayed text in our application in order to support Globalization. This works great for the GridViewDataColumn.Header unless it is in a child GridView.
In the example below, we were forced to use a custom header in in the RowDetailsTemplate in order for the Header to Display correctly. If we set the Header property in _gridDetails like in _gridPing it does not work. There were no binding errors, but the Header text was the displaying the binding property name, not the ResourceFile property value.
Is this a known issue? I would like to use the simpler syntax if possible.
Thank you,
-Mark
<datagrid:NstrumentDataGrid x:Name="_gridPing" Grid.Row="1" ItemsSource="{Binding Responses}" > <datagrid:NstrumentDataGrid.Columns> <telerik:GridViewToggleRowDetailsColumn /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Address}" Width="150" DataMemberBinding="{Binding Path=Address}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Bytes}" Width="75" DataMemberBinding="{Binding Path=BufferLength}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Sent}" Width="75" DataMemberBinding="{Binding Path=Sent}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Received}" Width="90" DataMemberBinding="{Binding Path=Received}"/> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.PercentLost}" Width="75" DataMemberBinding="{Binding Path=PercentLost}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Min}" Width="75" DataMemberBinding="{Binding Path=Min}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Avg}" Width="75" DataMemberBinding="{Binding Path=Avg}" /> <telerik:GridViewDataColumn Header="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Max}" Width="75" DataMemberBinding="{Binding Path=Max}" /> </datagrid:NstrumentDataGrid.Columns> <datagrid:NstrumentDataGrid.RowDetailsTemplate> <DataTemplate > <datagrid:NstrumentDataGrid x:Name="_gridDetail" ItemsSource="{Binding Responses}" Margin="25,0,0,0" BorderThickness="0" > <datagrid:NstrumentDataGrid.Columns> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=Status}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.Status}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=RoundTripTime}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.RTT}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Width="125" DataMemberBinding="{Binding Path=BufferLength}" > <telerik:GridViewDataColumn.Header> <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.Resources.Tools.BufferLength}"/> </telerik:GridViewDataColumn.Header> </telerik:GridViewDataColumn> </datagrid:NstrumentDataGrid.Columns> </datagrid:NstrumentDataGrid> </DataTemplate> </datagrid:NstrumentDataGrid.RowDetailsTemplate> <telerik:RadContextMenu.ContextMenu > <telerik:RadContextMenu x:Name="_contextMenu" Opened="RadContextMenu_Opened"/> </telerik:RadContextMenu.ContextMenu> </datagrid:NstrumentDataGrid>Hi,
How would you handle the following issue?
Setup
I have a DocumentHost control which contains 2 RadPanes (RadPane1 and RadPane2). Each RadPane contains 2 textboxes (Textbox1 and Textbox2). I have subscribed to the GotFocus and LostFocus on each RadPane.
Steps
1. I float RadPane2 and subscribe to the GotFocus and LostFocus of the ToolWindow using the PaneStateChange event.
2. I leave RadPane1 in the DocumentHost.
3. I click on RadPane1 Textbox1 and the RadPane1 GotFocus is fired.
4. I click on RadPane2 Textbox1 and the RadPane2 and ToolWindow GotFocus is fired.
5. I click on RadPane1 Textbox1 and no GotFocus is fired for RadPane1.
6. I click on RadPane2 Textbox1 and no GotFocus is fired for RadPane2.
7. If I click on RadPane1 Textbox2 GotFocus is fired.
Observation
It seems as though I can have one RadPane in the DocumentHost and one floating ToolWindow which both think they have focus at the same time. Shouldn't I only be able to have one RadPane that has focus as any point in time?
Question
How can I work out which pane has focus regardless of where it is located? Unfortunately the RadDocking control does not have an event like this.