Telerik Forums
UI for WPF Forum
6 answers
359 views

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.

Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
0 answers
34 views

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.

gerardo
Top achievements
Rank 1
Veteran
 asked on 10 Aug 2020
0 answers
110 views

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?

gerardo
Top achievements
Rank 1
Veteran
 asked on 09 Aug 2020
2 answers
133 views

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

John
Top achievements
Rank 1
 answered on 07 Aug 2020
6 answers
435 views

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!

Dilyan Traykov
Telerik team
 answered on 06 Aug 2020
1 answer
178 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Aug 2020
1 answer
211 views

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>

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Aug 2020
4 answers
428 views
Hello,

I'm a noob to WPF. I inherited an MVVM WPF project using Caliburn.Micro.

I have this gridview:
<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>

When the CurrentStatus combo box column is changed, I want to check the status and:
1) update or clear the CollectionTime  (the masked input)
2) update or clear the UncollectedReason column

I'm current trying to do it in the RadGridView_CellEditEnded event... but haven't been able to figure it out.
if (e.Cell.Column.UniqueName == "CurrentStatus")
            {
                if (e.NewData != e.OldData)
                {
}
}


Thanks.

Vladimir Stoyanov
Telerik team
 answered on 04 Aug 2020
12 answers
1.3K+ views
Hi ,



Using RadPdfViewer (Q2 Release) in our project to show PDF documents / Reports for viewing and printing purposes.

There is a requirement to print the PDF file without showing the document and the Print Dialog, could we achieve printing of PDF document through RadPdfViewer control by setting the Visibility to Hidden mode and execute Print Command.

What settings are to be used for Printing silently through RadPdfViewer (without a Print Dialog).



Are there any other functions / Rad Controls to print a PDF document



Regards,

Phani.















Dimitar
Telerik team
 answered on 04 Aug 2020
1 answer
117 views

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.

Dimitar
Telerik team
 answered on 04 Aug 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?