Telerik Forums
UI for WPF Forum
1 answer
220 views
I was wondering if the following features are possible with the Telerik line chart, and if so how to use it.

We use line charts to show a variable amount of data across a variable time domain. For instance, 3 years worth of patient temperature data. In some periods, 1 measurement per month can have been recorded. In another period, a measurement would have been done every 2 hours. The user looking at the graph might be interested in the 3-year trend, or the data of the last 48 hours. Exactly how much data each patient has and the timespan in which it occurs differs for each patient. The user is presented with the entire data set, and will do plenty of zooming and scrolling.

One problem we run into is how to present the x-axis labels. We need:
1. Dynamic x-axis text labels. When looking at a timespan of 3 years we do not want the time included in the text label. When looking at a timespan of hours, we do not want to repeat the date in each x-axis label.
2. Visual grouping of parts of the x-axis, so that we can for instance specify the date only once for multiple ticks that occur on that date (but at different times). Something like the attached (google) example. How the grouping occurs should be dynamic and depend on zoom level (i.e. days, weeks, months, years).

Preferably we would use a purely declarative method (we use MVVM and try to keep the code behind to a minimum), we want to avoid having to do this programmatically.
Are the described scenarios possible with the line chart? Is there documentation describing how to do this?
Evgenia
Telerik team
 answered on 02 Mar 2011
1 answer
87 views
I try to use the RadTreeview as a property in the class like this

 

public class ClassName: WebAdminPageBase

 

{

 

public RadTreeView trvGlobalNavFooter { get; set; }

 

...
}
But I get the error
Error 1 The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. D:\Projects\Henry's Work area\NIAMS.GlobalNav\NIAMS.GlobalNavAndFooterAdmnSettings\NIAMSGlobalNavFootersetng.cs 21 28 NIAMS.GlobalNavAndFooterAdmnSettings


When I use RadTreeview as variable it works lik this

 

protected override void OnLoad(EventArgs e)

 

 

{

 

 

RadTreeView trvGlobalNavFooter = new RadTreeView();
...
}

The problem is that I need to use RadTreeview as a property. How Can I fix this problem??
Thx
HANK

 

Petar Mladenov
Telerik team
 answered on 02 Mar 2011
1 answer
255 views
I must surely be overlooking something obvious, but ..   how do you bind to the RadNumericUpDown control?  What property do you bind to?  Is there not some numeric or integer property that we can bind directly to?

I'm looking through the .chm help file but see nothing whatsoever that mentions this basic bit of information.

Perhaps I haven't had enough coffee today.

james hurst
Boyan
Telerik team
 answered on 02 Mar 2011
1 answer
136 views
Hi,

is it possible to to set the length of the timeslots to a custom period (for example to one week).
In RadScheduler i was able to do

<telerik:RadScheduler x:Name="scheduler" >
   <telerik:RadScheduler.TimelineViewDefinition >
      <telerik:TimelineViewDefinition CustomTimeSlotLength="1w" />                 
   </telerik:RadScheduler.TimelineViewDefinition>
</telerik:RadScheduler>

How can I achieve this in ScheduleView?

thanks in advance,

michael
Yana
Telerik team
 answered on 02 Mar 2011
2 answers
103 views
Hi,

I have the same issue as highlighted in this thread: http://www.telerik.com/community/forums/wpf/docking/control-contextmenu-in-a-docking-radpane-does-not-show-up.aspx

However, setting the ContextMenuItemTemplate to null as shown in the documentation does not work

<telerik:RadPane ContextMenuTemplate="{x:Null}">

Ammaar
Top achievements
Rank 1
 answered on 02 Mar 2011
2 answers
139 views
Hello Telerik Team,

In my WPF application I'm using your Pyramid3D Chart. In that I want to show couple of things, like
1) I have to show the respective count as a tooltip on the hover of respective areas (in my case they are High, Medium and Low). I'm trying to achieving this by using below code, but didn't get proper output.

2) Also I want to show the chart according to the LegendLabel (like high show come first and then Medium and then Low). But it is currently showing in a random order (i.e in my case Medium priority is showing at the top and then High is showing) . Just want to know how we can manage this behavior.

For more clarification, please find the screenshot of the same as an attachment.

