Telerik Forums
UI for WPF Forum
2 answers
580 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
154 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
556 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
63 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
191 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
1 answer
90 views
I'd like my pie charts to display the percentage of the pie as the label, and the actual number as the tooltip. Unfortunately, i can't seem to figure out how to get the percentage into the label. #STPERCENT just seems to return the YValue.
Giuseppe
Telerik team
 answered on 18 Aug 2010
1 answer
98 views
Using the latest 2010.2.812.35. When using RadDatePicker setting these to false it doesn't work.

AreWeekNamesVisible

 or

AreWeekNumbersVisible

Also setting the HeaderContent on the TimePicker control doesn't work. SelectedTimeChanged event also never seems to fire.

Something I'm doing wrong or broken? Seemed to work in the previous build we were using..

George
Telerik team
 answered on 18 Aug 2010
3 answers
132 views
How can I change the edge/corner rounding in a 3D Pie chart?
Giuseppe
Telerik team
 answered on 18 Aug 2010
1 answer
306 views

Hello everyone!

I'm using RadOutlookBar as a region in my Prism application. RadOutlookBarItems are being dynamically loaded to that region as its views. All RadOutlookBarItems are the same:

<telerikNavigation:RadOutlookBarItem x:Name="outlookBarItem">
<telerikNavigation:RadTreeView Name="NavigaionTree" SelectionMode="Single" ItemTemplate="{StaticResource Section}"
ItemsSource="{Binding Path=AppNavigationItems}" 
SelectedItem="{Binding Mode=TwoWay, Path=CurrentAppNavigationItem}"
MouseDoubleClick="NavigaionItemDoubleClick"
MouseDown="NavigaionItemMouseDown"
IsSingleExpandPath="True" 
IsExpandOnSingleClickEnabled="True" 
IsExpandOnDblClickEnabled="False"
IsLineEnabled="True">
<telerikNavigation:RadContextMenu.ContextMenu>
<telerikNavigation:RadContextMenu Name="contextMenu">
<telerikNavigation:RadMenuItem Header="Развернуть" Name="ExpandButton" Click="ExpandButtonClick"/>
<telerikNavigation:RadMenuItem Header="Свернуть" Name="ReduceButton" Click="ReduceButtonClick"/>
<telerikNavigation:RadMenuItem Header="Открыть" Name="NewTabButton" Click="NewTabButtonClick"/>
<telerikNavigation:RadMenuItem Header="Открыть Ð² Ñ„оновой Ð²ÐºÐ»Ð°Ð´ÐºÐµ" Name="ShadowTabButton" Click="ShadowTabButtonClick"/>
</telerikNavigation:RadContextMenu>
</telerikNavigation:RadContextMenu.ContextMenu>
<telerikNavigation:RadTreeView.Background>
<SolidColorBrush Color="White"/>
</telerikNavigation:RadTreeView.Background>
</telerikNavigation:RadTreeView>
</telerikNavigation:RadOutlookBarItem>

During runtime I want to manipulte with RadMenuItms in every view:

private void NavigaionItemMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (sender is RadTreeViewItem)
            {
                var treeViewitem = sender as RadTreeViewItem;
                treeViewitem.IsSelected = true;
                e.Handled = true;
                if (treeViewitem.HasItems)
                {
                    this.NewTabButton.Visibility = Visibility.Collapsed;
                    this.ShadowTabButton.Visibility = Visibility.Collapsed;
                    this.ExpandButton.Visibility = Visibility.Visible;
                    this.ReduceButton.Visibility = Visibility.Visible;
                    this.ExpandButton.IsEnabled = !treeViewitem.IsExpanded;
                    this.ReduceButton.IsEnabled = treeViewitem.IsExpanded;
                }
                else
                {
                    this.ExpandButton.Visibility = Visibility.Collapsed;
                    this.ReduceButton.Visibility = Visibility.Collapsed;
                    this.NewTabButton.Visibility = Visibility.Visible;
                    this.ShadowTabButton.Visibility = Visibility.Visible;
                }
            }
        }


public AppNavigationView()
        {
            InitializeComponent();

            EventManager.RegisterClassHandler(typeof(RadTreeViewItem),
                MouseRightButtonDownEvent, new MouseButtonEventHandler(NavigaionItemMouseDown), false);
        }

But unfortunately my logic works well only in the first RadOutlookBarItem. It also works for every other
RadOutlookBarItem, but the result PopUp still consists of 4 items.
Please help me solve this "miracle".
Thank you in advance.
Miro Miroslavov
Telerik team
 answered on 18 Aug 2010
1 answer
119 views
How to set size of radpane when the pane is set to floating from docked pane?
Konstantina
Telerik team
 answered on 18 Aug 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
FileDialogs
Book
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?