Telerik Forums
UI for WPF Forum
1 answer
119 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
101 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
937 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
222 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
311 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
259 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
132 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
138 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
7 answers
204 views
Hi,

I have a RadGridView as shown in the below code

 

<telerik:RadGridView Name="radGV_Library" AutoGenerateColumns="False"  ItemsSource="{Binding ListOfLibraryObjects}" ShowGroupPanel="False" SelectionChanged="radGV_Library_SelectionChanged" CanUserSortColumns="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False">
    <telerik:RadGridView.Columns>
        <!--<telerik:GridViewSelectColumn/>-->
        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsFilterable="False" >
        <telerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description}" IsFilterable="False"  IsReadOnly="True"/>
        <telerik:GridViewDataColumn Header="Is Master" DataMemberBinding="{Binding IsMaster}" IsFilterable="False"  IsReadOnly="True" />
        <telerik:GridViewDataColumn Header="Object ID" DataMemberBinding="{Binding ObjectID}" IsFilterable="False"  IsReadOnly="True"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

 

 
The GridView is in a user control and the data context is passed to the user control it as below
 

public void RefreshDataContext(VOC.Models.TheGameScreenM _theGSM) 
    this.DataContext = null; 
    this.DataContext = _theGSM; 
}

 
The GridView loads and refreshes with no problem. But I cannot edit the first column (the name column, which is string data). When the cell gets into edit mode, only the "space" and "back space" works. No other keys on the keyboard works to update the cell content. But however, the paste from right-click context menu works. So if I copy a text from somewhere and paste it in the cell, then that works.

I have tried
1. Mode = TwoWay
2. DataType = "{x:Type sys:String}"

nothing works!

Why is that?

Robin
Top achievements
Rank 1
 answered on 13 Jun 2016
5 answers
55 views

I have some Text as part of my Diagram Shapes but text values some times get rasterized and loose their clearances and their qualities.

 

Is there anyway to resolve this issue ?

Bruno
Top achievements
Rank 1
 answered on 13 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?