Telerik Forums
UI for WPF Forum
3 answers
362 views
The tool box that hold shapes has 3 shapes listed in a row by default

The tool box also assumes a vertical orientation.

If suppose I need to align the tool box on top of the diagram, how can i do it ?
Milena
Telerik team
 answered on 10 Aug 2020
6 answers
379 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
36 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
120 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
154 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
469 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
199 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
229 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
448 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.4K+ 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?