I would remove the RadGridView scrollbars, I will use the RadDataPager to display only the amount of items that fit on the screen. But is not working. Any idea how to proceed? Sorry for my bad English.
My Code:
Here I do the calculation:
Thank you!
My Code:
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
x:Name
=
"rGridView"
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadDataPager
PageSize
=
"{Binding LinhasGridView, ElementName= ucCadastroCidade}"
Grid.Row
=
"0"
Source
=
"{Binding Items, ElementName=dtCidade}"
IsTotalItemCountFixed
=
"True"
DisplayMode
=
"FirstLastPreviousNextNumeric, Text"
/>
<
telerik:RadGridView
x:Name
=
"dtCidade"
Grid.Row
=
"1"
AutoGenerateColumns
=
"False"
ItemsSource
=
"{Binding ListaCidade, ElementName= ucCadastroCidade}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Width
=
"*"
Header
=
"Cidade"
DataMemberBinding
=
"{Binding nm_Cidade}"
/>
<
telerik:GridViewDataColumn
Width
=
"*"
Header
=
"Estado"
DataMemberBinding
=
"{Binding UF.nm_Uf}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
Here I do the calculation:
LinhasGridView = (
double
)(rGridView.ActualHeight / dtCidade.RowHeight);
Thank you!