Telerik Forums
UI for WPF Forum
1 answer
226 views
Hi,
I have been adding time values to horizontal axis in milliseconds. As the time exceeds 1000 milliseconds it gets converted to seconds and so on. When time value already exists in the horizontal axis then the graph gets overlap for that time.
For example:- values for 1 millisecond and value for 1000 millisecond(which after conversion becomes 1 second) get overlapped. Similarly, for 1 millisecond and 60000 millisecond(which after conversion becomes 1 minute).
How to avoid these points from getting overlapped and  how can we distinguish them?

 if(TimeValue < 1000)
                            {
                                XAxis.Title = "Time (milliseconds)";
                              _weldDataMapping.Series.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint { Category = TimeValue, Value = val });
                            }
                            else if (TimeValue >= 1000 && TimeValue <= 60000)
                            {
                                XAxis.Title = "Time (seconds)";
TimeValueInSec = Math.Round(TimeValue / 1000, 4);
                               _weldDataMapping.Series.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint { Category = TimeValueInSec , Value = val });
                            }
and so on for the conversion in minute and hours......

I have attached two images which shows value for 990 millisecond and den 1010 millisecond. And value for 1000 millisecond which after conversion has become 1 second overlaps with value of 1 millisecond (shown as a straight line coming back to 1 millisecond).
Please provide the solution as soon as possible.
Thanks.
Ves
Telerik team
 answered on 15 Aug 2013
1 answer
53 views
I have one RadDocking in my UserControl that contains two RadSplitContainers. I am trying to find a way to make it so that the panes from either of the SplitContainers cannot go into the other, but can be moved within their own container (they are also allowed to float).

I had found one solution in the forums, but it didn't really make sense to me. I am looking for a smaller solution with just two SplitContainers and maybe a little explanation as to how it works like that.

Any help is appreciated, thank you.
Vladi
Telerik team
 answered on 15 Aug 2013
1 answer
94 views
Hi,

Is there any way  by which i can order the horizontal axis label in increasing order?
Please reply as soon as possible.

Thanks
Rosko
Telerik team
 answered on 15 Aug 2013
1 answer
105 views
Hi all,

looks like a simple problem, but I can't find a solution :-(  I have a bar chart with several items and a CustomGridLine, showing a limit value. Now I want to fill each item depending on his value. Green, if it is far away from the limit, yellow if near by and red if it is greater. Best solution will be a linear brush to fade the colors. Any hints?
dpl
Top achievements
Rank 1
 answered on 15 Aug 2013
3 answers
222 views
Hello,

we are trying to apply the new lightweight templates in our WPF .NET 4.5 project. We follow the documentation you provide. But it doesnt work.
We dont know where to get the correct themes dll which is referenced in the resource dictionaries

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>


Using the self-built assambly from themes.implicit produces following errors (~200):

e.g.: 
Error 95 The name "Windows8Resource" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7".

Error 2 The name "Windows8ResourceDictionary" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Error 3 The name "Windows8Colors" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Changing the Telerik dependencies from 4.0 to 4.5 in the themes.implicit project does not work either.

Could you please provide any help in this case.

regards
Marco Gruhl
Vanya Pavlova
Telerik team
 answered on 15 Aug 2013
2 answers
122 views
Hi

I have a need to have many open documents open at the same time.  Also, each pane header may have a long name.  After opening more than about 4 or 5 documents the pane width is reduced.  This leaves the pane header unintelligible.  The typical way this is handled by microsoft and others is to have a dropdown list of panels.  How would I do this with RadDocking.

Thanks
Rich
Richard Harrigan
Top achievements
Rank 1
 answered on 14 Aug 2013
1 answer
162 views
Hi,
I'm trying to use multi-seleciton in PropertyGrid and the following problems occurred:

1. When I set SelectionMode to multi in Xaml and try to switch it to Single mode in code-behind, it doesn't work.
2. When I set NestedPropertiesVisibility="Visible", it worked fine in the single selection mode, but doesn't work in the multi selection mode.
3. Data Annotations set in the Display attriute doesn't work.
3. DataTemplateSelection does not work properly as in the single selection. For example, I get
PropertyType : {Name = "Object" FullName = "System.Object"} System.Type {System.RuntimeType}
for the code below.

public class PropertyGridDataTemplateSelector : DataTemplateSelector
    {
        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            if (item as PropertyDefinition != null && (item as PropertyDefinition).SourceProperty.PropertyType == typeof(Int32))
            {
                return IntegerPropertyDataTemplate;
            }
            return null;
        }

        public DataTemplate IntegerPropertyDataTemplate { get; set; }
    }

Can you get this fixed?
Thanks!

Maya
Telerik team
 answered on 14 Aug 2013
1 answer
90 views
Hi all,
I ran into a situation where I programmatically grouped my Grid by a property that was not a column on the Grid using a GroupDescriptor.  It worked fine of course until I tried to persist it.  The GridViewCustomPropertyProvider.cs that I downloaded from Telerik many moons ago expected ColumnGroupDescriptors only.  After some investigation I found that I had to make modifications to support both types.  I share the code here in case someone else also needs this support.

