Telerik Forums
UI for WPF Forum
2 answers
202 views
I am trying to emulate Windows general behavior for editing treeview nodes: clicking on an already selected node enters the editing mode.

With RadTreeView (WPF) I can handle the previewMouseDown events, as well as the left and right mouse button preview events of the treeview.
            AddHandler _TV.PreviewMouseDown, AddressOf tv_PreviewMouseDown 


In the event handler i call  begin edit (TV.SelectedContainer.BeginEdit() or myradTreeviewitem.BeginEdit).
        Private Sub tv_PreviewMouseDown(sender As Object, e As MouseButtonEventArgs) 
            Dim s = TryCast(e.OriginalSource, UIElement)             
            If s Is Nothing Then Exit Sub             
                Dim Item = UI.Library.FindVisualParent(Of Telerik.Windows.Controls.RadTreeViewItem)(s)
               If Item Is Nothing Then Exit Sub             
                If Item.IsSelected Then                 
                _TV.SelectedContainer.BeginEdit()
                ' Item.BeginEdit
            End If         
        End Sub

UI.Library.FindVisualParent is a small function that returns the parent of Type T of an element
This code works perfectly with a Righ Mouse click.
It does not work with a Left Mouse Click
In other words, BeginEdit does not work when called on a previewMouseDown if the left button triggered the event.

The PreviewMouseRightButtonDown  works using the same handler.
The PreviewMouseLeftButtonDown works using the same handler.

Is there a reason why this is so. It is important for my application that I can keep windows interface conventions like clicking on the selected Tree Node enters editing mode.

Any help will be appreciated.

Thanks

           


PMoransais
Top achievements
Rank 1
 answered on 05 Mar 2012
2 answers
176 views
When I have a scatter point series where xvalue mapping is a date time and the chart's horizontal axis is a DateTimeContinuousAxis I get nothing plotted.

I can't imagine I'm the only one wanting to plot time series data without using the line series?

Is there a way to use the line series but not draw the lines, but draw the points?  
Sia
Telerik team
 answered on 05 Mar 2012
7 answers
647 views

Dear All,

I want to add RadWindow in WPF Window as a child control like following:
  

<

 

Window x:Class="MDIApplication.Window1"
xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation

 

 

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

 

 

 

xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml

 

 

 

Title="Window1" Height="300" Width="300">

 

 

 

    <Canvas>

 

 

 

        <telerik:RadWindow Width="500" Height="300" BorderBackground="Yellow" BorderThickness="30" BorderBrush="Green" Visibility="Visible" />

 

 

 

    </Canvas>

 

</

 

Window>

Now I want to move this child RadWindow inside the parent WPF Window, Just same as an MDI Child Window inside an MDI Parent Window.

 

 

 

Konstantina
Telerik team
 answered on 05 Mar 2012
1 answer
91 views
From this page: http://www.telerik.com/help/wpf/raddatetimepicker-styling-calendar.html 

It says that if I generate a style, I should get those resources at the bottom (i.e. HeaderBackground).  This never happens.  I get a style, but I can't change the background of the header.  Basically I do not want any of the colors that are defaulted.  I just want to specify new colors overriding ALL that are there.

Has anyone else gotten that to work?
Dani
Telerik team
 answered on 05 Mar 2012
1 answer
181 views
How can I get rid of the date header when grouping by resources in the day view?

See screen shot
Dani
Telerik team
 answered on 05 Mar 2012
1 answer
195 views
Is it possible to show an empty group (group containing no items) in the GridView, f.i. by adding a group from code?
Vlad
Telerik team
 answered on 05 Mar 2012
2 answers
180 views
Hi,

I have a question about the binding to a SQL-Database

The Database-Table looks like this:

Column        value

id                    id
name              name of the node
parentid          id of the parentid (0=root)

how is the best way to fill a RadTreeView from this table with all its nodes?

Thank you for your help and sorry for my bad english

Johann
Top achievements
Rank 1
 answered on 05 Mar 2012
1 answer
232 views
Hi,

I am printing GridView's and TreeListViews using the PrintAndExportWithRadDocumentModel.cs code, which I found on the forum somewhere.


public void Print(object parameter)
     {
         GridViewDataControl grid = (GridViewDataControl)parameter;
         RadRichTextBox rtb = new RadRichTextBox() { Height = 0 };
 
         rtb.Name = "RadRichTextBox1";
 
         Grid parent = grid.ParentOfType<Grid>();
         if (parent != null && parent.FindName(rtb.Name) == null)
         {
             parent.Children.Add(rtb);
             rtb.ApplyTemplate();
         }
 
         rtb.Dispatcher.BeginInvoke((Action)(() =>
         {
             rtb.Document = CreateDocument(grid);
         }));
          
         rtb.Print("MyDocument", Telerik.Windows.Documents.UI.PrintMode.Native);
     }

I need to be able to hide the PrintDialog if required, how do I achieve this using the printing functionality of the RichTextBox. Previously I was using another class  PrintExtensions.cs, but this was not able to print the TreeListView's which I need.

Thanks,

Adam


Vlad
Telerik team
 answered on 05 Mar 2012
1 answer
83 views
The code samples provide a mechanism for saving the file and then subsequently open Excel with the saved file. 

We would like to follow a more standard paradigm with regards to exporting to Excel.  We would like to stream the contents of the grid directly to Excel - similar to some other well know applications (e.g. SSRS).  The saving of the file would then becomes the prerogative of the end-user.

Is there a way to do so?
Vlad
Telerik team
 answered on 05 Mar 2012
8 answers
246 views
I read several posts that stated that you were going to have the PDFViewer for WPF in Q3 SP 1. I just downloaded it and installed it and it is not there. What is the time frame on this?
Vlad
Telerik team
 answered on 05 Mar 2012
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?