Telerik Forums
UI for WPF Forum
3 answers
102 views
Hi,

I'm using Telerik version 2015.1.225.40 and I have a question regarding a rendering speed issue. In my ScheduleView, I display from monday to friday, from 8h00AM to 9h00PM with a MinorTickLength of 15 min. I receive multiple appointments from a database. For each appointment I receive, I have to display it in the ScheduleView and each appointment contain a UserControl. After that, I have to fill the rest of the grid with SpecialSlots and each Special Slot contain also a UserControl. All UserControls for the appointments and the SpecialSlots contain a border and when a user click on a cell, I need to change the color of the border and I need an interaction with the UserControl.

To fill all the grid, the rendering take between 500ms and 700ms each time and I would like to know if it's possible to reduce the rendering time?!?

Thank's
Alain
George
Telerik team
 answered on 24 Mar 2015
1 answer
113 views
Hi,

I want to implement something like TileView that has multiple maximized items.
The ways we get multiple maximized are:
1. Dragging minimized item to maximized items area.
2. Clicking on the "All" button that shows all the items in the maximized area, with eqaul space for every item.
(Concept attached)

I'd like to mention that the minimzed items list (which will be located at the bottom) shouldn't remove the dragged and dropped item.
Any item from the maximized area should be removed by 'X' button (and will stay at the minimized items list at the buttom).

I tried to define RadTileView as the content template in order to enable the re-ordering by dragging behavior, and because it's already handling the equal space allocation for the items.


<Grid>
        <Grid.Resources>
            <Style TargetType="telerik:RadTileViewItem">
                <Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />
            </Style>
        </Grid.Resources>
 
        <telerik:RadTileView x:Name="tileView1" BorderBrush="#6BC6FF" BorderThickness="2" Margin="10"  MinimizedItemsPosition="Bottom" MaximizeMode="ZeroOrOne">
            <i:Interaction.Behaviors>
                <behaviors:TileViewItemDropBehavior/>
                <behaviors:TileViewItemDragBehavior/>
            </i:Interaction.Behaviors>
            <telerik:RadTileView.ContentTemplate>
                <DataTemplate>
                    <telerik:RadTileView BorderBrush="#6BC6FF" BorderThickness="2" Margin="10">
                        <i:Interaction.Behaviors>
                            <behaviors:TileViewItemDropBehavior/>
                            <behaviors:TileViewItemDragBehavior/>
                        </i:Interaction.Behaviors>
                    </telerik:RadTileView>
                </DataTemplate>
            </telerik:RadTileView.ContentTemplate>
             
        </telerik:RadTileView>
        </Grid>



Is there an out-of-the-box solution for my needs?
Am I in the right way, or what I'm tryind to do is overkill (TileGridView as ContentTemplate)?
Maybe I should do something like that: Define one and only fixed maximixed item that it's ContentTemplate will be RadTileView (or maybe RadDocking) and override its header style to be empty (we will set the Template property with empty ControlTemplate)? 


Thanks for your support!
Pavel R. Pavlov
Telerik team
 answered on 24 Mar 2015
1 answer
74 views
Our application involves the DragAndDrop of items from a Grid (inside a RadOutlookBar) into a RadTreeView. DragAndDrop is also allowed within the RadTreeView. However a certain set of code is executed only when the item is dragged from the Grid and not within the RadTreeView and the only way we can figure out when to execute said code is to find out where the drag is performed from (drag source). Such is the code structure and can't be tweaked much. I was wondering if there was a way to figure the drag source. 
TIA,
Deepika
Pavel R. Pavlov
Telerik team
 answered on 24 Mar 2015
3 answers
70 views
Hi ! 
I am implementing  gridview cell merge with UI For WPF Q1 2014 SP1 in WPF Application.
 
 but  there is no cell merge function in UI For WPF Q1 2014 SP1 version.
 ( there is cell merge function in UI For WPF Q3 2014)
 
 Unfortunately, our telerik product license was expired at last year(2014) in May
 
 Please, What is the solution of  this problem ?
 Could you give me references of gridview cell merge function?
 
I will be waiting your hopeful answer.
Thank you very much.
JUNGGON
Top achievements
Rank 1
 answered on 24 Mar 2015
4 answers
616 views
Hello,

I am using a ToolTip Template to show some information related to the items in a Timeline control.

I'd like to increase the amount of time that a tooltip remains visible, I am using the property ToolTipService.ShowDuration but when I change its value it seems it doesn't have effect on the time that the tooltip remains visible.

Is there a way achieve this?

Thanks,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 23 Mar 2015
8 answers
168 views
Hi,

I have an application that is full screen (it covers the taskbar) with a RadDocking as main layout. When I maximize a floating pane, it doesn't fill the screen, there is a gap that would have been filled by the taskbar.

I reproduced it with the demo project :
- Set WindowStyle="None" in Shell.xaml
- Go to the RadDocking demo
- Maximize a floating pane

Is there a way to prevent that behavior ?

Thank you!

