Telerik Forums
UI for WPF Forum
1 answer
107 views

Does the RadReichTextBox support inserting images from the remote server specified directory, opening a window, displaying thumbnails, and selecting multiple pictures?

such as, I have a static resources server ,I want to open a file window with the specified directory(http://192.168.1.103:8089/surveypics/), ,when open it ,shows the thumbnails of pictures, and choose one or more pictures to insert into the RadRichTextBox

how to solve this?

Tanya
Telerik team
 answered on 31 Jul 2018
5 answers
393 views
I am displaying 2 or more BarSeries on a categorical x axis.  If the first series has x values of "A", "D", and "G", and a second series has values of "B" and "C", the categories are displayed on the X axis, from left to right as A D G B C. I understand that the categories from the first axis are added first, then the categories from the second axis, etc.  I want the categories to be sorted alphabetically: A B C D G.

I have tried creating a dummy series that has all possible x (category) values (sorted) and added it first to the chart (the y values are all zero). That does sort the categories, but it is unsatisfactory because my bar series are clustered. This reserves a space in the cluster for the fake 0 valued data point. I have tried to remove my fake series after adding my other series, but that does not work (I assume because it's removed before rendering takes place). I have  also tried to set the visibility of the point to Collapsed for y values of zero, but that did not alter the clustering of the bars.

Any help is appreciated.

Thanks - Mitch
Martin Ivanov
Telerik team
 answered on 31 Jul 2018
3 answers
138 views
Hi, When grouping has been applied, Day And Month Vertical groupheader appears as expected but when Month View is clicked, Vertical Group Header still remains.

Week View:

https://i.imgur.com/5SAPCaf.png

Month View:

https://i.imgur.com/nJakBOH.png

A second thing I also noticed is there are vertical bars that won't disappear, they stay the same place.

https://i.imgur.com/QTNxxBY.png

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jul 2018
6 answers
110 views

Hi,

Have an application to chart many time based series all of which have values of 0 and 1 only (On/OFF). Some series do not change over the period while other change a lot. Hence, using a single Y axis means they overlap and the chart is not readable. So ... the desire is to show a stacked (each offset) series on the one chart, the Y scale is kind of irrelevant as each are On/Off only.

So ... how do I make it clear when a series is at 0 (Off) or 1 (ON). It is hard to tell if a horizontal line is 0 or 1 when stacked. My first thought was to use shading. When at 0 a line would be seen and when at 1 a filled bar would be seen. But it looks no range series will work with a linear X axis.

BTW - I can do this spark lines but I'm unable to see how to do it for ChartView series.

Suggestions?

Martin Ivanov
Telerik team
 answered on 30 Jul 2018
18 answers
336 views
I have a RadTreeView databound as follows:

<telerik:RadTreeView Name="LayerTree" HorizontalAlignment="Stretch" 
     ItemsSource="{Binding Path=LayerTviVMList}" 
                                   ContextMenu="{StaticResource LayerTreeContextMenu}"
                                   IsVirtualizing="True" telerik:TreeViewPanel.VirtualizationMode="Recycling"
                                   telerik:AnimationManager.IsAnimationEnabled="False"
                                   SelectionMode="Multiple" BringIntoViewMode="Header" IsLineEnabled="True" ItemsIndent="15" />

Adding/Removing elements in LayerTviVMList works just fine. 

I have a collection of 5 elements, and when I do LayerTviVMList.Move(4,0) it appears that RadTreeView is throwing an ArgumentOutOfRangeException.

Below is the call stack:

  mscorlib.dll!System.ThrowHelper.ThrowArgumentOutOfRangeException() + 0x49 bytes
  mscorlib.dll!System.Collections.Generic.List<System.Windows.UIElement>.this[int].get(int index) + 0x2b bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.TreeView.TreeViewPanel.RemoveInternalChildRangeOverride(int startIndex, int count) Line 2863 + 0x13 bytes C#
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.TreeView.TreeViewPanel.RemoveChildRange(System.Windows.Controls.Primitives.GeneratorPosition position, int itemCount, int itemUICount) Line 2350 + 0xf bytes C#
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.TreeView.TreeViewPanel.OnItemsMove(System.Windows.Controls.Primitives.ItemsChangedEventArgs args) Line 2328 C#
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.TreeView.TreeViewPanel.OnItemsChanged(object sender, System.Windows.Controls.Primitives.ItemsChangedEventArgs args) Line 1821 C#
  PresentationFramework.dll!System.Windows.Controls.VirtualizingPanel.OnItemsChangedInternal(object sender, System.Windows.Controls.Primitives.ItemsChangedEventArgs args) + 0x36 bytes
  PresentationFramework.dll!System.Windows.Controls.Panel.OnItemsChanged(object sender, System.Windows.Controls.Primitives.ItemsChangedEventArgs args) + 0x28 bytes
  PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.OnItemMoved(object item, int oldIndex, int newIndex) + 0x35d bytes
  PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x11a bytes
  PresentationFramework.dll!System.Windows.Controls.ItemContainerGenerator.System.Windows.IWeakEventListener.ReceiveWeakEvent(System.Type managerType, object sender, System.EventArgs e) + 0x5d bytes
  WindowsBase.dll!System.Windows.WeakEventManager.DeliverEventToList(object sender, System.EventArgs args, System.Windows.WeakEventManager.ListenerList list) + 0x5e bytes
  WindowsBase.dll!System.Windows.WeakEventManager.DeliverEvent(object sender, System.EventArgs args) + 0xd7 bytes
  WindowsBase.dll!System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0xa bytes
  PresentationFramework.dll!System.Windows.Data.CollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x29 bytes
  PresentationFramework.dll!System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(System.Type managerType, object sender, System.EventArgs e) + 0xe0 bytes
  WindowsBase.dll!System.Windows.WeakEventManager.DeliverEventToList(object sender, System.EventArgs args, System.Windows.WeakEventManager.ListenerList list) + 0x5e bytes
  WindowsBase.dll!System.Windows.WeakEventManager.DeliverEvent(object sender, System.EventArgs args) + 0xd7 bytes
  WindowsBase.dll!System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0xa bytes
  PresentationFramework.dll!System.Windows.Data.CollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x29 bytes
  PresentationFramework.dll!System.Windows.Data.ListCollectionView.ProcessCollectionChangedWithAdjustedIndex(System.Collections.Specialized.NotifyCollectionChangedEventArgs args, int adjustedOldIndex, int adjustedNewIndex) + 0x202 bytes
  PresentationFramework.dll!System.Windows.Data.ListCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x132 bytes
  PresentationFramework.dll!System.Windows.Data.CollectionView.OnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x5d bytes
  System.dll!System.Collections.ObjectModel.ReadOnlyObservableCollection<System.__Canon>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args) + 0x19 bytes
  System.dll!System.Collections.ObjectModel.ReadOnlyObservableCollection<System.__Canon>.HandleCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0xe bytes
  System.dll!System.Collections.ObjectModel.ObservableCollection<Overwatch.ELT.AppCommon.Explorer.LayerTviVM>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x52 bytes
  System.dll!System.Collections.ObjectModel.ObservableCollection<System.__Canon>.MoveItem(int oldIndex, int newIndex) + 0x87 bytes
  System.dll!System.Collections.ObjectModel.ObservableCollection<System.__Canon>.Move(int oldIndex, int newIndex) + 0xe bytes

Martin Ivanov
Telerik team
 answered on 30 Jul 2018
2 answers
242 views

How can I hide the title bar of a floating Telerik pane in WPF? I tried setting the PaneHeaderVisibility property but that only had an effect when the pane was docked. Here's the XAML:

<telerik:RadSplitContainer x:Name="Splitter" InitialPosition="FloatingDockable" telerik:RadDocking.IsAutoGenerated="True">

     <telerik:RadPaneGroup telerik:RadDocking.IsAutoGenerated="True" >

<controls:MyPane x:Name="MyPane" Header="Results" IsTabStop="False" CanUserClose="False" PaneHeaderVisibility="Hidden"> <Grid Name="MyGrid"> <controls:Legend Name="Legend"></controls:Legend> </Grid> </controls:MyPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer>

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jul 2018
8 answers
1.4K+ views
Hello,

I have a RadGridVIew in which I use the color of rows to indicate a certain property of the row data (e.g. order, invoice, delivery slip etc.).
When the user selects a row the row will be yellow.
My question is how can I change this, the user wants to see the color of the row and a blue border to indicate which row is selected.
I looked at different threads but didnt find any solution.

The style that I use for the GridViewRow is shown below:

<telerik:RadGridView.Resources>
    <Style TargetType="{x:Type telerik:GridViewRow}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=DocumentType.DocumentTypeID}" Value="1">
                <Setter Property="Background" Value="#FFEBEB1B" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=DocumentType.DocumentTypeID}" Value="3">
                <Setter Property="Background" Value="LightGreen" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=DocumentType.DocumentTypeID}" Value="9">
                <Setter Property="Background" Value="Cyan" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=DocumentType.DocumentTypeID}" Value="10">
                <Setter Property="Background" Value="LightBlue" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=DocumentType.DocumentTypeID}" Value="4">
                <Setter Property="Background" Value="Gray" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=IsDocumentGeannuleerd}" Value="True">
                <Setter Property="Background" Value="IndianRed" />
            </DataTrigger>
 
            <!-- THE CODE BELOW IS NOT WORKING -->
 
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Background" Value="Transparent"/>
            </Trigger>
        </Style.Triggers>
    </Style>
