Telerik Forums
UI for WPF Forum
2 answers
83 views
I would like to open two different context menus when user righ clicks on GridView Column and GridView Row.
I take a look on samples provided and both sample has only one of the right click enabled either for GridViewRow or GridViewColumn. Please provide guidance on it.
samir
Top achievements
Rank 1
 answered on 19 Aug 2010
5 answers
914 views
Hi,
I just spend the whole day to find out why my RadGridView is not working like I thought it should.
No matter where and how (xaml | c#) I put my GroupDescriptions and AggregateFunctions the GridView always showed a different behaviour and never did what I wanted it to do. Sometimes the grouping failed sometimes the aggregates failed and sometimes it worked after removing and adding the groups multiple times from code-behind. I finally took a telerik sample (http://www.telerik.com/community/forums/wpf/gridview/group-header-with-aggregated-functions.aspx) and changed it to use a DataTable instead of ObservableCollection ==> and suddenly the demo worked as weird as my application. In WPF you always have to bind to the DefaultView(or any other DataView) if you want a working TwoWay-Binding to a DataTable. Because I had no more idea what to try I just bound to the DataTable instead of DataTable.DefaultView ==> and everything started working as expected.

Are DataViews not supported anymore???

Best Regards
Steffen   
Steffen
Top achievements
Rank 1
Veteran
 answered on 19 Aug 2010
2 answers
96 views
Hi All
I have a listbox and a pie chart and you can drag from the listbox to the chart to populate it with some default values.

The scenario I am trying to actually implement is this: When the user clicks on a pie segment, a popup/new window (ideally I would like to use a DialogWindow so once the user clicks on a segment, they will be forced to edit or cancel their edit) opens up and allows the user to change the underlying data of the segment. At the same time, if the user clicks and drags the pie segment, it is removed from the chart.

I am handling all the drag and drop and the ItemClick event. The problem is that ItemClick is fired when the mouse button is pressed, NOT when it is released - that is, it responds to MouseDown rather than MouseClick. Therefore I cannot implement this scenario because as soon as the user clicks, the popup is shown and they are unable to perform any drag and drop.

In short, I would like to click and edit or click and drag. I also tried using the MouseUp event, but this is fired all over the RadChart. I want this to only happen when the user clicks on just a pie segment and so far I cannot seem to find a working solution.

Is there anyway to get around this limitation. This functionality is a requirement for us, but so far we don't seem to have a clean solution for the problem. Hope the Telerik team can give us some ideas.

Thank you very much. We are using 2010 Q1SP2 and 2010Q2Beta.
Sparky
Top achievements
Rank 1
 answered on 19 Aug 2010
1 answer
168 views
I have one ContextMenu which is displayed on multiple docking panels.
But not all menuitems should be enabled on all windows
So how to disable some items when the ContextMenu is shown.

Suppose RadPane1 and radPane2 are displaying contextMenu, so how to disable item1 on menu if RadPenl1 is right clicked
and disable item2 on menu if Radpane2 is right clicked.
Kaloyan
Telerik team
 answered on 19 Aug 2010
1 answer
124 views
I have a context menu as Window.Resource with x:Shared set to true.
Now I have two Rad Panes whose context menu is set to this resource.
When I right click on the pane and if only one of the two panes is open the ContextMenu does not display.
only when both panes are open the contextmenu is shown.
Is this is a bug?
Kaloyan
Telerik team
 answered on 19 Aug 2010
2 answers
538 views
Hello,

How could I change the default colour when a mouse moves over a treeview item? Also, how could I change the default colour when a treeview item is selected?

Thanks.
wpfdev
Top achievements
Rank 1
 answered on 19 Aug 2010
3 answers
146 views
Hi
I am trying to style the default labels for the Pie Series definition. I used the style given in the documentation (http://www.telerik.com/help/wpf/radchart-styling-and-appearance-styling-item-labels.html) but the style is never applied. I tried several approaches, such as setting the ItemLabelStyle's Style property to x:Null in xaml, in code behind, then re-apply the style both in the initialized and loaded code sections. The system correctly finds the style and its collections of setters etc, but it just does not seem to get applied. I can format the label, but I cannot style it.

The final goal is to template the label with a textbox and a button, and when the user clicks each segment, the textbox is populated with the dataitem of that pie piece, and the user can change the values, click the button and update the segment.

We are going into UAT this week, and this is a major part of our functionality. We would really like to have this functionality as part of our release, so any help in the matter will be deeply appreciated. We are working both with the Q1 sp2 and the Q2 Beta releases.
Thank you so much and keep up the good work with the cool controls.
Yavor
Telerik team
 answered on 19 Aug 2010
4 answers
498 views
Hello,
We are currently evaluating WPF controls for use in our applications.
Currently, we use plain WPF Datagrid with a lot of converters for string representation (non-edit mode) and parsing (edit mode).
We would like to re-use them when it is possible, but we have problems: despite what I read in the documentation, the following code

<telerik:GridViewDataColumn.CellEditTemplate>
                    <DataTemplate>
                            <TextBox Text="{Binding Path=., Mode=TwoWay, Converter={StaticResource NamespaceConverter}}" />
                    </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>

fails to call ConvertBack on our converter, calling instead a RadGridView internal functions and giving an ArgumentNullException (Parameter name: conversionType) in Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewCell.TryConvertValueFromEditor


The equivalent WPF code

<DataGridTemplateColumn.CellEditingTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding Path=., Mode=TwoWay, Converter={StaticResource NamespaceConverter}}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellEditingTemplate>

works without errors.
Are we doing something wrong? How do you use converters in a grid?
Thanks,
Lorenzo

Tommaso
Top achievements
Rank 1
 answered on 18 Aug 2010
3 answers
49 views
Hi,

I am looking for an event which displays the a new panel when there is a mouse move on the expanded treeviewitem.

Thanks,
Zalak
Hristo
Telerik team
 answered on 18 Aug 2010
3 answers
171 views
Hello, I'm just wondering if there's a way to access the animation that happens when IsLoadOnDemandEnabled is set to true. The thing is that I found out that is not possible to use the IsLoadOnDemand functionality when binding the RadTreeViewItems through the RadTreeView ItemsSource property, so I'm wondering if there's another way to show said animation. Ideally it would be through binding something like:

<Style TargetType="{x:Type telerik:RadTreeViewItem}">
    <Setter Property="ShowLoadingAnimation" Value="{Binding IsLoading}" />
</Style>

Doing it this way, I wouldn't have to do anything in the code, and also would make all the RadTreeViewItems bind the IsLoading property to whatever they use to show the animation.

If it's not possible that way, let me know which other alternatives do I have. 

And just so we're clear, this is the animation I'm talking about:

http://www.screencast.com/users/CarloToribio/folders/Jing/media/28659147-3a7c-4cbe-afab-e1555e0c6f4a

Thanks!
Hristo
Telerik team
 answered on 18 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?