Telerik Forums
UI for WPF Forum
1 answer
81 views

Hi,

On Release R1.2017 you said that the search panel was added on Treelist for Green and Office2016 themes.

Search panel is present in the template for Green and Office2016 themes.

 

I couldn't find it on OfficeBlack theme. Is it not implemented yet?

 

Thank you

Dilyan Traykov
Telerik team
 answered on 23 May 2017
18 answers
337 views
Hi there,

Since the (very) recent release of Office 2013, will Telerik be rolling out an Office 2013 theme for WPF Controls?

What would be the timeline?

Thanks in advance.

Pieter
Ibrahim
Top achievements
Rank 1
 answered on 22 May 2017
4 answers
311 views

Hi all,

     I am a new in WPF. And, I haven't found the answer after searching the forum.

How can I find the child windows because only get WpfApplication.MainWindow and WpfApplication.Windows.Count=1 sometimes?

Then, I try to call  some refresh  or update functions as follows

wpfApplication.MainWindow.VisualTree.Refresh();

wpfApplication.MainWindow.VisualTree.Root.Refresh();

wpfApplication.MainWindow.UpdateInterHostLinks();                

wpfApplication.MainWindow.ContentWindow.RefreshChildren();              

wpfApplication.MainWindow.RefreshVisualTrees();              

wpfApplication.MainWindow.ContentWindow.Update();            

wpfApplication.MainWindow.Find.RefreshRoot();

However, it doesn't work. How can I get the child window every time? Many thanks
yu
Top achievements
Rank 1
 answered on 22 May 2017
2 answers
87 views

Hi There,

I have problem with Auto sorting and filtering.

The situation is,

When I copy and paste the data to grid. 

the data is automatically sorted (or filtered) with other data that was already sorting or filtering.

I'd like the grid does not sort (or filter) the data that was copied and pasted.

 

do you have any solutions?

Please answer it.

 

Thank you!

Martin Ivanov
Telerik team
 answered on 22 May 2017
1 answer
143 views

Hi,

I notice that on grid with ColumnSelctionButton the loading background is not expaded at 100%, as shown on the attachment, and the external area is active.

There is a way to expand the loading at 100%

 

Thank you

Dilyan Traykov
Telerik team
 answered on 22 May 2017
2 answers
240 views

Hello,

I try to customize Label for Cartesian grid line annotation.
In the context of ChartAnnotationsProvider the ChartAnnotationLabelDefinition  seams ignored...

For instance, neither the label is red, neither the offsets are applied.

<telerik:RadCartesianChart  x:Name="Chart">
             <telerik:RadCartesianChart.HorizontalAxis>
               <telerik:LinearAxis  Minimum="{Binding MinX}" Maximum="{Binding MaxX}" TickOrigin="0" x:Name="HorizAxis"/>
           </telerik:RadCartesianChart.HorizontalAxis>
           <telerik:RadCartesianChart.VerticalAxis >
               <telerik:LinearAxis Minimum="{Binding MinY}" Maximum="{Binding MaxY}" LabelFormat="n1" />
           </telerik:RadCartesianChart.VerticalAxis>
                           <telerik:RadCartesianChart.Series>
               <!-- ... -->
           </telerik:RadCartesianChart.Series>
           <telerik:RadCartesianChart.AnnotationsProvider>
               <telerik:ChartAnnotationsProvider Source="{Binding ListeAnnotations}">
                   <telerik:ChartAnnotationDescriptor>
                       <telerik:ChartAnnotationDescriptor.Style>
                           <Style TargetType="telerik:CartesianGridLineAnnotation" BasedOn="{StaticResource CartesianGridLineAnnotationStyle}">
                               <Setter Property="Axis" Value="{Binding ElementName=HorizAxis}" />
                               <Setter Property="Value" Value="{Binding Item1}" />
                               <Setter Property="Label" Value="{Binding Item2}" />
                               <Setter Property="LabelDefinition">
                                   <Setter.Value>
                                       <telerik:ChartAnnotationLabelDefinition Location="Inside" VerticalAlignment="Top" HorizontalOffset="-50"  VerticalOffset="-150">
                                           <telerik:ChartAnnotationLabelDefinition.DefaultVisualStyle>
                                               <Style TargetType="TextBlock" BasedOn="{StaticResource TextBoxStyle}">
                                                   <Setter Property="Foreground" Value="Red"></Setter>
                                               </Style>
                                           </telerik:ChartAnnotationLabelDefinition.DefaultVisualStyle>
                                       </telerik:ChartAnnotationLabelDefinition>
                                   </Setter.Value>
                               </Setter>
                               <Setter Property="StrokeThickness" Value="0.3"/>
                               <Setter Property="DashArray" Value="24 8"/>
                               <Setter Property="Stroke" Value="Green"/>
                           </Style>
                       </telerik:ChartAnnotationDescriptor.Style>
                   </telerik:ChartAnnotationDescriptor>
               </telerik:ChartAnnotationsProvider>
 
           </telerik:RadCartesianChart.AnnotationsProvider>
 
       </telerik:RadCartesianChart>
