Telerik Forums
UI for WPF Forum
1 answer
93 views
In a GridView with a lot of rows I would in first column only unique value shown; this means the cell text should be empty if the value of the cell is the same as the value in the prior row.
How can I do this?

Its a little bit similar to grouped columns

best regards

Andreas Manz
Vanya Pavlova
Telerik team
 answered on 11 Aug 2011
3 answers
172 views
Hi,

I want to use xaml for binding nested collections to the the RadChart. However I don't want to hard code each series mapping manually like the examples show when they make use of multiple datasources or collection index.

As I can draw N number of series on chart at a given time hence hard-coding the series is impractical. Therefore I wanted to know how to handle this case in the most elegant way, by purely using Xaml and databinding the following data structure.

public class Data : INotifyPropertyChanged
    {
        private double m_Value;       
        private int m_Period;
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        public double Value
        {
            get
            {
                return m_Value;
            }
            set
            {
                if (m_Value == value)
                    return;
 
                m_Value = value;
                this.OnPropertyChanged("Value");
            }
        }
       
        public int Period
        {
            get
            {
                return m_Period;
            }
            set
            {
                if (m_Period == value)
                    return;
 
                m_Period = value;
                this.OnPropertyChanged("Period");
            }
        }
 
        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
 
    public class DataPointSeries : INotifyPropertyChanged
    {
        private ObservableCollection<Data> m_DataList;
        public ObservableCollection<Data> DataList
        {
            get
            {
                return m_DataList;
            }
            set
            {
                m_DataList = value;
                OnPropertyChanged("DataList");
            }
        }              
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        protected virtual void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
 
public class ChartsViewModel
    {
 
        private ObservableCollection<DataPointSeries> m_DataPointSeriesCollection;
        public ObservableCollection<DataPointSeries> DataPointSeriesCollection
        {
            get
            {
                return m_DataPointSeriesCollection;
            }
            set
            {
                m_DataPointSeriesCollection = value;
            }
        }
 
        public void PopulateDataSeriesCollection()
        {
            DataPointSeriesCollection = new ObservableCollection<DataPointSeries>
            {               
 
                new DataPointSeries
                {
                     DataList = GetDataPoint(0)
                },
                new DataPointSeries
                {
                    DataList = GetDataPoint(12.75)
                },
                new DataPointSeries
                {
                    DataList = GetDataPoint(27.625)
                },
                new DataPointSeries
                {
                    DataList = GetDataPoint(37.675)
                },
                new DataPointSeries
                {
                    DataList = GetDataPoint(43.475)
                }
            };
        }
 
        public ObservableCollection<Data> GetDataPoint(double factor)
        {
            var dataList = new ObservableCollection<Data>()
                    {
                        new Data
                        {
                            Period = 2002,
                            Value = 15 + factor
                        },
                        new Data
                        {
                            Period = 2003,
                            Value = 25 + factor
                        },
                        new Data
                        {
                            Period = 2004,
                            Value = 35 + factor
                        },
                        new Data
                        {
                            Period = 2005,
                            Value = 55 + factor
                        },
                        new Data
                        {
                            Period = 2006,
                            Value = 65 + factor
                        },
                        new Data
                        {
                            Period = 2007,
                            Value = 75 + factor
                        }
                    };
                    return dataList;               
        }
    }


Thanks,
Farhan
Yavor
Telerik team
 answered on 11 Aug 2011
2 answers
109 views
In a screen's add mode, I woiuld like the MakedDateTimeInput control to start displaying an empty text box.  Setting the text property to empty string or null doesnt' work.  Is there a way to get this behavior with the MaskedDateTimeInput control?
Petar Mladenov
Telerik team
 answered on 11 Aug 2011
1 answer
143 views
Is it possible to drag and drop items from a ListBox onto a RadMap control? I have the telerik:RadDragAndDropManager.AllowDrop="True" attribute set on the RadMap control, but I don't ever see the DropInfo event being raised. The DragQuery and DropQuery events seem to be raised just fine, but since I never get a DragStatus.DragComplete status, I'm not ever sure where to drop the item.
Vanya Pavlova
Telerik team
 answered on 11 Aug 2011
3 answers
256 views
Hello,

I'm looking for putting the close button next to the header of the radpane. It will be useful for us.
Someone knows how to do it or give me some info?

Regards.
Konstantina
Telerik team
 answered on 11 Aug 2011
1 answer
81 views
Now, propertyGrid is sorted alphabetically.
Is it possible to change sort property to false?
Ivan Ivanov
Telerik team
 answered on 11 Aug 2011
3 answers
163 views
Hello,

We have a WPF 4 solution. We are using RadGrids and RadCharts to display report data to the user. Using Telerik Reporting we have built a report to handle exporting the report data to Excel, pdf and making it available to print; however, we are using some of the more advanced features of the RadCharts that are not supported in Reporting.Charts and it has also become very laborious to create a new chart in the Reporting control when we've already created a RadChart for the display in WPF. I have started looking at exporting or saving the RadChart as an image to display in the Reporting control, but am having many issues with the display, particualrly the bars in the bar graph chart do not display in the saved image.

My question is, what is the easiest, smartest way to handle our situation? I already have a RadGrid and a RadChart both bound to a datasource being displayed on the WPF window, how do I get both of those to display in a printable, Excel exportable format using Telerik Reporting? And if I am already doing the right thing by saving my RadChart as an image, how do I get the Bars to display?

Thanks much,
John
Yavor
Telerik team
 answered on 11 Aug 2011
6 answers
223 views
I would like to point out a few things with this sample (most current version of the controls):

Reload() Method

A catch {} is a really bad idea when someone wants to debug issues, especially if you finally get down to something like this:

System.IO.IsolatedStorage.IsolatedStorageException was caught
  Message=Unable to determine application identity of the caller.

Which after some extensive searching boiled down to that GetUserStoreForApplication works for Silverlight and ClickOnce apps (which seemingly the sample application provided by Telerik seems to be...)

Hidden Columns

http://www.telerik.com/community/forums/silverlight/gridview/radgridviewsettings-cs-no-hide-column-functionality.aspx

Answer is there, but not part of the implementation (today).

Which brings me to my final point:

http://doc.xceedsoft.com/products/XceedWpfDataGrid/Xceed.Wpf.DataGrid.v4.2~Xceed.Wpf.DataGrid.DataGridControl~LoadUserSettings.html

Samples are nice, but having built in functionality with a factored storage story is the only proper way. This already cost me two hours and might actually force me to use another control suite because of the ongoing problems I have with this sample.

Please consider adding load / save of the entire column state (including a Reset to XAML defaults). Via a property and a configurable persistence key (grids tend to be named identically in different forms here).

Chris
Christoph
Top achievements
Rank 1
 answered on 11 Aug 2011
2 answers
124 views
Hi everyone,

I've been researching theming standard WPF controls with Telerik Themes and came across the following Telerik post:

"There is too little demand for complete coverage of telerik themes over the toolbox controls."
http://www.telerik.com/community/forums/wpf/general-discussions/telerik-themes-for-wpf.aspx

While I understand that theming every standard WPF control would be quite a job, I would appreciate if some additional standard WPF controls could be themed with Telerik Themes, especially as they have corresponding controls within Telerik's suite, for example:

* Combo box
* Progress bar
* Expander
* ToolBar

A list of the current controls supported can be found here:
http://www.telerik.com/community/forums/wpf/general-discussions/wpf-theme.aspx

The benefit I can see for expanded theming support for standard WPF controls is no code disruption for existing projects (eg. manually changing every ComboBox to RadComboBox and adding the appropriate references to each project). All that would be required to support theming for a consistent user experience would be a small code addition, such as:
http://www.telerik.com/community/code-library/wpf/general/284356-global-dynamic-theme-application-to-all-controls.aspx

Would anyone else appreciate extended support for theming standard WPF controls? If so, which controls would you like to see themed? Hopefully with this post we can show whether there is or isn't significant demand for this.

Kind regards,
Dave.
Hristo
Telerik team
 answered on 10 Aug 2011
3 answers
247 views
When my data changes, is there a way to force a refresh of a TiledProvider or TiledMapSource, short of removing the provider and adding it again?
Andrey
Telerik team
 answered on 10 Aug 2011
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?