Telerik Forums
UI for WPF Forum
2 answers
169 views
Hi,

I have a Gridview and a Chart. The gridview can be filtered. what i would like is the chart to update its view based on the filter applied by the user but I cannot see how to bind the chart to the filtered list.

//Load data and bind to gridview

 

 

ObservableCollection<People> peopleByYearData = GetPeopleByYear();

 

gridViewPeople.ItemsSource = peopleByYearData;

//this displays the data on a simple bar chart.

 

chartPeopleByYear.ItemsSource = gridViewPeople.ItemsSource;

How do i ensure that the chart updates its view when the gridview is filtered?

i have tried hooking into the Filtered event of the gridview to try and get access to a list of filtered items but I cannot find any such list. The filter displays fine on the gridview but in the Filtered event the gridViewPeople.Items.Count is always == 0.

Thanks


ben williams
Top achievements
Rank 1
 answered on 25 May 2010
4 answers
322 views
Hello,
I have a question about licencing. I work in company where is few development teams, each team for different project (client/server development). One team is working on project with GUI (project A), this project will reference Telerik WPF controls. Another team is working on project B which reference project A.
The question is, do i need licences of WPF controls  for developers on project B?

Thanks

David
David Renza
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
142 views
I am trying to print a RadGridView control.

I followed the sample provided, creating a new control and I do see pages of data from my grid...  but here's the issue...

It seems like the good layout stuff must not be happening.  My alternating colors don't show up.  The text wrapping is not happening.  My columns are never resized to fit the width of the printed page.

My theory is that because my print grid is not part of the visual tree, it never gets the Loaded event where all of the good stuff must be happening.

Please help if you can :)
-Mike Graham
Maya
Telerik team
 answered on 25 May 2010
1 answer
208 views
I'm trying to use the FilterOperatorConverter class for the Filtering Dialog, and keep getting a Not Implemented exception for the ConvertBack method of the converter.  A quick check with Reflector shows that the FilterOperatorConverter.ConvertBack() method does indeed throw a Not Implemented exception.  Base on the released documentation, the FilterOperatorConverter.ConvertBack() method is documented as able to do the conversion. 

I need to override the template & style for this Filter Popup in the RadGridView.  How would I overide the style and template in the Combobox dropdown of the FilterOperators so that the Text for the selection appears as "Is Equal To" rather than "IsEqualTo"?

Rossen Hristov
Telerik team
 answered on 25 May 2010
3 answers
229 views
When the minimize button is clicked, the RadWindow hides the content within it (See attachment). Is there a way to minimize the window to the taskbar? I'm using Q1 2010, this didn't occur in Q3 2009. Thanks.
Miroslav Nedyalkov
Telerik team
 answered on 25 May 2010
1 answer
138 views

I'm trying to plot a “stepline” chart where AxisX is a DateTime and some points are nulls.
As I didn't find any specific series (I hope you'll address soon), I use LineSeriesDefinizion doubling data point (see code) but:
- null value are treated as 0 (wrong since 0 means 0 value while null means missing value)
- where first value is null, the control throws a NullReferenceException

        public MainWindow()

        {

            InitializeComponent();

            ConfigureChart();

        }

        private void ConfigureChart()

        {

            LineSeriesDefinition lineSeries = new LineSeriesDefinition();

            lineSeries.ShowItemLabels = false;

            lineSeries.ShowPointMarks = false;

            SeriesMapping actualMapping = new SeriesMapping();

            actualMapping.SeriesDefinition = lineSeries;

            actualMapping.LegendLabel = "Data";

            actualMapping.ItemMappings.Add(new ItemMapping("Day", DataPointMember.XValue));

            actualMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));

            radChart.SeriesMappings.Add(actualMapping);

            radChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "#VAL{dd-MM-yy}";

            radChart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 45;

            radChart.DefaultView.ChartArea.AxisX.IsDateTime = true;

            radChart.ItemsSource = MyData.GetData();

        }

    }

    class MyData

    {

        public DateTime Day { get; set; }

        public double? Value { get; set; }

        public static List<MyData> GetData()

        {

            DateTime today = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);

            List<MyData> list = new List<MyData>();

            list.Add(new MyData() { Day = today, Value = null });

            list.Add(new MyData() { Day = today.AddDays(1), Value = 1 });

            list.Add(new MyData() { Day = today.AddDays(1), Value = 2 });

            list.Add(new MyData() { Day = today.AddDays(2), Value = 2 });

            list.Add(new MyData() { Day = today.AddDays(2), Value = 1.5 });

            list.Add(new MyData() { Day = today.AddDays(3), Value = 1.5 });

            return list;

        }

    }


Sincerely
Ivano

 

 

Dwight
Telerik team
 answered on 25 May 2010
1 answer
83 views
http://www.telerik.com/help/wpf/telerik.windows.controls.charting-telerik.windows.controls.charting.axis2d%601-sliderposition.html

"Gets or sets the slider position.    "

WOW... REALLY???

:P

For a product that you are selling for $1k a pop, your documentation leaves much to be desired. :(
Hristo
Telerik team
 answered on 25 May 2010
1 answer
115 views
Hi,
I have the following problem:
I have a GridView with ItemSource bound to a property in view model. View model refreshes the property every 10 seconds, and when this happens all the row details row that were opened, or context menu that was open, closes down.
How can this be avoided?
Vlad
Telerik team
 answered on 25 May 2010
1 answer
73 views
Hello, I have a requirement where a user can click on already selected row to navigate to some other pages of my app. So, SelectedItem would only work the first time if there is no selection yet. I also would like to have the selected item highlighted but at the same time need to intercept a Click and proceed from there on.

I am trying to bind LeftClick mouse action to ICommand on my ViewModel using InputBinding however it seems something else is eating it before I can receive it. RightClick works.

Thanks,

Xoma
Xoma
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
82 views
I don't know if it is a known issue, but when I am opening the Excel-like filtering window and i set my cursor in one of the two textboxes and I press the Tab Key, i get an error.

Is there any possibility to avoid this error? I do not just get this error in my test application, I also get it locally on my WPF Demos application.

I am using RadControls for WPF Q1 2010, released on 09 March 2010
Milan
Telerik team
 answered on 24 May 2010
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?