Telerik Forums
UI for WPF Forum
1 answer
156 views

I have a ScheduleView component inside a RadPane that is docked to Top as you can see in the Image1, I have 10 visible days with 3 groups, due to the size of the RadPane I can only see 3 days which is correct. Now, when I make the panel floating I would like to see the whole 10 days without having to scroll.

Is it possible automatically resize the visible days to fit in the available space?

This is the definition of my ScheduleView control:

<scheduleView:RadScheduleView x:Name="scheduleViewOrders" Grid.RowSpan="2" BorderThickness="0 1 1 1" MinAppointmentHeight="20" FirstVisibleTime="00:00" GroupHeaderContentTemplateSelector="{StaticResource CustomGroupHeaderContentTemplateSelector}" AppointmentItemContentTemplate="{ StaticResource AppointmentTemplate}" ResourceTypesSource="{StaticResource ResourcesTypes}" PreviewMouseWheel="ScheduleViewOrders_PreviewMouseWheel" xmlns:local="clr-namespace:ProductionScheduler.ViewModel.Production" HorizontalScrollBarVisibility="Visible" >
                                    <scheduleView:RadScheduleView.ActiveViewDefinition>
                                        <scheduleView:DayViewDefinition GroupFilter="{Binding GroupFilter}" Orientation="Horizontal" VisibleDays="10" MinorTickLength="1h"
                                                                        MajorTickLength="1h" MinTimeRulerExtent="3000"/>
                                    </scheduleView:RadScheduleView.ActiveViewDefinition>                                   
                                    <scheduleView:RadScheduleView.GroupDescriptionsSource>
                                        <scheduleView:GroupDescriptionCollection>
                                            <scheduleView:DateGroupDescription></scheduleView:DateGroupDescription>
                                            <scheduleView:ResourceGroupDescription ResourceType="Schedule" />
                                        </scheduleView:GroupDescriptionCollection>
                                    </scheduleView:RadScheduleView.GroupDescriptionsSource>                                   
                                </scheduleView:RadScheduleView>

 

And this is the definition of the GroupHeaderContentTemplateSelector:

<localStyles:CustomGroupHeaderContentTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector">
    <localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalTemplate>
        <DataTemplate>
            <ContentPresenter Content="{Binding FormattedName}" Margin="2" Width="80" Height="30" VerticalAlignment="Center"/>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.VerticalTemplate>
        <DataTemplate>
            <telerik:LayoutTransformControl VerticalAlignment="Center">
                <telerik:LayoutTransformControl.LayoutTransform>
                    <RotateTransform Angle="0" />
                </telerik:LayoutTransformControl.LayoutTransform>
                <ContentPresenter Content="{Binding FormattedName}" Margin="5" Width="70"/>
            </telerik:LayoutTransformControl>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.VerticalTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
        <DataTemplate>
            <ContentPresenter Content="{Binding Name.DisplayName}" Margin="2" Width="80" Height="30" VerticalAlignment="Center"/>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
 
    <localStyles:CustomGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
        <DataTemplate>
            <telerik:LayoutTransformControl VerticalAlignment="Center">
                <telerik:LayoutTransformControl.LayoutTransform>
                    <RotateTransform Angle="0" />
                </telerik:LayoutTransformControl.LayoutTransform>
                <ContentPresenter Content="{Binding FormattedName}" Margin="5" Width="60" Height="23" MaxHeight="23" MinHeight="23"/>
            </telerik:LayoutTransformControl>
        </DataTemplate>
    </localStyles:CustomGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
     
</localStyles:CustomGroupHeaderContentTemplateSelector>
Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
1 answer
187 views

Is the webcam control capable of using Onvif compatible net cameras? Onvif is a protocol and hundreds of security cameras support it, see: https://www.onvif.org/ for further details.

Windows 10 2004 also supports it. But before I buy such a camera I wanted to know if the webcam control can use it? https://blogs.windows.com/windowsdeveloper/2019/10/15/announcing-windows-10-support-for-network-cameras/.

More details to connect a camera, here: https://blogs.windows.com/windowsdeveloper/2019/10/10/connecting-network-cameras-to-windows-10-devices/#q0HZLYwmvHbx7F2e.97.

Thanks

Mike

Ivan Petrov
Telerik team
 answered on 10 Aug 2020
1 answer
74 views

Hello,

A colleague of mine handed to me a project he has previously created. He has used Telerik .dll libraries from "Telerik UI controls for WPF". I have installed this extension trial and I would expect these libraries would automatically load in my VS2019. It is not the case unfortunatelly. I have to delete them and manually add them again. I think the problem is with versions of the libraries but there are plenty of them used and it is hard to do it all manually. What am I doing wrong? Thanks a lot

 

Kind regards

Jan

 

 

 

 

Dilyan Traykov
Telerik team
 answered on 10 Aug 2020
3 answers
356 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
373 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
35 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
113 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
150 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
462 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
192 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
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?