I am using a GridView and I have a column with cell merging enabled (IsCellMergingEnabled="True"), also I have a style to set the aligment of the value of the cell:
<Style TargetType="telerik:GridViewMergedCell">
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
I would like to change the background color of the cell based on the value of that cell?
How can I do that?
I was thinking of using a converter but I don't know how can I pass the value of the cell as a parameter.
What are the difference of Binding date to GridView vs DataPager. What are the advantage and disadvantage of the two. What is the best option to improve performance of loading large data to the Grid.
Thank you.
This is my scenario
I have GridView ang DataPager on my Page. I use QueryableCollectionView to get the data and bind it to my DataPager then linked to my GridView.
I have 50000 records. I noticed that when I load the page, It takes few seconds before the page actually displays. The window hangs. Using IsBusy to the GridView doesnt help as it does not show completely (No loading indication)
when I debug the code I noticed that on my ViewModel, this part of the code takes the few seconds to get the data.
Account = new QueryableCollectionView(accounts.OrderBy(o => o.ID));
This returns 10 records only as my DataPager is set to PageSize="10" which is expected. but the loading time take long.
Any Help/Idea to prevent the window from hanging and use the IsBusy property while loading the data on the grid?
Reading the telerik help on this control is not very helpful at all.
I just want a maskedinput control that is the following [0-9]\+[0-5][0-9]
M+SS, so it would display --> _+__
Minutes, can be 0-9
Seconds, 00 to 59
I'm developing against the Microsoft Surface, and need a slider that is easy to adjust just by touching the screen, the default slider (any theme) is pretty narrow and it's area of recognition is a little too small/exact to be touch-friendly, is there an easy way to make a horizontal slider thicker/taller? It works fine for mouse but with just touch the user misses the area of sensitivity on the first try (most of the time) and has to try again. We want to make the slider easier to manipulate.
thanks!
Dear Telerik team,
I would like to know that if it is possible to allow selecting a single item from each group when list box is in group mode.
How do I go about animating multiple series using utils:ChartAnimationUtilities.CartesianAnimation="Rise"? Below is my code, I have tried multiple ways and none work. Thanks.
<telerik:ChartSeriesProvider Source="{Binding Data, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ParameterTraceControl}}}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:CategoricalSeriesDescriptor CategoryPath="ReadTime"
ValuePath="Value"
ItemsSourcePath="Items">
<telerik:CategoricalSeriesDescriptor.Style>
<Style TargetType="telerik:LineSeries" BasedOn="{StaticResource LineSeriesStyle}">
<Setter Property="StrokeThickness" Value="{Binding SelectedStrokeThickness, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" />
<Setter Property="LegendSettings">
<Setter.Value>
<telerik:SeriesLegendSettings Title="{Binding SeriesName}" />
</Setter.Value>
</Setter>
</Style>
</telerik:CategoricalSeriesDescriptor.Style>
</telerik:CategoricalSeriesDescriptor>
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
<
telerik:RadGridView
Margin
=
"10"
CanUserFreezeColumns
=
"False"
MaxHeight
=
"300"
RowIndicatorVisibility
=
"Collapsed"
IsReadOnly
=
"False"
ScrollMode
=
"Deferred"
BeginningEdit
=
"RadGridView_BeginningEdit"
CellEditEnded
=
"RadGridView_CellEditEnded"
ScrollViewer.PanningMode
=
"VerticalFirst"
ScrollViewer.HorizontalScrollBarVisibility
=
"Visible"
ItemsSource
=
"{Binding SelectedCollectionPatient.CollectionTests}"
SelectedItem
=
"{Binding SelectedCollectionTest}"
AutoGenerateColumns
=
"False"
IsFilteringAllowed
=
"False"
ShowGroupPanel
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewComboBoxColumn
ItemsSource="{Binding
Path
=
DataContext
.SelectedCollectionPatient.CurrentStatusList,
RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type Window}}}"
Width
=
"145"
IsReadOnly
=
"False"
DataMemberBinding
=
"{Binding CurrentStatus}"
Header
=
"Collection Status"
UniqueName
=
"CurrentStatus"
>
</
telerik:GridViewComboBoxColumn
>
<
telerik:GridViewDataColumn
Width
=
"*"
IsReadOnly
=
"False"
DataMemberBinding
=
"{Binding CollectionTime, StringFormat='{}{0:hh:mm tt}' }"
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
telerik:RadMaskedDateTimeInput
Margin
=
"0"
telerik:TouchManager.IsTouchHitTestVisible
=
"False"
EmptyContent
=
"No Time Entered"
VerticalContentAlignment
=
"Center"
Height
=
"50"
Width
=
"150"
Mask
=
"hh:mm tt"
Value
=
"{Binding CollectionTime, UpdateSourceTrigger=PropertyChanged}"
>
</
telerik:RadMaskedDateTimeInput
>
<
telerik:RadButton
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type Window}},
Path
=
DataContext
.SetCurrentTimeCommand}"
Width
=
"35"
Margin
=
"0"
>
<
Image
Source
=
"/HomeCollections.UI;component/Images/Icons/time.png"
Width
=
"16"
Stretch
=
"None"
></
Image
>
</
telerik:RadButton
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewComboBoxColumn
ItemsSource
=
"{Binding SelectedCollectionPatient.ReasonList}"
Width
=
"165"
IsReadOnly
=
"False"
DisplayMemberPath
=
"ReasonText"
SelectedValueMemberPath
=
"UncollectedReasonId"
DataMemberBinding
=
"{Binding UncollectedReasonId}"
Header
=
"Uncollected Reason"
>
</
telerik:GridViewComboBoxColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
if (e.Cell.Column.UniqueName == "CurrentStatus")
{
if (e.NewData != e.OldData)
{
}
}
Hello,
When user enter a text in TrackChange mode, text divides by minutes. For example, if user begin write "This is a" at 16:09, and completes write " test for Telerik" at 16:10, Track Change detects it as 2 changes made in 16:09 and 16:10. Is it a feature, or is it a bug? :)
Is it possible to register a change when user completes write a text, at least on FocusLost action. Or may be other solution? I want to view "This is a test for Telerik" as one change, made in 16:10.
Thank you.