Telerik Forums
UI for WPF Forum
3 answers
124 views

Hi,

Lets's say I have a TreeListView as such:

Group #1

     Item 1-1

     Item 1-2

Group #2

     Item 2-1

     Item 2-2

 

I need the user to be able to select one or both items under a Group - but NOT the group itself (there's reasons for it, that I don't need to get into).

How would I do that ?

 

Barry

Barry
Top achievements
Rank 1
 answered on 16 Jun 2016
7 answers
198 views
When I select a node in my diagram, I can see the selection border on top of all nodes. The selected node, however, remains below any nodes placed above it. I want selected nodes to be brought forward. How can this be accomplished?

Thanks

Update
I tried this playing with the SelectionChanged event, but I can't figure out how to use it:

private void diagram_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    if (e.AddedItems.Count > 0)
    {
        if (e.AddedItems[0] is MyNode)
        {
            // new List<IDiagramItem> { ??? };
            // this.diagram.BringToFront(e.AddedItems); // Shape??
        }
    }
}

Update 2
I also tried the following, but it doesn't work at first. After playing a bit with the nodes, it seems to start working. I believe I have to scroll/zoom a bit first? Looks like a bug to me.

DiagramCommands.BringToFront.Execute(null, this.diagram);
Petar Mladenov
Telerik team
 answered on 16 Jun 2016
1 answer
122 views

I am adding image to the radtreeviewitem from resources programatically using the below code.

"/myAssembley;component/Resources/image1.png"

and the image is displaying successfully. Now i need to add another  image which needs to be displayed next to the first image in the radtreeviewitem.

Is it possible..???If so how to achieve it.?

 

Like the below attached image i need my treeviewitem to display a folder icon and a red square icon in a single treeview item.[

Martin Ivanov
Telerik team
 answered on 16 Jun 2016
1 answer
110 views

I am having a treeview in a usercontrol and am trying to bind the node image .But it only works if i gave the entire full path of the image. Finally i found out if a treeview is inside an usercontrol relative paths wont work. So how can i assign am image to a node which was inside the user control..??/

 

DefaultImageSrc="/MyOtherProject;component/Images/File.png".

the above will work for usercontrol they have mentioned. Can it be explained ..? whats MyOtherProject,component etc.

Note:

My usercontrol was in the same project in which i work.My solution name is TreeView_WPF_Customized and the image was inside the Resources  folder.

How to display the image my scenario..??

Martin Ivanov
Telerik team
 answered on 16 Jun 2016
6 answers
952 views

Hi am adding new tree view items in a rad treeview programatically like below

RadTreeViewItem itm = new RadTreeViewItem();
itm.Header = "Demo";
itm.DefaultImageSrc = "/Resources/8.png";

but the image is not visible in the treeview .It only displays if i gave the full path of my solution .But its not possible for real time.I need to map the images from the resources folder of my project .How to achieve it..??

 

Thanks 

Arshad

Martin Ivanov
Telerik team
 answered on 15 Jun 2016
1 answer
228 views

Hallo everyone,

how about a Property for the DateTimePicker that can switch on(true) / off (false) for writing in null values. In my case, I don't/can't set the InputField to disable but the user should not be allowed to set the date to null. It would be awesome if the Picker sets its own value automatically to the last valid value by loosing the focus. if there is in the beginning no value in the field its automatically set to the date of today.

 

I mean something like the winforms feature:

datePicker.NullDate = ...

Yana
Telerik team
 answered on 15 Jun 2016
5 answers
323 views
Hi

All - I have the need to display PDF, TIFF, and JPG in a WPF app.  I do not know ahead of time which file type the client will choose to display.  Will the Telerik PDF Viewer or Image Editor components help?  If not, which?  I don't need advanced capability, just to display the image, although zoom would be nice.

Thanks
Mark
Petya
Telerik team
 answered on 15 Jun 2016
4 answers
270 views
Hi,
I have learned about DragAndDrop from some samples and throughout the forum. But I am having issue for the issue below.

Basically, I am trying to create my own DragAndDropProvider, and tried to created my own DragVisual during DragAndDrop events. And I find the best visual for DragAndDrop is the Separator visual effect from built-in support. So I set the default property "IsDragDropEnabled = True" in my RadTreeView, but it seems if I do so, my DragAndDropProvider won't trigger anymore.

  

The XAML code looks like this:

        <telerik:RadTreeView x:Name="ReportTreeView"
                             Grid.Row="1"
                             IsEditable="True"
                             ItemsSource="{Binding Pages}"
                             ItemDoubleClick="ReportTreeView_OnItemDoubleClick"
                             Selected="ReportTreeView_OnSelected"
                             ItemContainerStyle="{StaticResource PageStyle}"
                             IsDragDropEnabled="True"
                             uxHelpers:PageDragAndDropProvider.IsEnabled ="True">

 

What should I do to benefit from both the customized DragAndDropProvider and built-in DragDrop Separator?

 

Thanks,

Mingxue.

Mingxue
Top achievements
Rank 1
 answered on 14 Jun 2016
2 answers
135 views

Hi,

I am using RadTreeView and trying to support DragDrop behavior in it. At the moment, I am writing my own DragDropProvider. I want to provide options when user release/drop, so that they can choose Copy/Move/Cancel etc.

Is there any resources to help me achieve that?

 

Many thanks,

Mingxue

 

Mingxue
Top achievements
Rank 1
 answered on 14 Jun 2016
1 answer
143 views

Please see the StackOverflow post here:

http://stackoverflow.com/questions/37794073/filtering-a-combobox-with-a-groupstyle

Bryan
Top achievements
Rank 1
 answered on 13 Jun 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?