Telerik Forums
UI for WPF Forum
7 answers
730 views

We are using context menu with tree node. The tree and context menu are both dynamic and binds on the runtime.

The tree has several levels of nodes and context menu is specific to the nodes at different levels.

The tree supports the multiple selection.

As per our requirement, we need to find multiple selected tree nodes when the user right clicks on any one of the mulitple selected node to open the context menu.

1. Single node selection

When we right click on the single node to open the context menu, the node which was right clicked does not get selected. We have used the following piece of code to identify the node which was right clicked, and it gives us the correct value.

 

 

private RadTreeViewItem ClickedTreeViewItem

 

{

 

 

get 

 

{

 

return radContextMenu.GetClickedElement<RadTreeViewItem>(); }

 

 

}

 

 

 

this

 

 

.ClickedTreeViewItem.DataContext

 

 

 

 

 

 

2. Multiple nodes selection

In case of multiple selection, we have to select the nodes and we are not able to find the nodes which are selected while using the context menu.

To summarize:

1. We need a way to find the selected nodes in a tree on right click to open the context menu for either single or multiple selection of the tree view item.

2. The node on which the context menu was opened should be selected as well.

Tina Stancheva
Telerik team
 answered on 26 May 2010
1 answer
94 views
I have a numericUpDown control in a gridview and when I click on one of the arrows, the arrows go away and the cell isn't in edit mode anymore.  Any help is appreciated. 

                <telerik:GridViewDataColumn Header="X Coordinates" 
                        DataMemberBinding="{Binding XCoordinates, Mode=TwoWay}" 
                        TextAlignment="Right">  
                    <telerik:GridViewDataColumn.CellTemplate> 
                        <DataTemplate> 
                            <TextBlock Text="{Binding XCoordinates}" /> 
                        </DataTemplate> 
                    </telerik:GridViewDataColumn.CellTemplate> 
                    <telerik:GridViewDataColumn.CellEditTemplate> 
                        <DataTemplate> 
                            <telerik:RadNumericUpDown Maximum="10000" Minimum="0" ValueFormat="Numeric" 
                                    Value="{Binding XCoordinates, Mode=TwoWay}" /> 
                        </DataTemplate> 
                    </telerik:GridViewDataColumn.CellEditTemplate> 
                </telerik:GridViewDataColumn> 
Yordanka
Telerik team
 answered on 26 May 2010
7 answers
314 views
I am planning to use telerik on some scientific application where we plot a lot of data, and since there is huge amount of data the plot will be a "summary" and "detail" chart where the summary plot will have a summarized value for, say, each minute over a longer period of time and a detail plot will lot the value of each minute's worth of data when the user selects that particular minute.

Now, I am planning (or at least the requirement says) that the summary plot have a movable ( and i am not sure if this is the correct term but) vertical cursor, which can be dragged by the user from one point to point and this event is to trigger the details plot for the corresponding point the user rests at.

I have attached a portion of a screen capture of the summary plot. The orange line in the picture is to be the cursor.

Does anyone have any idea how to do this in telerik charts for WPF? Does anyone know if it is possible?

Thanks a bunch..
 
Dwight
Telerik team
 answered on 26 May 2010
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
323 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
212 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
231 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
84 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
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Bronze
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
Bronze
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?