Hello,
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:
Thank you very much.
Karel Bem
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:
<
UserControl
x:Class
=
"GTrade.App.Views.TradeTickets.TradeTicketSearchView"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:cal
=
"http://www.caliburnproject.org"
xmlns:convertors
=
"clr-namespace:GTrade.App.Helpers.Convertors"
Background
=
"Transparent"
Language
=
"cs-CZ"
mc:Ignorable
=
"d"
d:DesignHeight
=
"200"
d:DesignWidth
=
"800"
>
<
UserControl.Resources
>
<
convertors:WidthConverter
x:Key
=
"WidthConverter"
/>
<
DataTemplate
x:Key
=
"TotalPriceWithCurrency"
>
<
TextBlock
Text
=
"{Binding TotalPriceWithCurrency}"
HorizontalAlignment
=
"Right"
/>
</
DataTemplate
>
</
UserControl.Resources
>
<
telerik:RadBusyIndicator
IsBusy
=
"{Binding Busy.IsBusy}"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
Grid.Row
=
"0"
x:Name
=
"Grid"
ItemsSource
=
"{Binding Items}"
SelectedItem
=
"{Binding CurrentItem}"
RowIndicatorVisibility
=
"Collapsed"
IsReadOnly
=
"True"
AutoGenerateColumns
=
"False"
CanUserReorderColumns
=
"True"
CanUserFreezeColumns
=
"False"
ShowGroupPanel
=
"False"
HorizontalAlignment
=
"Left"
MaxHeight
=
"500"
cal:Message.Attach
=
"[Event RowActivated] = [Action ChangeSelectedItem(Grid.SelectedItem)]"
>
<
telerik:RadGridView.Columns
>
<
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"
/>
<
telerik:GridViewDataColumn
Header
=
"Cena celkem"
Width
=
"165"
DataFormatString
=
""
DataMemberBinding
=
"{Binding TotalPrice}"
CellTemplate
=
"{StaticResource TotalPriceWithCurrency}"
/>
<
telerik:GridViewColumn
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
telerik:RadDataPager
x:Name
=
"DataPager"
Grid.Row
=
"1"
PageSize
=
"50"
Source
=
"{Binding Items, ElementName=Grid}"
IsTotalItemCountFixed
=
"False"
DisplayMode
=
"All"
AutoEllipsisMode
=
"None"
NumericButtonCount
=
"10"
Width="{Binding
Path
=
ActualWidth
,
ElementName
=
Grid
,
Converter={StaticResource WidthConverter}}"
HorizontalAlignment
=
"Center"
LostKeyboardFocus
=
"DataPager_OnLostKeyboardFocus"
/>
</
Grid
>
</
telerik:RadBusyIndicator
>
</
UserControl
>
Thank you very much.
Karel Bem