Telerik Forums
UI for WPF Forum
0 answers
99 views

Hi,

I have a 3D Pyramid chart from Telerik RadControls. I would like to know how we can enable interactivity for this chart (like rotating the pyramid to view it from different angles). The interactivity has been enabled in Telerik Demos, but i wasnt able to understand the code behind. Also, I would like to know whether there is a way we can enable the interactivity through XAML or through some properties of the Chart. Could anyone help me out with this pls? Thanx.

Sang
Top achievements
Rank 1
 asked on 18 Jan 2011
2 answers
61 views
Hi,
I have to develop a Stacked area chart which can contain atmost of 15 areas, and on click of every stacked area, I  need to open different context menu.

I found an example for ContextMenu for Bar Chart, but when I changed the BarSeriesDefinition to StackedAreaSeriesDefinition and Style TargetType from telerik:Bar to telerik:StackedArea, it does not worked.

So, Could you please give me an example explaining how to implement ContextMenu on StackedArea.
Evgenia
Telerik team
 answered on 18 Jan 2011
1 answer
83 views
Hi,

I've created a ObservableCollection of ObservableCollections for data binding, but when i add data to the inner collections, chart isn't updated. If i add a timer that null's and re-adds the ItemsSource it works, but that defeats the purpose of ObservableCollection. Any clues?

Michael
Evgenia
Telerik team
 answered on 18 Jan 2011
1 answer
123 views
Hi,

Assume you have a class (say ClassA). ClassA inherits from another class (say ClassB) which contains property of DataRow (_data).

Now when the itemssource of RadGridView binds to ClassA and the user creates a new row, RadGridview will only create a new class of ClassA but it does not create the DataRow (_data) propery. How can I make the _data property is generated while creating a new row? thanks

public class ClassB: INotifyPropertyChanged
    {
        #region Data
        DataRow _data;
 
        [Browsable(false), Bindable(false)]
        public DataRow DataRow
        {
            get { return _data; }
            set { _data = value; OnPropertyChanged("DataRow"); }
        }
        #endregion // Data
 
        #region Constructors
 
        protected ClassB(DataRow data)
            : this()
        {
            _data = data;
        }
        protected ClassB()
        {
             
        }
        #endregion // Constructors
 
 
        public object GetField(string name)
        {
            object value = null;
            try
            {
                if (_data.Table.Columns.Contains(name))
                {
                    value = _data[name];
                    if (value is DBNull)
                        value = null;
                }
                else
                    value = null;
            }
            catch { }
            return value;
        }
        public void SetField(string name, object value)
        {
            try
            {
                if (_data.Table.Columns.Contains(name))
                {
                    _data[name] = (value == null) ? DBNull.Value : value;
                }
            }
            catch {}
        }
 
        #region INotifyPropertyChanged Members
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
 
        #endregion // INotifyPropertyChanged Members
    }
Vlad
Telerik team
 answered on 18 Jan 2011
21 answers
461 views
Hi..
I'm exporting to excel... it exports fine...
But when I open the file I get an MS Error

THE FILE YOU ARE TRYING TO OPEN TEST.XLS IS IN A DIFFERANT FORMAT THAN SPECIFIED BY THE FILE EXTENSION....

Any ideas?   How I can I get rid of this msg?
thanks again
Vlad
Telerik team
 answered on 18 Jan 2011
1 answer
78 views
We are using telerik control with theme manager including GridView and we would like to know how to reuse telerik style.

I.e, we want to style standard window Border with GridViewHeaderRowBorder style, without extracting all of the styles.

Is it possible to retrive style using code?
I used Snoope and foun the element name I want to reuse; PART_GridViewHeaderRowBorder.

Thanks Tom
Vlad
Telerik team
 answered on 18 Jan 2011
1 answer
71 views
I'm using WPF controls version 2010.3.1110.40 for .NET 4 with Visual Studio 2010.

Program Definition: I have 3 or more series to plot and which one to plot is depends on what is checked. In my real program, all my series have different units, so I put them all on different Y-axes (AdditionalYAxes).

Root of all evil: I was not able to get white and gray stripes on the chart area without having one of the series associated with the default Y-axis...

=====
Solution 1: Keep all series where they are and try to find a way to get the stripes to show up. I updated to 2010.3.1110.40 in the process of trying to get this working. I still can't get the stripe... I also want to stay in the lates version.
Problem 1:
Updating from an earlier version of WPF controls, I picked up an undefined default Y-axis.
Attached: ChartIssue1.jpg
=====
Solution 2: 
Using 2010.3.1110.40, I select one of the series depending on which one(s) are picked, and associate it with the default Y-axis. White and gray stripes are showing up now. 
Problem 2: The axis TITLE for the default Y-axis is not changing!!! If commented code below is uncommented, X-axis title changes as the series selected changes, but not the Y-axis...

AxisY temp = new AxisY();
temp = radChart1.DefaultView.ChartArea.AdditionalYAxes[0];
radChart1.DefaultView.ChartArea.AdditionalYAxes.RemoveAt(0);
radChart1.DefaultView.ChartArea.AxisY = temp;
//radChart1.DefaultView.ChartArea.AxisX.Title = temp.Title;


Attached: ChartIssue2.jpg.
=====

I have solutions as well. I can send them if requested.
I would like to get stripes to work. If not, I don't want the default Y-axis...

Thanks for your time,

Kadem
Yavor
Telerik team
 answered on 18 Jan 2011
4 answers
94 views
Hi,
the docking control has a big gap between the container and content.. is there a way to remove the gap? or is this an aware bugs?
thanks
ronald
Top achievements
Rank 1
 answered on 17 Jan 2011
4 answers
146 views
When I open an PrintPreviewDialog all works well, but...

...when I change the column-order by dragging a column to an other place, opening of the Printpreview gives an:
System.ArgumentOutOfRangeException: GridViewDataControl_ColumnDisplayIndexOutOfRange.

The same happens in your "RadControls for WPF-Demo":  GridView/WPF/Printing:
Change the column-order and click "printpreview".
Paul
Top achievements
Rank 1
 answered on 17 Jan 2011
1 answer
157 views
Good evening,
I am implementing a drag and drop between two grids, which works fine and drags and drops great.
however, when I do the first drag and drop I get this error:
System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls
  StackTrace:
       at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.StartDragging() in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:line 1083
  InnerException: 

The error occurs once and when I continue running the code the next drag and drops works great.
I am doing the drag and drops from a dialog window invoked from within the software.
I am using Q2 SP1 release.
Please help,
Eylon


Tsvyatko
Telerik team
 answered on 17 Jan 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?