Etienne
George
Telerik team
 answered on 23 Mar 2015
9 answers
563 views
Hello,
I need to set spreadsheet control or cell to read only .
Is it possible to protect sheet or cell editor for some cell or in a whole spreadsheet?

Thanks
Anna
Telerik team
 answered on 23 Mar 2015
1 answer
164 views
I have gridView with checkbox column(IsActive) that binded to bool property(IsDeleted) and converter that show the inverted value  . When I try to show all active items ,it show inactive items and opposite .
When I check (IsActive=true)  ,  FilterDescriptors show (IsDeleted=true) and that is wrong it should be inverted
When I uncheck (IsActive=false)  ,  FilterDescriptors show (IsDeleted=false) and that is wrong it should be inverted too

So how can I handle it !?



Regards,
Mohammed Thabet
Dimitrina
Telerik team
 answered on 23 Mar 2015
1 answer
378 views
Hi,

in my project I have a ChartView with up to 5 different LineSeries (loaded dynamically). Now I would like to change the stroke of each LineSeries with the RadColorPicker. Also the LegendItemColor and the AxisColor should change accordingly. Is there a built-in solution for this?

If not can you give me a little hint which would be the best way to implement this functionality.

Thank you very much
KA
Petar Marchev
Telerik team
 answered on 23 Mar 2015
1 answer
99 views
I've added a simply line of Databar control, but when I run the application, an exception id fired:

https://www.dropbox.com/s/8ptw82rm7ui0wth/Screenshot%202015-03-21%2021.28.39.png?dl=0

that the code of xaml:
<Window x:Class="HierarchicalGroupingAndFilteringWithTreeView.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:HierarchicalGroupingAndFilteringWithTreeView"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MainWindow" WindowState="Maximized">
    <Window.DataContext>
        <local:ViewModel />
    </Window.DataContext>
    <Window.Resources>
        <Style TargetType="telerik:RadTreeViewItem">
            <Setter Property="IsExpanded" Value="True" />
            <Setter Property="Margin" Value="0 2 0 2" />
        </Style>
        <DataTemplate x:Key="Team">
            <Grid>

                <TextBlock Text="{Binding Name}" />
            </Grid>
        </DataTemplate>
        <HierarchicalDataTemplate x:Key="Division" ItemTemplate="{StaticResource Team}" ItemsSource="{Binding Teams}">
            <TextBlock Text="{Binding Name}" />
        </HierarchicalDataTemplate>
        <telerik:GroupHeaderTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector">
            <telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
                <DataTemplate>
                    <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/>
                </DataTemplate>
            </telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
            <telerik:GroupHeaderTemplateSelector.VerticalTemplate>
                <DataTemplate>
                    <ContentPresenter Content="" Height="16" VerticalAlignment="Top" />
                </DataTemplate>
            </telerik:GroupHeaderTemplateSelector.VerticalTemplate>
        </telerik:GroupHeaderTemplateSelector>
    </Window.Resources>

    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <telerik:RadDataBar Width="200" Height="30" VerticalAlignment="Top"></telerik:RadDataBar>

        <telerik:RadTreeView Grid.Row="1" ItemsSource="{Binding TreeViewItems}" ItemTemplate="{StaticResource Division}" Margin="-5,78,5,22">
            <telerik:EventToCommandBehavior.EventBindings>
                <telerik:EventBinding EventName="Expanded" Command="{Binding ExpandedCommand}" PassEventArgsToCommand="True" />
                <telerik:EventBinding EventName="Collapsed" Command="{Binding CollapsedCommand}"  PassEventArgsToCommand="True"/>
            </telerik:EventToCommandBehavior.EventBindings>
        </telerik:RadTreeView>
        <telerik:RadScheduleView Grid.Column="1" Grid.Row="1" 
                                 AppointmentsSource="{Binding Appointments}" 
                                 ResourceTypesSource="{Binding ResourceTypes}"
                                 GroupHeaderContentTemplateSelector="{StaticResource CustomGroupHeaderContentTemplateSelector}">
            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:TimelineViewDefinition GroupFilter="{Binding GroupFilter}"
                                                MinorTickLength="30min" MajorTickLength="30min"  DayStartTime="7:30:00" DayEndTime="17:30:00" VisibleDays="1"  SmallChangeInterval="3d"/>
                <telerik:DayViewDefinition MinorTickLength="30min" MajorTickLength="30min"/>

            </telerik:RadScheduleView.ViewDefinitions>
            <telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <telerik:ResourceGroupDescription ResourceType="Common" />
                </telerik:GroupDescriptionCollection>
            </telerik:RadScheduleView.GroupDescriptionsSource>
            <telerik:RadScheduleView.DragDropBehavior>
                <local:ConflictCheckingDragDropBehavior  />
            </telerik:RadScheduleView.DragDropBehavior>
        </telerik:RadScheduleView>
    </Grid>

</Window>


Petar Marchev
Telerik team
 answered on 23 Mar 2015
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?