Telerik Forums
UI for WPF Forum
2 answers
115 views

Hi,

our license has expired, and we consider to renew it.

we really liked the new 3D chart view, and I tried to use it with a different new user which I opened and asked for 30 free trial.

I downloaded and installed the telerik UI in a different computer and everything went good.

Then I opned new WPF Telerik Project and tried to use the 3D chart view, but I can't compile it.

I added all the 3 needed references:

Telerik.Windows.Controls.ChartView;
Telerik.Windows.Data;
Telerik.Windows.Controls.Chart;

 

The error is:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorThe tag 'RadCartesianChart3D' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. Line 7 Position 10.TelerikWpfApp1c:\users\Me\documents\visual studio 2015\Projects\TelerikWpfApp1\TelerikWpfApp1\MainWindow.xaml7

 

What can I do in order to test the new chart?

Another problem:

I downloaded the Demo Application, and I want to export the demo code of the 3D ChartView to my VS in order to modify it and test it, but I can't find any way to download/export the code from there.

 

Thanks

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Dec 2016
3 answers
136 views

Basically I try to follow the example :

http://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-integration-radcontextmenu-wpf

 

I use an ItemTemplate not to see the base class used for dynamic item

<telerik:RadContextMenu x:Name="RadContextMenu"
                                        ItemTemplate="{StaticResource MenuItemTemplate}"
                                        ItemClick="OnContextMenuClick">

 

defined like this

HierarchicalDataTemplate x:Key="MenuItemTemplate"
                                  DataType="{x:Type local:ContextMenuItem}"
                                  ItemsSource="{Binding Items}">
            <TextBlock Text="{Binding Text}" />
        </HierarchicalDataTemplate>

 

I have a problem applying the <telerik:RadContextMenu.ItemContainerStyle> : the menu disappears.

In the attached example, I can see the context menu when no style is applied but I can not apply the settings like separator item.

How can I have this example working with Telerik 2016.3.1024.45.NoXaml ?

 

Philippe Laval
Top achievements
Rank 1
 answered on 15 Dec 2016
1 answer
191 views

We are using Telerik UI for WPF and are having some problems with the RadRadioButton when applying themes. The problem is that the style of the theme is not fully applied to the control if the content is custom, and in this case it has a stackpanel with an image and a textblock. Then the textblock won´t get the correct foreground color when selected:

       <telerik:RadRadioButton x:Name="MyRadioButton">
            <StackPanel Orientation="Horizontal">
                <Image Width="16" Height="16" Source="../Images/icon_16x16.png"/>
                <TextBlock>My radiobutton</TextBlock>
            </StackPanel>
        </telerik:RadRadioButton>
        

 

When the RadRadioButton only has a text as content the styling is correct:

 

<telerik:RadRadioButton x:Name="MyRadioButton" Conent="My radiobutton">
</telerik:RadRadioButton>

 

I have tried to use RelativeSource and AncestorType in the binding but it doesn´t seem to work:

ForeGround={Binding RelativeSource={RelativeSource AncestorType=TextBox}, Path=Tag}
Evgenia
Telerik team
 answered on 15 Dec 2016
2 answers
458 views

Hi to all,

I can't canter Header and cell of GridViewCheckBoxColumn...

Is it normal for specific reason?

<telerik:RadTabItem Header="Dettaglio Campi">
    <telerik:RadGridView ItemsSource="{Binding DettaglioCampiEnteCertificante}" Style="{StaticResource DettaglioCampiStyle}">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CampoId}" Header="ID" IsReadOnly="True"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CampoCertificatoReference.Nome}" Header="Nome" IsReadOnly="True"/>
            <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Obbligatorio}" Header="Obbligatorio" TextAlignment="Center" HeaderTextAlignment="Center"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Ordinamento}" Header="Ordinamento" TextAlignment="Center" HeaderTextAlignment="Center"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding SchedeCertificatoMaterialeReference.Count}" Header="Riferimenti" TextAlignment="Right" HeaderTextAlignment="Right"/>
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
</telerik:RadTabItem>
Dario Concilio
Top achievements
Rank 2
 answered on 15 Dec 2016
2 answers
124 views

Hello I'm working with ScheduleView dragging from my ListBox to the ScheduleView I followed the documentation and it works okay.

Now I needed to extend the default class Appointment with my Custom class called CustomVideoAppointment

 public  class CustomVideoAppoiment:Appointment
    {

        public string Name { get; set; }
        public string Path { get; set; }
        public TimeSpan Duration { get; set; }
    
        public bool IsCloud { get; set; }
    }

 

