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

LostKeyboardFocus after enter key pressed

1 Answer 110 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Karel asked on 14 May 2014, 12:50 AM

I have problem with RadDataPager. If I try to write specific page number into current page textbox and press enter key (or tab key as well), nothing happens, only LostKeyboardFocus is fired. These are the only two keys that fires that event. Have you faced that issue before?

This is the code of my page:

    Background="Transparent" Language="cs-CZ"
    mc:Ignorable="d" d:DesignHeight="200" d:DesignWidth="800">
        <convertors:WidthConverter x:Key="WidthConverter" />
        <DataTemplate x:Key="TotalPriceWithCurrency">
            <TextBlock Text="{Binding TotalPriceWithCurrency}" HorizontalAlignment="Right" />
    <telerik:RadBusyIndicator IsBusy="{Binding Busy.IsBusy}">
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                    ItemsSource="{Binding Items}"
                    SelectedItem="{Binding CurrentItem}"
                    cal:Message.Attach="[Event RowActivated] = [Action ChangeSelectedItem(Grid.SelectedItem)]"
                        <telerik:GridViewDataColumn Header="ID" Width="60"
                            DataMemberBinding="{Binding Id}" TextAlignment="Right"/>
                        <telerik:GridViewDataColumn Header="Název obchodu" Width="160"
                            DataMemberBinding="{Binding Name}" />
                        <telerik:GridViewDataColumn Header="Typ obch." Width="100"
                            DataMemberBinding="{Binding TradeType}" />
                        <telerik:GridViewDataColumn Header="Produkt" Width="100"
                            DataMemberBinding="{Binding Product}" />
                        <telerik:GridViewDataColumn Header="Obchodník" Width="100"
                            DataMemberBinding="{Binding Trader.Name}" />
                        <telerik:GridViewDataColumn Header="Cílová kniha" Width="120"
                            DataMemberBinding="{Binding SellPortfolio.Name}" />
                        <telerik:GridViewDataColumn Header="Dod. bod" Width="85"
                            DataMemberBinding="{Binding DeliveryPoint.Name}" />
                        <telerik:GridViewDataColumn Header="Protistrana" Width="125"
                            DataMemberBinding="{Binding Partner.Name}" />
                        <telerik:GridViewDataColumn Header="Datum od" Width="100"
                            DataMemberBinding="{Binding StartDate}"
                            DataFormatString="{}{0:d}" TextAlignment="Right"/>
                        <telerik:GridViewDataColumn Header="Datum do" Width="100"
                            DataMemberBinding="{Binding EndDate}"
                            DataFormatString="{}{0:d}" TextAlignment="Right"/>
                        <telerik:GridViewDataColumn Header="Datum založení" Width="120"
                            DataMemberBinding="{Binding TradeDate}"
                            DataFormatString="{}{0:d}" TextAlignment="Right" />
                            Header="Cena celkem" Width="165"
                            DataMemberBinding="{Binding TotalPrice}"
                            CellTemplate="{StaticResource TotalPriceWithCurrency}"
                        <telerik:GridViewColumn Width="*" />
                    Source="{Binding Items, ElementName=Grid}"
                    Width="{Binding Path=ActualWidth,
                                    Converter={StaticResource WidthConverter}}"

Thank you very much.
Karel Bem

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 15 May 2014, 02:48 PM
Hi Karel,

I've tried to reproduce the problem you report, but to no avail. I have prepared a sample project based on the code snippet you provided. You can find it attached. Please give it a try and let me know how it works on your side.

Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question