Telerik Forums
UI for WPF Forum
3 answers
171 views

I have 2 RadTileView in two different tab from a RadTabControl.

The first RadTileView can reorder its items and there is a binding with the position property to reorder the items in the second RadTabControl.

It works well until I select the second tab and show the second RadTileView where the items are ordered like the first one as I want.

But now if I return in the first tab and drag some items, I have some blank spaces that appears and my items are disappearing.

How can I fix this?

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2017
2 answers
165 views

We're dealing with a very old version (2012.2.912.40) of the map control and using the Bing Maps provider. We've just had a couple users run into an ArgumentExpcetion getting thrown when it tries to utilize the IComparer.Compare method inside Telerik.Windows.Controls.Map.FileCacheBase.GetMetadata.

We've gone 5 years without ever encountering it, and then having a couple occurrences worries us. One user repaved their machine and the issue didn't resurface. Search hasn't revealed anything similar, so we were wondering if you've experienced this before and if maybe a newer version fixes the issue so we just need to upgrade.

Appreciate any help,

Travis

 

Here is the stack trace of the exception:

Exception stack traces: (ArgumentException) Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Array+FunctorComparer`1[Telerik.Windows.Controls.Map.MemoryCache+ICacheRecordMetadata]'.
   at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer(Object comparer)
   at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Collections.Generic.List`1.Sort(Comparison`1 comparison)
   at Telerik.Windows.Controls.Map.FileCacheBase.GetMetadata()
   at Telerik.Windows.Controls.Map.FileCacheBase.SaveFilesThread()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Travis
Top achievements
Rank 1
 answered on 06 Jul 2017
5 answers
447 views
Hello,
when i try to load PDFs which comes from a scanner (so the pdfs contains an image), the RadPdfViewer ist very slow.
I have a pdf which is about 1MB full color, it takes about 8 seconds to load/render.

Does anyone else have this problem?

Thank you!
Deyan
Telerik team
 answered on 06 Jul 2017
3 answers
1.4K+ views
Hi telerik

It would appear to me, that the chart is not redrawn 'without series' if I call radChart.SeriesMappings.Clear() ?

It may not makes much sense to you what I'm trying, but my users can change the data used for series. Some selections may result in (handled) exceptions where no seriesMappings are added to the radChart.SeriesMappings - and in this case the previous choice of data is still shown to some confusion for my users?

Anything I can do to reset the chart in this case? Perhaps 'manually'?

(And, yes - I know that I'm in serious violation of the MVVM in snippet below ;-) ).

Thanks,

Anders, Denmark.

 private void UpdateGraphWithViewModel(IGraphViewModel viewModel)
        {
            _loggingService.Log("Drawing graph");

            var numberOfSeries = viewModel.NumberOfSeries;

            // If this is not the first time we are called, the existing must be reset before adding below.
            radChart.SeriesMappings.Clear();
            
            foreach (var selectedVariableY in viewModel.SelectedVariablesY)
            {
                for (var i = 0; i < numberOfSeries; i++)
                {
                    try
                    {
                        var pointMarkAppearanceSettings = new PointMarkAppearanceSettings {Shape = MarkerShape.Diamond};
                        var seriesAppearanceSettings = new SeriesAppearanceSettings
                                                           {
                                                               PointMark = pointMarkAppearanceSettings
                                                           };

                        var interactivitySettings = new InteractivitySettings
                                                        {
                                                            HoverScope = InteractivityScope.Series,
                                                            SelectionScope = InteractivityScope.Series
                                                        };
                        var splineSeriesDefinition = new SplineSeriesDefinition
                                                         {
                                                             Appearance = seriesAppearanceSettings,
                                                             InteractivitySettings = interactivitySettings
                                                         };
                        var seriesMapping = new SeriesMapping
                                                {
                                                    LegendLabel = viewModel.GetLegendHeader(i),
                                                    SeriesDefinition = splineSeriesDefinition,
                                                    ItemsSource = viewModel.GetData(i, selectedVariableY.VariableName)
                                                };

                        seriesMapping.ItemMappings.Add(new ItemMapping("X", DataPointMember.XValue));
                        seriesMapping.ItemMappings.Add(new ItemMapping("Y", DataPointMember.YValue));

                        radChart.SeriesMappings.Add(seriesMapping);
                    }
                    catch (Exception ex)
                    {
                        var message = string.Format("Error trying to produce serie {0}: {1}", i, ex.Message);
                        _loggingService.Log(message);
                    }
                }
            }


            var zoomScrollSettingsX = new ZoomScrollSettings
                                          {
                                              MinZoomRange = 0.1,
                                              RangeEnd = 1,
                                              RangeStart = 0,
                                              ScrollMode = ScrollMode.ScrollAndZoom
                                          };

            var zoomScrollSettingsY = new ZoomScrollSettings
                                          {
                                              MinZoomRange = 0.1,
                                              RangeEnd = 1,
                                              RangeStart = 0,
                                              ScrollMode = ScrollMode.ScrollAndZoom
                                          };
            radChart.DefaultView.ChartArea.ZoomScrollSettingsX = zoomScrollSettingsX;
            radChart.DefaultView.ChartArea.ZoomScrollSettingsY = zoomScrollSettingsY;

            //radChart.DefaultView.ChartTitle.Content = viewModel.ChartTitle;
            radChart.DefaultView.ChartArea.AxisX.Title = viewModel.AxisTitleX;
            radChart.DefaultView.ChartArea.AxisY.Title = viewModel.AxisTitleY;
            _loggingService.Log("Databinding done. " + string.Format("{0:d/M/yyyy HH:mm:ss:ffff}", DateTime.Now));
        }
Dilyan Traykov
Telerik team
 answered on 06 Jul 2017
1 answer
158 views

Hello Team,

 

When i mouse over/focus on RadAutoCompleteBox  control and try scrolling using mouse wheel, i would not be able it..how to overcome the issue

Dilyan Traykov
Telerik team
 answered on 06 Jul 2017
1 answer
322 views

Hi 

 

I want to have a deafult combobox at the end of listbox to add new listitem based on selection of item in combobox.

It is similar to new row feature in radgridview.

Is there any option like that or I can customize listbox template to have such feature?

 

Regards,

Nagasree.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2017
1 answer
276 views

hi, 

I am trying to create a ribbon  menu from a json file. Tabs ands groups are being displayed. But buttons are not. instead, the class names of the buttons are displayed as text and they can not be clicked. what could be the reason ? any example of such system would be appreciated.

so here are my business objects:

01.public class RibbonTab {
02.    public string header { getset; }
03.    public List<RibbonGroup> ribbonGroups { getset; }
04.}
05.  public class RibbonGroup {
06.    public string header { getset; }
07.    public List<RibbonButton> ribbonButtons { getset; }
08.}
09.  public class RibbonButton {
10.  
11.    public string text { getset; }
12.    public string icon { getset; }
13.    public int size { getset; }
14.    public string parentPage { getset; }
15.  
16.    public string ButtonText { get return text; } }
17.    public Telerik.Windows.Controls.RibbonView.ButtonSize ButtonSize
18.    {
19.        get         {
20.            return (Telerik.Windows.Controls.RibbonView.ButtonSize)size;
21.        }
22.    }
23.}

 

here is my view:

<UserControl.Resources>        
<Style TargetType="{x:Type telerik:RadRibbonButton}">            
<Setter Property="Text" Value="{Binding ButtonText}" />        
</Style>        
<Style TargetType="telerik:RadRibbonGroup">            
<Setter Property="Header" Value="{Binding header}" />            
<Setter Property="ItemsSource" Value="{Binding ribbonButtons}" />        
</Style>        
<Style TargetType="telerik:RadRibbonTab">            
<Setter Property="Header" Value="{Binding header}" />            
<Setter Property="ItemsSource" Value="{Binding ribbonGroups}" />        
</Style>    
</UserControl.Resources>    

 

<telerik:RadRibbonView  ItemsSource="{Binding RibbonTabs}" />

Martin Ivanov
Telerik team
 answered on 06 Jul 2017
14 answers
590 views
Hi,

I want to change the height of my RadPanelBarItem's from Height="Auto" to a larger, fix size e.g. Height="40".

Unfortunately it doesn't work, see attached screenshot. What did I wrong?  Here is my code:

<telerik:RadPanelBar Margin="7,7,0,25" HorizontalAlignment="Left" Width="129" Background="#FFEFEFEF" MaxHeight="400">
               <telerik:RadPanelBarItem Header="Network Connections" Height="40" Background="#FFEFEFEF" FontFamily="Segoe UI" FontSize="12">                  
                   <telerik:RadPanelBarItem Header="Delete Items" />
                   <telerik:RadPanelBarItem Header="Inbox" />
                   <telerik:RadPanelBarItem Header="Send Items" />
                   <telerik:RadPanelBarItem Header="OutBox" />
                   <Button Content="Button" Style="{StaticResource LinkButton}" Height="29" Width="82" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Click="button1_Click" />
                   <telerik:RadPanelBarItem Header="Search Folders" />
               </telerik:RadPanelBarItem>
Petar Mladenov
Telerik team
 answered on 06 Jul 2017
3 answers
120 views

 

HI , 

I'am facing a problem that drives me mad.

I play with samples. I build a grid, with no specific options, just following tutorial   I can enter in Edit Mode in a cell  (see green circle in picture) , but then I can not  type anything (see red square in picture) !!

I tried everything, even , I changed keyboard, but nothing is input in the Textbox of any Column. . The boxes stay empty

What can be wrong ? please , that s really annoying

 

Thanks

Dilyan Traykov
Telerik team
 answered on 05 Jul 2017
1 answer
241 views

Is there a way to copy/export the data in a GridView without applying DataFormatString? We have custom formatting on some values and when pasting the values in Excel it's not able to parse them correctly.

I guess that the issue lies in Excel, but a value that is displayed in the RadGridView as "2 250,00" (DataFormatString = "N2", Swedish culture) is parsed as a String when pasted to Excel, and it's impossible to apply any other format until I remove the thousand separator (even when Excel is using a format with a thousand separator).

We're currently copying to the clipboard in Html-format, because some cells contains text with linebreaks, and this seems to be the only way to keep them without breaking the rows.

 

Dilyan Traykov
Telerik team
 answered on 05 Jul 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?