Telerik Forums
UI for WPF Forum
1 answer
351 views
I have a model class, Folder:

public class Folder
{
    public string Name { get; set; }
    public ObservableCollection<Folder> SubFolders { get; set; }
}

This is exposed to the UI via a view model, the the folder structure is displayed in a RadTreeView using a hierarchical data template and all is well.

I am adding a context menu to each Folder in the tree view, one of the options on the menu is "Rename". When this is clicked, I want the relevant RadTreeViewItem to go into edit mode.

I can add an "IsInEditMode" flag to the Folder, that's not a problem. The Command on the menu item is bound to the command on the view model, and I can get hold of the relevant Folder using a command parameter, that's not a problem.

But how to I set the IsEditable on the hierarchical data template? And how do I bind the IsInEditMode of the TreeViewItem to that of the Folder? Here is my current XAML (which shows a few other things, like a similar structure with the Tag objects:

<telerik:RadTreeView DockPanel.Dock="Top">
    <telerik:RadTreeViewItem Header="My Folders" ItemsSource="{Binding Folders}">
        <telerik:RadTreeViewItem.ItemTemplate>
            <HierarchicalDataTemplate ItemsSource="{Binding SubFolders}" DataType="{x:Type Model:Folder}">                                   
                <TextBlock Text="{Binding Name}" />
            </HierarchicalDataTemplate>
        </telerik:RadTreeViewItem.ItemTemplate>
    </telerik:RadTreeViewItem>
</telerik:RadTreeView>
 
<telerik:RadTreeView DockPanel.Dock="Top">
    <telerik:RadTreeViewItem Header="My Tags" ItemsSource="{Binding Tags}">
        <telerik:RadTreeViewItem.ItemTemplate>
            <HierarchicalDataTemplate ItemsSource="{Binding SubTags}" DataType="{x:Type Model:Tag}">
                <TextBlock Text="{Binding Name}" >
                <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Rename" Command="{StaticResource renameTagCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=DataContext}"/>
                    <telerik:RadMenuItem Header="Delete Tag"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
                </TextBlock>
            </HierarchicalDataTemplate>
        </telerik:RadTreeViewItem.ItemTemplate>
    </telerik:RadTreeViewItem>

Open to other suggestions. Cheers.
Petar Mladenov
Telerik team
 answered on 15 Dec 2011
1 answer
122 views
I'm using RadChart 2011 Q3. I have a chart with two lines series on it. I would like to add two separate grid lines and shade the area in between. I know how to add the grid lines. But I don't know how (or if it's possible) to shade the entire area between the two grid lines.

Thank you!
Sia
Telerik team
 answered on 15 Dec 2011
1 answer
84 views
Hello,

as stated in this article (http://www.telerik.com/help/wpf/radscheduleview-migration-from-radscheduler.html) the old radscheduler had an property called "AppointmentEditAction" in the AppointmentEditingEventArgs where you could get the type of edit action such as edit, drag or resize. This property is not present in RadScheduleView. However i subscribed to the appointment editing event and i need to act differently on it regarding the edit action such as edit, drag or resize. Is there a way on how i can get the information of what type the edit event is?

thanks in advance

best regards

Matthias
Yana
Telerik team
 answered on 15 Dec 2011
4 answers
132 views
Does anyone have any articles or example code were drag drop functionality has been implemented between a surfacelistbox and radscheduleview in WPF? Thanks a lot.
Daniel
Top achievements
Rank 1
 answered on 15 Dec 2011
1 answer
188 views
Is there an easy way to change the icon on the TimePicker control?  I looked and couldn't find a quick property to set (e.g. IconPath="MyImage.png" or something).
Dani
Telerik team
 answered on 15 Dec 2011
2 answers
175 views
Hi there
I would like to display individual context menus based on whether the user right-clicks an appointment, and empty area, or an empty area between two appointments. What's the best way to accomplish this?

Thanks for your advice
Philipp
Philipp
Top achievements
Rank 1
 answered on 15 Dec 2011
1 answer
86 views
Hi, I noticed that when I add a sort descriptor in my xaml, the group order (not the rows in the group) is reversed. What's going on here? Here's the markup:

                      <telerik:RadGridView.GroupDescriptors>
                        <data:GroupDescriptor Member="Checked" />
                    </telerik:RadGridView.GroupDescriptors>
                    <telerik:RadGridView.SortDescriptors>
                        <data:SortDescriptor Member="Name"/>
                    </telerik:RadGridView.SortDescriptors>
Twistur
Top achievements
Rank 1
 answered on 15 Dec 2011
5 answers
291 views
Hello!
I've got a problem installing telerik ui controls. I've spent my whole day searching for the reason of the problem, but found nothing.
I have downloaded the latest telerik installer (.exe) and tried to install wpf ui controls (I've also tried to install Silverlight controls and had the same result).
After waiting for ~ half an hour after starting the installation process, the window shows "Oops, it seems we've hit an installation problem".
I don't know what to do now.

My machine is running Win7, VS 2010 SP1.
I've tried to start the installer in admin mode, nothing changed.

If I could see the logs, at least.... But I don't know where I can find them and I don't know if they are being created at all (I've read about logging the setup process, but I'm using an .exe, not an msi installer - I can't find where to download the .msi from)

Anyway, I need to get it working as soon as possible...
So, do you have any ideas?

PS.The interesting is: first, the folder "c:\program files\telerik" is being created and some files and folders are written there, 
and later, through the installation process, the telerik folder gets deleted (seems like the installer is restoring everything).
And after that, the error is shown (see attached file).

Thanks in advance
Teodor
Telerik team
 answered on 14 Dec 2011
4 answers
152 views
On a form with multiple grids, it's not possible to tell which grid has focus.  The grid selected row color is always the same, whether or not the control has focus.

This presents a problem in the case where you have a ribbon bar with a single "Delete" option that operates on the grid in focus.  The user has no way of knowing which grid will handle the delete operation.

The behavior should be similar to the tree control, where the selected item color changes when the tree loses focus.

Is there a setting or a workaround to change this behavior?

Thanks,
-Jeff


Jeff
Top achievements
Rank 1
 answered on 14 Dec 2011
3 answers
237 views
In my project, I need to insert a InlineUIContainer which includes a TextBlock into the RadRichTextBox, after the insertion, how to keep the InlineUIContainer and other plain text the same height? Thanks.
Mike
Telerik team
 answered on 14 Dec 2011
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?