</telerik:RadGridView.Resources>


Any help would be greatly appreciated.

Kind Regards,

Marcel
Stefan
Telerik team
 answered on 27 Jul 2018
9 answers
300 views

I have a requirement to handle a large number of records in a grid. So my radgrid is set to deferred scrolling and is lazy loading the records using VirtualQueryableCollectionView. That works really well.

My problem is in the scroll position indicator. I can't bind it to a property in the record because they are not loaded yet. Setting scroll mode to real time is not an option. What would be best solution here?
Vinay
Top achievements
Rank 1
 answered on 27 Jul 2018
1 answer
229 views

Is it possible? If so, can someone show me how?

Thanks ... Ed

 

Martin Ivanov
Telerik team
 answered on 27 Jul 2018
1 answer
103 views

Hello.

Sorry I didn't follow your indication to open a new ticket.

There it is.

Here is my problem: 

1) I create a recurrent appointment (i.e.:  every week day at some time).

2) I make an exception (i.e.: I move one occurrence on the week to one our later)

3) I persist the data

4) When I reload from DB, both the occurrence and the exception are shown.

I attached one pic (recurrence.png) showing this.

I managed to create a project where I show how I save and recover the appointment and the exception. The example shows exactly how I do it, except for the persistence layer) (see SchedulerTest.png, which is a zip file in fact)

To make clear my point, I took a screen shot of the sample project showing what I want to fix (scheduletest.png).

There is something I am missing, but can't figure out what.

Thanks.

 

 

Richard
Top achievements
Rank 1
Iron
 answered on 27 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?