Dinko | Tech Support Engineer
Telerik team
 answered on 22 May 2017
11 answers
263 views

Te application I'm developing needs to dynamically create RadMap controls, and then dispose them after they are no longer required. The map typically has several layers (both InformationLayer and VisualizationLayer types). The ItemsSource property of each layer is typically bound to an observable collection. Some background threads are responsible for getting data and adding to the appropriate layer's observable collection (invoking onto the dispatcher thread if required). This approach all works well most of the time but occasionally when the RadMap is disposed we get an exception which crashes the application:

Telerik.Windows.Controls.DataVisualization : System.NullReferenceException
Object reference not set to an instance of an object.

   at Telerik.Windows.Controls.Map.MapShapeData.SetLogicalWidth(Int32 zoomLevel)
   at Telerik.Windows.Controls.Map.MapShapeData.CalculateScreenGeometry(Int32 zoomLevel, Boolean raisePropertyChanged)
   at Telerik.Windows.Controls.Map.ShapeCoordinatesProcessor.StartProcessing(Object paramObject)
   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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

The stack trace shows that it's happening on a background thread (i.e. not the thread I'm calling dispose on) and does not reference any of my code. Unfortunately I've not yet been able to replicate this in a simpler application but I'm hoping you may be able to suggest what I am doing wrong - is there a particular approach I need to take when disposing the map? I've tried various things, including stopping my background processing threads before disposal but so far I've not been able to fix the problem. The fact that the problem happens intermittently might suggest that there is a timing issue.

Can you suggest anything I should try?

Thanks
Pete

Peter
Top achievements
Rank 1
Veteran
 answered on 22 May 2017
3 answers
298 views

Hello community and Telerik support,

Are there any known changes for RadButton by .NET 4.7 ?

Microsoft changelog reported enhanced touch support of WPF.

And in one of my WPF apps there's a bug now with ListBox.SelectionChanged in RadDropDownButton.DropDownContent ... :-(

Any ideas anywhere?

Cheers & thanks in advance!

Hagen

Martin Ivanov
Telerik team
 answered on 22 May 2017
2 answers
110 views

Dear Amin

I just used RadDocking control as tabbed style to display different files for viewing on-line, but I have to use a Axinterop component as viewing engine that should be integrated with WindowsFormHost. If RadDocumentPane worked as tabbed document style, everything work well, but once I dragged RadDocumentPane to be Floating(just like MakeFloatingDockable command execution), the content  in RadDocumentPane will disappear. If I changed RadDocumentPane to be Tabbed Document or drag it into a RadPaneGroup, it will be OK and the content will appear again.

I know that once we set RadDocumentPane to be floating dockable, RadDocumentPane will be changed to be ToolWindow, and ToolWindow will add a new SplitContainer and RadPaneGroup as Content, regard original RadDocumentPane will be one item of RadPaneGroup.

the details are as follows:

