Telerik Forums
UI for WPF Forum
5 answers
140 views

hello,

my question is how can I create legend in a form of spectrum (with colors and numbers, same as the attached file).

in the attached file please ignore the chart itself and data presentation, i'm only interested in the legend presentation, its color spectrum and numbers.

can you please show me, in code (wpf+ telerik) or references how to achieve this kind of legend?

thank you so match

Hila
Top achievements
Rank 1
 answered on 17 Jul 2016
1 answer
366 views

Hi,

I'm using richtextbox ,and I want to import pdf file and add waterwark on it ,

Now I already have three butttons , one for importing docx , one for exporting docx and pdf , and the other is for adding watermark on the file . 

Is there any solution for import pdf file ? Or using other controls .

 

English is not my mother tongue, please excuse any errors on my part.

 

Thank you.

 

 

Deyan
Telerik team
 answered on 15 Jul 2016
10 answers
389 views
Hi,

I am using RadGridView in WPF application and binding it to a DataTable view. For my RadGridView I have set AutoGenerateColumns as "True" (to get my columns automatically).
 
Problem: In DataTable object (which I am binding to RadDataGridView) I have one DateTime column. In RadDataGridView it only shows Date calender in the dropdown for picking date, but no time. More over I want to change date format for DateTime column. As AutoGenerateColumns  is true, I don't have any control over the columns. Can anyone please show me how to show RadDateTimePicker in RadGridView column when AutoGenerateColumns is True?

My XAML code for RadGridView  is as below:

<telerik:RadGridView Grid.Row="1" AutoGenerateColumns="True" ItemsSource="{Binding ManualDataTable}" IsReadOnly="False" CanUserDeleteRows="True"  Name="radGridViewManualData" ShowInsertRow="True" />

Any help will be highly appreciated.


Regards,
Moon 
Joel Palmer
Top achievements
Rank 2
 answered on 15 Jul 2016
1 answer
195 views
I am trying to set the row height of the RadGridView element to fill the whole space of the grid instead of showing blank space when the number of rows is less than the height of the grid, the problem is I couldn't find a simple way to do this without many complications and performance issues using different events to set the RowHeight property when the size is changed for the grid. How to achieve this?
Stefan
Telerik team
 answered on 15 Jul 2016
4 answers
280 views

Hi everyone,

 

I'm using the OpenStreetMapProvider for a long time now, but since this monday I have a problem. Instead of the real map tiles see the the pictures you can see in the attached file. I don't understand whats wrong here. I'm not using MapQuest. And Openstreetmap is still free to use.

 

Can someone tell me how to solve this, so I can have my map back?

 

Best Regards

Erich

Petar Mladenov
Telerik team
 answered on 15 Jul 2016
4 answers
136 views

Is there any way to delete a custom list style?

These commands seems not working and will create some null reference exception on next opening of manage styles dialog.

                document.StyleRepository.Remove(listStyle.StyleLink);

                document.ListManager.UnRegisterListStyle(numListStyle);

                document.ListManager.UnRegisterListStyle(listStyle);

Mihail
Telerik team
 answered on 15 Jul 2016
1 answer
83 views
Any pictures in header section is not able to export to pdf. And it's correctly shown in exported word file. Any solution or walk around?
Boby
Telerik team
 answered on 15 Jul 2016
1 answer
144 views
I have problem when make big route for example from Sofia, Bulgaria to Vladivostok, Russia. My code is like your example in 'Demos - Telerik UI for WPF'.
In your example and my program when I add Polyline data in my Visualization Layer
and start move on map or zoom in or zoom out map stopped for few seconds 10 or more the same is in your example. 
 
Petar Mladenov
Telerik team
 answered on 15 Jul 2016
6 answers
197 views
Hello,

I have a RadRibbonGallery bound to a collection of business objects in my view model. When I select an item in the gallery, an action is triggered and after that action, the item in the RibbonGallery should be deselected, so the user can select the same item again.

I tried to implement this by two-way binding the SelectedItem property of the RibbonGallery and in the property setter, set the value to null.

However, selecting works, but setting the SelectedItem to null does not deselect the item.

Is there another way to deselect? I also tried binding to both SelectedItem and SelectedIndex and set the SelectedIndex to -1, but it does also not deselect.

Thanks in advance,

Michael
Martin
Telerik team
 answered on 15 Jul 2016
3 answers
1.5K+ views

I get a {"'{DependencyProperty.UnsetValue}' is not a valid value for property 'Background'."}

exception when I double click on a RadTreeListView , selected Item

Are there enough clues as to what to look for?

Version :2016.2.0503

Stack trace:

   at System.Windows.DependencyObject.GetEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, RequestFlags requests)
   at System.Windows.DependencyObject.GetValueEntry(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, RequestFlags requests)
   at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   at System.Windows.Controls.Border.get_Background()
   at System.Windows.Controls.Border.OnRender(DrawingContext dc)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeVirtualizedCell(GridViewCellBase cell, Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 198
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeVirtualizedCells(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 101
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeOverride(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 260
   at Telerik.Windows.Controls.TreeListView.TreeListCellsPanel.ArrangeOverride(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\TreeListView\TreeListCellsPanel.cs:line 204
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
   at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
   at Telerik.Windows.Controls.GridView.GridViewRowItem.ArrangeOverride(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Rows\GridViewRowItem.cs:line 249
   at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.ArrangeOverride(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.FlatLayoutStrategy.cs:line 874
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ArrangeOverride(Size finalSize) in c:\TB\3391\Sources\Controls\GridView\GridView\GridView\Virtualization\GridViewVirtualizingPanel.cs:line 357

 

The code looks like this:

(MouseDoubleClick below, does not get called)

 <telerik:RadTreeListView
            Grid.Row="1"
            ItemsSource="{Binding Contacts}"
            SelectionMode="Single"
            SelectionUnit="FullRow"
            MouseDoubleClick="Control_OnMouseDoubleClick"
            SelectedItem="{Binding SelectedInvoice, Mode=TwoWay}"
            AutoGenerateColumns="False">


            
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Invoices}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                    Header="Name" />
                
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Number}"
                                    Header="Number" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Date, Converter={businessControls:DateConverter}}"
                                    Header="Due Date" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Total, Converter={converters1:CurrencyConverter}}"
                                    Header="Total" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Balance, Converter={converters1:CurrencyConverter}}"
                                    Header="Balance" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Allocated, Converter={converters1:CurrencyConverter}}"
                                    Header="Allocated" />
            </telerik:RadTreeListView.Columns>



        </telerik:RadTreeListView>


   

Andre
Top achievements
Rank 1
 answered on 15 Jul 2016
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?