Telerik Forums
UI for WPF Forum
1 answer
118 views
Hi,

Is it possible to get the GridView to display a custom user control when a user expands a row that has child entities? The user control I have in mind needs to split up the child entities into two nested GridViews that are displayed on separate tabs. See the attached mockup png file.

thanks,

Mark Le Noury
Mark
Top achievements
Rank 1
 answered on 18 Jan 2011
2 answers
66 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.
Manishkumar
Top achievements
Rank 1
 answered on 18 Jan 2011
1 answer
46 views
Hi,
I recently upgraded to the latets version (2010.3.1110.35 ), the problem is that when i try to expand the animation get stuck, if i doubble click the tree expands but the animation is still working. This just happend after teh upgrade.

Kind Regards
/Rodolfo
Petar Mladenov
Telerik team
 answered on 18 Jan 2011
0 answers
91 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
50 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
66 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
107 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
420 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
68 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
60 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?