Code-Behind:

        private RadDocumentPane NewViewPane()//Create a New RadDocumentPane
        {
            RadDocumentPane lCtrlViewPane = new RadDocumentPane();
            lCtrlViewPane.SetBinding(RadDocumentPane.CanDockInDocumentHostProperty, new Binding() { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Path = new PropertyPath("CanDockInDocumentHost", new object[0]) });
            lCtrlViewPane.SetBinding(RadDocumentPane.CanUserCloseProperty, new Binding() { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Path = new PropertyPath("CanUserClose", new object[0]) });
            lCtrlViewPane.SetBinding(RadDocumentPane.CanFloatProperty, new Binding() { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Path = new PropertyPath("CanFloat", new object[0]) });
            lCtrlViewPane.SetBinding(RadDocumentPane.CanUserPinProperty, new Binding() { UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Path = new PropertyPath("CanUserPin", new object[0]) });
            lCtrlViewPane.HeaderTemplate = SPHONavigateGeneralUtilities.SetTitleTemplate(this.Image);//SetHeader and Title Template as Picture and TextBlock
            lCtrlViewPane.TitleTemplate = SPHONavigateGeneralUtilities.SetTitleTemplate(this.Image);
            lCtrlViewPane.Content = this.SetContent();//Set RadDocumentPane Content , WindowsFormsHost
            lCtrlViewPane.DataContext = this;//Set RadDocumentPane DataContext with ViewModel
            return lCtrlViewPane;
        }

       private object SetContent()
        {
            WindowsFormsHost lCtrlFormHost = new WindowsFormsHost();
            this._2DControl = new SPHO2DCtrl();
            lCtrlFormHost.Child = this._2DControl;
            return lCtrlFormHost;
        }

     public static DataTemplate SetTitleTemplate(string pstrImage)
        {
           
DataTemplate lobjDataTemplate = new DataTemplate();
            FrameworkElementFactory lobjFactory = new FrameworkElementFactory(typeof(StackPanel));
            lobjFactory.SetValue(StackPanel.OrientationProperty, Orientation.Horizontal);
            lobjFactory.SetValue(StackPanel.VerticalAlignmentProperty, VerticalAlignment.Center);
            lobjFactory.SetValue(StackPanel.HorizontalAlignmentProperty, HorizontalAlignment.Stretch);

            FrameworkElementFactory lobjFactoryImage = new FrameworkElementFactory(typeof(XamlImage));
            lobjFactoryImage.SetValue(XamlImage.WidthProperty, 24.0);
            lobjFactoryImage.SetValue(XamlImage.HeightProperty, 24.0);
            lobjFactoryImage.SetValue(XamlImage.HorizontalAlignmentProperty, HorizontalAlignment.Left);
            lobjFactoryImage.SetValue(XamlImage.VerticalAlignmentProperty, VerticalAlignment.Center);
            lobjFactoryImage.SetValue(XamlImage.MarginProperty, new Thickness(5));
            lobjFactoryImage.SetResourceReference(XamlImage.TemplateProperty, pstrImage);
            lobjFactory.AppendChild(lobjFactoryImage);

            FrameworkElementFactory lobjFacotryTextBlock = new FrameworkElementFactory(typeof(TextBlock));
            lobjFacotryTextBlock.SetValue(TextBlock.HorizontalAlignmentProperty, HorizontalAlignment.Center);
            lobjFacotryTextBlock.SetValue(TextBlock.VerticalAlignmentProperty, VerticalAlignment.Center);
            lobjFacotryTextBlock.SetValue(TextBlock.MarginProperty, new Thickness(5));
            lobjFacotryTextBlock.SetBinding(TextBlock.TextProperty, new Binding("Title"));
            lobjFacotryTextBlock.SetResourceReference(Styling.FontStyleProperty, "TextStyle_Label1");
            lobjFactory.AppendChild(lobjFacotryTextBlock);

            lobjDataTemplate.VisualTree = lobjFactory;

            return lobjDataTemplate;
        }

//add new RadDocumentPane into a RadPaneGroup

 this.CTRL_DISPLAYAREA.AddItem(lCtrlViewerAndModel.Pane, Telerik.Windows.Controls.Docking.DockPosition.Center);

public RadPaneGroup CTRL_DISPLAYAREA { get; set; }

 

XAML:

 <telerik:RadDocking BorderThickness="0" Padding="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>

                         <telerik:RadPaneGroup x:Name="PNL_DISPLAYAREA" BorderThickness="0">

                                        <telerik:RadDocumentPane HeaderTemplate="{StaticResource Panel_3DModelViewControl}" Title="{ui:SPEResources Id=SPHO_NAVIGATE_3DWINDOWS}" BorderThickness="0" CanUserClose="False" AllowDrop="False">

                                                  <Border SnapsToDevicePixels="True" Margin="3"  BorderBrush="Gray" BorderThickness="1" CornerRadius="5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                                        <wfi:WindowsFormsHost x:Name="WIND_3DHOST">
                                            <localControl:SPHO3DCtrl ItemClick="SPHO3DCtrl_ItemClick" />
                                        </wfi:WindowsFormsHost>
                                    </Border>

                             </telerik:RadDocumentPane>

                         </telerik:RadPaneGroup>

                </telerik:RadSplitContainer>

       </telerik:RadDocking.DocumentHost>

 </telerik:RadDocking>

 

Any suggestion do appreciate

Ning
Top achievements
Rank 1
 answered on 22 May 2017
1 answer
51 views

Selected Combo box item not getting drawn properly RadGridView. In a GridView table, selecting a combo box item (which is not in screen context, probably hidden because of horizontal scroll bar) in one of the rows which is probably in the 10th column or beyond (just to ensure the combo box is at the far end of the grid) and then doing a Window restore and Window Maximize causes the selected combo item to be disappearing. Though it reappears on selecting again, it disappears again on losing focus. Probably there is a issue in redrawing the RadGridView when a combobox in a column is selected and is in out of visibility.

If the combo item is within the screen context, this issue doesn't occur.

Has anyone faced this issue and do you have any workaround?

Martin
Telerik team
 answered on 19 May 2017
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?