void LoadGraphData(IEnumerable<CasePriorityCount> data)
        {
            SeriesMappingCollection mappingCollection = new SeriesMappingCollection();
            SeriesMapping mapping = new SeriesMapping();
  
            mapping.ItemMappings.Add(new ItemMapping("Count", DataPointMember.YValue));
            mapping.ItemMappings.Add(new ItemMapping("Priority", DataPointMember.LegendLabel));
            mapping.ItemMappings.Add(new ItemMapping("Count",DataPointMember.Tooltip));
  
            mapping.SeriesDefinition = new Pyramid3DSeriesDefinition();
  
            List<CaseByPriority> caseByPriorityData = new List<CaseByPriority>();
            foreach (CasePriorityCount caseByPriorityCount in data)
            {
                caseByPriorityData.Add(new CaseByPriority(caseByPriorityCount.Count, caseByPriorityCount.Priority));
            }
  
            mappingCollection.Add(mapping);
            ViewModel.SeriesMappingsData = mappingCollection;
            ViewModel.Data = caseByPriorityData;
        }
Vladimir Milev
Telerik team
 answered on 02 Mar 2011
5 answers
157 views
I'm using a RadWindow but when I do ShowDialog no background is displayed.  What do I need to do to make the ModalBackground show?  Does't work for ShowDialog or Alert.
Dani
Telerik team
 answered on 02 Mar 2011
2 answers
124 views
Hi,

I wanted to implement the OnItemDataBound event feature in RadGridView control.


Please, let me know if there is any solution to this issue.

Regards,
Hirak
hirak
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
176 views
Hello,

Our application uses gridviews to display hierarchical data using two separate data tables that share a key for lookup purposes.

The application previously used WinControls RadGridView and joined the two tables using a GridViewRelation. 

                this.Grid.BeginUpdate();
                this.Grid.MasterTemplate.Reset();
                Grid.DataSource = datatables[0];
                if (AddDetails)
                {
                    GridViewTemplate template = new GridViewTemplate();
                    template.DataSource = datatables[1];
                    Grid.Templates.Add(template);

                    GridViewRelation relation = new GridViewRelation(Grid.MasterTemplate);
                    relation.ChildTemplate = template;
                    relation.RelationName = "Details";
                    relation.ParentColumnNames.Add(PC);
                    relation.ChildColumnNames.Add(CC);
                    Grid.Relations.Add(relation);
                }







Once loaded, the lookup was very fast, i.e. I could expand any row to view the child data more or less
instantly.


However when I switched over to the WPF gridview, performance for the same input became
unacceptably slow, for example it takes
approximately 2 seconds every time to expand a row to view the child data.

The WPF xaml looks like so:
   <Grid>
        <telerik:RadGridView x:Name="BugGrid"
                             IsFilteringAllowed="True"
                             IsReadOnly="True"
                             CanUserInsertRows="False"
                             TabIndex="1"
                             AutoGenerateColumns="False"
                             DataLoading="DataLoading"
                             RowHeight="32"
                             MaxColumnWidth="200"
                             EnableRowVirtualization="True"
                             EnableColumnVirtualization="True"
                             DataLoadMode="Asynchronous"
                            
                             >
                             
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding asdfas}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Blah}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding PC}" IsVisible="False"/>
            </telerik:RadGridView.Columns>
            
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition x:Name="Details">
                    <telerik:GridViewTableDefinition.Relation>
                        <telerik:TableRelation>
                            <telerik:TableRelation.FieldNames>
                                <telerik:FieldDescriptorNamePair 
                                    ParentFieldDescriptorName="PC" 
                                    ChildFieldDescriptorName="CC"/>
                            </telerik:TableRelation.FieldNames>
                        </telerik:TableRelation>
                    </telerik:GridViewTableDefinition.Relation>
                </telerik:GridViewTableDefinition>
            </telerik:RadGridView.ChildTableDefinitions>
        </telerik:RadGridView>
    </Grid>

In the code behind I define the properties of the child table in DataLoading
        private void DataLoading(object sender, GridViewDataLoadingEventArgs e)
        {       
            GridViewDataControl dataControl = (GridViewDataControl) sender;
            if (dataControl.ParentRow != null)
            {
                dataControl.AutoGenerateColumns = false;
                dataControl.ShowGroupPanel = false;
                dataControl.IsFilteringAllowed = false;
                dataControl.CanUserFreezeColumns = false;
                dataControl.IsReadOnly = true;
                GridViewDataColumn column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("CC");
                column.IsVisible = false;
                column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("Name");
                dataControl.Columns.Add(column);
                column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("Value");
                dataControl.Columns.Add(column);
            }


I set the data source of the child table definition to the be the data table with the details.

I've been able to determine that it's the looking up of the appropriate child data from
the data table that is the very slow part (e.g. if the details data table is blank,
the rows expand instantly) but why is it SO much slower than the old WinControls grid, which also worked with the same data using a similar Relationship.

More importantly, how can I speed it up?
Yordanka
Telerik team
 answered on 02 Mar 2011
1 answer
88 views
There are separate WPF 3.5 & 4.0 installers, but I can't seem to install both at the same time.
Milan
Telerik team
 answered on 02 Mar 2011
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?