Actually it works just changing the types of my Behavior ScheduleViewCustomDragAndDropBehavior

 public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
        {
            if (Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetDataPresent(data, typeof(VideoInfo), false))
            {
                var videos = Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetData(data, typeof(VideoInfo), true) as IEnumerable;
                if (videos != null)
                {
                    var item = videos.OfType<VideoInfo>().FirstOrDefault();
                    if (item != null)
                    {
                        var newItem = new CustomVideoAppoiment()
                        {
                            Subject = item.Name,
                            Start = DateTime.Now,
                            End = DateTime.Now.Add(item.Duration),
                            Path = item.Path,
                            Name = item.Name,
                            IsCloud = item.IsCloud
                        };
                        return new List<IOccurrence>() { newItem };
                    }
          
                
                }
            }
            return base.ConvertDraggedData(data);

 

Now when I need to check all the dragged items I see all my custom properties are always null.

 

I attached two images showing the problem. I think is a bug of the control.

 

Kalin
Telerik team
 answered on 15 Dec 2016
4 answers
98 views

Hi there,

I have found a problem exporting from RadGridView with individual precision for each column. My .dll does not support ExportToXlsx method. I use Export(Stream stream, GridViewExportOptions options) method.

There is definitely an option to set precision for number columns but only the same for all of them thru GridViewElementExportingEventArgs.

I can definitely make my export done by exporting the data from binding sources but there is one exception for aggregate functions results which are located at GridViewColumn footer in fact but at runtime cannot be obtained because Footer property of particular column is null and which are computed at your side code.

So I need know either how to set precision on columns individual according to some input thru Export(Stream stream, GridViewExportOptions options) method or how to obtain the string representation of aggregate functions located in column footer.

I definitely can compute aggregate function result separately but I really do not want to.

Thank you very much.

 

 

Dilyan Traykov
Telerik team
 answered on 15 Dec 2016
1 answer
295 views

I have a Grid and inside that grid I have a RadGridView filled with items. Below the RadGridView I have four buttons.

What I want is that by pressing the Tab key I navigate like this: When I open the windows and Press Tab I focus on the first item in the view of the RadGridView, on the second Tab press I jump out of the RadGridView and the focus is now on the Button below. On the next Tab press I jump to the next button and so on and so on till I reach the end and than I start the same from the beginning.

In the RadGridView if I want to move through the Items I do so with the Arrow keys Up and Down.

How can I do that ? I set in the RadGridView IsTabStop="False" but that is not enough, because on the first Tab press I want to Focus on the first item in the View of the RadGridView and then on the second Tab press I want to jump out to the next button. 

Devid
Top achievements
Rank 1
 answered on 15 Dec 2016
4 answers
172 views

Hi,

I created a video to show the problem http://www.youtube.com/watch?v=8DDX5OiYRyM

Left side is a one screen and the right side is another screen, when I click on Button tasks it should open the docking pane inside my main window but it opens outside the main window, this happens only when the window is maximized fully and it does not happen when I resize the window to be not maximized.

A bit weird but could I get some help?

 

Thanks

Nasko
Telerik team
 answered on 15 Dec 2016
1 answer
89 views

Hello,

It's possible to set to transparent the background color when a Cell is in "Edit mode".

 

Now I'm getting one of the default template colors.

 

Regards!

Stefan Nenchev
Telerik team
 answered on 15 Dec 2016
5 answers
390 views
I am placing a RadExpander on a WPF window and set the IsExapnded property to False so when the window is loaded it (the expander) should display closed initially.

I'm using a MVVM pattern so I initially thought that something was wrong with the binding, but after explicitly setting the IsExpanded="False" on the RadExpander control in the xaml I recieved the same result with the window opening with the expander open instead of closed.  I even went as far as coding in the code behind of the window loaded event handler to set the IsExpanded = False.  This didn't work either.

The odd thing is the toggle thinks the expander is closed, but the content area is open.  so you have to toggle open and then closed and the functionality of the control starts to work.

Here is the code:

<

 

telerik:RadExpander x:Name="ValidationExpander" BorderBrush="#888888" BorderThickness="1" Background="#EEEEEE"          
                                   IsExpanded
="False" MinWidth="500" Canvas.Bottom="0" ExpandDirection="Up" Canvas.Left="0">

 

 

 

     <telerik:RadExpander.Header>

 

 

 

          <TextBlock x:Name="expanderCaption" Foreground="#000000" Visibility="Visible" />

 

 

 

     </telerik:RadExpander.Header>

 

 

 

     <telerik:RadExpander.Content>

 

 

 

              <local:MessageBoxControl DataContext="{Binding MessageBoxViewModel, UpdateSourceTrigger=PropertyChanged}"
                                                         VerticalAlignment
="Top"/>

 

 

 

     </telerik:RadExpander.Content>

 

 

 

 

</telerik:RadExpander>

 



Milena
Telerik team
 answered on 15 Dec 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?