Telerik Forums
UI for WPF Forum
1 answer
90 views
I Have an asset with with a name, that contains  a value for each day (in  7 days)
List <ChartData>list = xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846),  assetName);
so here i am saving for each asset the day, the name and the value it has on that day

no i want to make a stackedbar, where the value for each asset is given on day 12/1/2011, so i want all assets like
xbox, telephone, tv, .. give a value in a stackedbar for 12/1/2011 in the stackedbar chart.

How can i do this, 

this is what i tried

List<ChartTot> data = new List<ChartTot>();
 
XMLData xData = new XMLData();
XMLData xData2 = new XMLData();
 
data.Add(new ChartTot(xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846), "Stereo")));
data.Add(new ChartTot(xData2.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846), "Gas")));
 
radChart1.ItemsSource = data;
public class ChartTot
   {
       private List<ChartData> cd = new List<ChartData>();
 
       public ChartTot(List<ChartData> list)
       {
           this.cd = list;
       }
   }
public class ChartData
  {
      public String Naam { get; set; }
      public double Waarde { get; set; }
      public DateTime DezeW { get; set; }
 
 
 
      public ChartData()
      {
      }
}
 

(xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846), "Stereo")
this gives me a list from ChartData class, and i put it in a List of ChartTot.

the itemsSource contains a list (ChartTot) that contains a list of ChartData

But i get no chart ???
Petar Marchev
Telerik team
 answered on 07 Dec 2011
4 answers
156 views
Hi Team,

I was going through your documnet described in this blog post here. (Export to PDF in Help for Rad Chart)

Here when a chart we need to export is not in visual tree, we create a new RadChart and add the series mapping to it and export it.
But in my case I'm not using the DefaultView of RadChart, because I need to have a grid inside my chart area. So the modified RadChart I created in Xaml and using the same.
Now what I'm trying to do is I'm assigning the DataSeries to the chart I have in xaml (not creating a new one as in your example), and creating my chart. Now when I try to export it using ExportToImage, it throws an exception of null reference.

Is it not possible to export the chart which I have an updated view in xaml, when its not visible in the UI, by assigning the DataSeries as explained in your example (ex: not visible in visual tree)?

Please reply soon.

Thanks.

Manishkumar
Top achievements
Rank 1
 answered on 07 Dec 2011
1 answer
71 views
I've been struggling to create a stacked bar chart with that will display the following data:



I realize that since the columns (years) are dynamic that i must create the chart in codebehind. However, I've been lost with trying to figure out how to loop through the data (in the form of a datatable, that looks exactly like the grid in the screenshot above) and what item mappings and/or groupsettings to specifiy.  Any help with figuring this out would be most appreciated! Thanks

Tsvetie
Telerik team
 answered on 07 Dec 2011
0 answers
68 views
Hi,
I have a Rad TreeListView having 6 level of data. Suppose i expand the nodes to any lower level say 20 nodes expanded. Now i click on Navigation button to go to next page. My requirement is user will be able to see the same record before pagination.
In my treelistview row Virtualization is enabled.

Please attach a code snippet if any

Thanks
Vinod
Top achievements
Rank 1
 asked on 07 Dec 2011
1 answer
327 views
Hi,

I have a user control with RadGridView bound to the database table.

The table has a DateTimeOffset column.

It seems that the filter doesnt function properly with this DateTimeOffset datatype (the Date time picker in the filter window of the Grid View Column filter doesnt show up, and the options for filtering is constricted to only isEqualTo and IsNotEqualTo. Other options are not available).

I tried binding the columns with DateTime datatype where ever I could bind the grid to a Object (or Property) which is in turn bound to the database column.

But, where ever I need a direct binding to the database, I am not able to do this.

Can you please suggest any alternate solution?

Thanks and regards

Pavan
Rossen Hristov
Telerik team
 answered on 07 Dec 2011
2 answers
117 views
Hello Telerik Team,
                              I have one clarification about radcombobox..
I have two objects like LedgerID and LedgerName.The values are stored in database.I want to  retrieve these details and add to radcombobox itemsource value..

then if i put letter A in radcombobox  after drop down will open with all A starting words in assending order...
and if suppose i put Number in radcombobox  then the values will display ascending order based on the given LedgerID..

How to add radcombobox Itemsource to two columns and the above filtering method?
is it possible with Radcombobox?
or how to achive this give me any suggesstions?
Yana
Telerik team
 answered on 07 Dec 2011
1 answer
81 views
i import a docx into a RADbook with Rich textbox.

it show hyper link to current document but don't move to bookmark line?
Iva Toteva
Telerik team
 answered on 07 Dec 2011
3 answers
136 views
Hi,

We have used Rad Charts in our WPF application which shows crosshair on the chart and showing a tooltip on line where mouse is placed and it is working fine you can view it in attached image Working.jpg.

Now, we are in need to show two tooltips on mouse hover on data point. at the moment in the way that Y-axis value should be shown in main tooltip near the data point, while second tooltip should be shown in x-axis as per attache image Required.jpg.

Can you help us to achive this required functionality?

Thanks
Giuseppe
Telerik team
 answered on 07 Dec 2011
2 answers
131 views
Hello,
The following code displays a prompt as expected only when I don't provide the event handler :
var DialogParam = new DialogParameters
            {
                Content = new TextBlock()
                {
                    Text = "..."
                },
                Header = new TextBlock()
                {
                    Text="",
                }
            };
            RadWindow.Prompt(DialogParam);
            RadWindow.Prompt(DialogParam, ActionOnClose);

In the second case It displays "Telerik.Windows.Controls.DialogParameters " instead of "..." :-/
Guillaume
Top achievements
Rank 1
 answered on 07 Dec 2011
14 answers
290 views
Hello,

In one of our projects we have the need of adding crosshairs (vertical line + horizontal line that marks the location of a point, displaying the X coordinate and Y coordinate) to a radchart. I've seen that this functionality is not available by now. However, I found some examples in the Internet about how to make this possible in Silverlight using the toolkit controls (see http://www.scottlogic.co.uk/blog/colin/2009/02/adding-a-location-crosshair-to-silverlight-charts/) by modifying the control template.

My question is if there is any way to add this functionality by editing the radchart template or similar... any examples would be highly appreciated as this is the first project that we carry on WPF and Telerik Controls :-).

Hope you can help us !!!
Imran Javed Zia
Top achievements
Rank 1
 answered on 07 Dec 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?