In the ProvideValue method...
case "GroupDescriptors":
    {
        List<GroupDescriptorProxy> groupDescriptorProxies = new List<GroupDescriptorProxy>();
 
        foreach (GroupDescriptorBase descriptor in gridView.GroupDescriptors)
        {
            if (descriptor is GroupDescriptor)
            {
                groupDescriptorProxies.Add(new GroupDescriptorProxy()
                {
                    ColumnUniqueName = (descriptor as GroupDescriptor).Member,
                    SortDirection = descriptor.SortDirection,
                });
            }
            else if (descriptor is ColumnGroupDescriptor)
            {
                groupDescriptorProxies.Add(new GroupDescriptorProxy()
                {
                    ColumnUniqueName = (descriptor as ColumnGroupDescriptor).Column.UniqueName,
                    SortDirection = descriptor.SortDirection,
                });
            }
 
        }
 
        return groupDescriptorProxies;
    }

In the RestoreValueMethod....
case "GroupDescriptors":
    {
        gridView.GroupDescriptors.SuspendNotifications();
 
        gridView.GroupDescriptors.Clear();
 
        List<GroupDescriptorProxy> groupDescriptorProxies = value as List<GroupDescriptorProxy>;
 
        foreach (GroupDescriptorProxy proxy in groupDescriptorProxies)
        {
            GridViewColumn column = gridView.Columns[proxy.ColumnUniqueName];
            GroupDescriptorBase gd = null;
            if (column != null)
            {
                gd = new ColumnGroupDescriptor()
                {
                    Column = column,
                    SortDirection = proxy.SortDirection
                };
            }
            else // assume GroupDescriptor
            {
                gd = new GroupDescriptor()
                {
                    Member = proxy.ColumnUniqueName,
                    SortDirection = proxy.SortDirection
                };
            }
            gridView.GroupDescriptors.Add(gd);
        }
 
        gridView.GroupDescriptors.ResumeNotifications();
    }





Best,
Steve

Yoan
Telerik team
 answered on 14 Aug 2013
1 answer
104 views
When I programmatically change row selection, i would like it to have Keyboard.focus. I did this with TreeView by adding a handler for the TreeViewItem Select event.  I tried to do a similar thing for GridView by adding a handler to the GridViewRow Select event. But this does not work: It gets a "handler type is not valid". I notice that there is a command, "ActivateRow", but I can't find any documentation on what an active row is or how to execute the command.  Does an active row have keyboard focus?  How would I invoke it for the selected row? Or is there another way to do what I what?
Yoan
Telerik team
 answered on 14 Aug 2013
1 answer
193 views
Hi,

I'm using Telerik V2012.2.912.35 and I would like to know why the TimelineViewDefinition doesn't respect the DayEndTime parameter...
When I'm in timeline view, every day time start at my parameter value but it don't stop at my end time parameter.

Thank's
Alain

Here is my piece of code:

                   <scheduleView:RadScheduleView AppointmentEdited="ScheduleView_AppointmentEdited" Grid.Column="1" x:Name="ScheduleView" FirstDayOfWeek="Sunday" ActiveViewDefinitionIndex="1" AppointmentsSource="{Binding}" AppointmentItemContentTemplate="{StaticResource AppointmentTemplate}" ToolTipTemplate="{StaticResource AppointmentToolTipTemplate}" Margin="0 2 2 2">
                        <scheduleView:RadScheduleView.ViewDefinitions>
                            <scheduleView:DayViewDefinition DayStartTime="9:00" DayEndTime="18:00" MajorTickLength="1h" MinorTickLength="15min" TimerulerMajorTickStringFormat="{}{0:H tt}:{0:mm} " TimerulerMinorTickStringFormat=":{0:mm} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:WeekViewDefinition DayStartTime="9:00" DayEndTime="18:00" MajorTickLength="1h" FirstDayOfWeek="Monday" VisibleDays="5" MinorTickLength="15min" TimerulerMajorTickStringFormat="{}{0:H tt}:{0:mm} " TimerulerMinorTickStringFormat=":{0:mm} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:MonthViewDefinition DayStartTime="9:00" DayEndTime="18:00" TimerulerMajorTickStringFormat="{}{0:d MMMM} " GroupHeaderDateStringFormat="{}{0:dddd d MMMM yyyy}" />
                            <scheduleView:TimelineViewDefinition DayStartTime="9:00" DayEndTime="18:00" TimerulerGroupStringFormat="{}{0:dddd d MMMM yyyy}" TimerulerMajorTickStringFormat="{}{0:%H}h" TimerulerMinorTickStringFormat=":{0:%m}" MajorTickLength="1h" MinorTickLength="15min" MinTimeRulerExtent="30400" MaxTimeRulerExtent="30400" StretchAppointments="True" StretchGroupHeaders="True" />
                        </scheduleView:RadScheduleView.ViewDefinitions>
                    </scheduleView:RadScheduleView>

Kalin
Telerik team
 answered on 14 Aug 2013
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?