Telerik Forums
UI for WPF Forum
1 answer
75 views
Hi,

If i create a wpf project using the following xaml definition, i'm able to move the "Soccer" treeviewitem before the "futsal" element. When I start draging my element, i can see the option that allow me to insert the item before the previous element.

        <telerik:RadTreeView x:Name="radTreeView" Grid.Row="2" IsDragDropEnabled="True"
                             IsDropPreviewLineEnabled="True">
            <telerik:RadTreeViewItem Header="Sport Categories">
                <telerik:RadTreeViewItem Header="Football">
                    <telerik:RadTreeViewItem Header="Futsal" />
                    <telerik:RadTreeViewItem Header="Soccer" />
                </telerik:RadTreeViewItem>
            </telerik:RadTreeViewItem>
        </telerik:RadTreeView>

If I take the previous control, and I add it in a word 2010 add-in,the option is not available. It doesn't matter where i put my mouse, the "before" or "option" command never show up. I can only insert item inside other item.

Any Ideas why i'm having this behavior? I will try to attach a sample project showing this behavior.

Best Regards,

P.S. It's seem there an issue ID associate with this problem: 1299 - TreeView: Built-in drag and drop does not work in ElementHost. Have you any workaround to suggest me to solve this behavior? 
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2012
5 answers
168 views
I can't seem to get the hour interval to work the way I expect it to.

If I use either this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval />
</Rad:RadTimeBar.Intervals>

or this:

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1" />
</Rad:RadTimeBar.Intervals>

I am unable to zoom into the 'hourly mode' (see first screenshot).  However 

<Rad:RadTimeBar.Intervals>
	<Rad:MonthInterval />
	<Rad:DayInterval />
	<Rad:HourInterval  IntervalSpans="1,8" />
</Rad:RadTimeBar.Intervals>

allows me to get into the hourly mode but shows the 8 hour interval (which I don't really want). Am I doing something wrong?
The rest of the xaml ( mPlotsGrid is populated with RadLinearSparklines at runtime):
                  <Rad:RadTimeBar Name="mTimeBar"
                                  PeriodStart="{Binding Path=BeginHistory, Mode=TwoWay}"
                                  PeriodEnd="{Binding Path=EndHistory, Mode=TwoWay}"
                                  VisiblePeriodStart="{Binding Path=BeginView, Mode=TwoWay}"
                                  VisiblePeriodEnd="{Binding Path=EndView, Mode=TwoWay}"
                                  SelectionStart="{Binding Path=BeginDetail, Mode=TwoWay}"
                                  SelectionEnd="{Binding Path=EndDetail, Mode=TwoWay}"
                                  IsSnapToIntervalEnabled="True"
                                  MinSelectionRange="00:01:00"
                                  Margin="5">
                     <Rad:RadTimeBar.Intervals>
                        <Rad:MonthInterval />
                        <Rad:WeekInterval />
                        <Rad:DayInterval />
                        <Rad:HourInterval  IntervalSpans="1,8" />
                     </Rad:RadTimeBar.Intervals>
                     <Grid x:Name="mPlotsGrid" />
                  </Rad:RadTimeBar>


Tsvetie
Telerik team
 answered on 06 Nov 2012
1 answer
103 views
I have just downloaded the trial to asses the suitability of the control for an upcoming project.

I am trying to get the load on demand working.
When I try to follow the example the event is fired but on the screen a spinny arrow icon just goes round and round.

Could you please advise.

xaml:

<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>

cs:
private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)

{

 

RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;

 

// Adding child items

 

RadTreeViewItem product = new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

product =

 

new RadTreeViewItem();

product.Header =

 

"Product1.1";

item.Items.Add(product);

}


Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2012
1 answer
109 views
Is there a way to change the CloseButtonContainer.Background or the Background of the PART_Close ToggleButton without overwriting the whole template? We are using the Transparent Theme. I already changed the CalendarStyle and the ClockStyle to a usable Background color. But the Close-Button at the bottom is hardly visible. I don't want to put over 1500 extra lines of Template-Code to my Project. Unfortunately the PART_DropDownButton, CloseButtonContainer and the PART_Close Button itself are not accesible from a simple Style. I tried to set a Ressource to the DateTimePicker overwriting all RadToggleButtonStyles, but as seen in the Template the Part_Close Button uses its own Style and Template.

  <Style TargetType="telerik:RadCalendar" x:Key="CalendarBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadClock" x:Key="ClockBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadDateTimePicker">
    <Setter Property="CalendarStyle" Value="{StaticResource CalendarBackStyle}" />
    <Setter Property="ClockStyle" Value="{StaticResource ClockBackStyle}" />
  </Style>
  
<!--Overwrite Resources, didn't work-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="telerik:RadDropDownButton">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>
 
<!--This works but doesn't help because all borders are styled-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="Border">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>

Is there a simple solution?
Masha
Telerik team
 answered on 06 Nov 2012
1 answer
133 views
Hi Team,

How do we can export the RadRichTextBox content to PDF document with track changes.

Enclosed the sample pdf report image which is generated using office 2007.
Kammen
Telerik team
 answered on 06 Nov 2012
4 answers
110 views
Using RadDocking I am trying to create an MDI-style app with many Windows using RadGridViews to edit data.
Instead of using child Windows I try to dynamically create RadPanes with UserControls  from a Menu:

Dim p As New RadPane
p.Content = New SomeUserControl
paneGroup.AddItem(p, Docking.DockPosition.Center)


When the user tries to close the RadPane and the data is dirty I want to offer a choice "Discard changes?".
With Windows I would use the Closing event for this.
How can I do this with a RadPane?
There seems to be no PreviewClose event for RadPane even though they have a close button. UserControls do not have a Closing event.

Or is there a better way to create an MDI-Stlye UI?
As there is no example, I am not even sure if it is a good idea to create RadPanes with UserControls. One cannot put Windows on Panes, but maybe there is some other Control to host the editing Controls we should use.
Peter
Top achievements
Rank 1
 answered on 06 Nov 2012
5 answers
170 views
Hi 

I am trying to create an Off-line Image Map creator using Radmap, Empty provider (Bing maps would be great but not posible) and kml sources intended for Telerik Reports. 

Using RenderTargetBitmap I tried to generate an image of the control, even if it's just showed for an instant, the problem is that tiles or shapes don't load and get a gray empty image (Only showing scale bar and map controls).
Is there any way to get the tiles or shapes loaded before that?

Any idea is appreciated.
Andrey
Telerik team
 answered on 06 Nov 2012
1 answer
125 views
When I set the MaxHeight property of a GridViewRow to 22, for example, and one of the cells contains longer text with multiple line breaks the text in other cells is no longer visible.

When I remove the MaxHeight property of the GridViewRow the row height is automatically adjusted to fit the height of the cell containing the longer thext with multiple breaks and the text in other cells reapperas but it is vertically centered.

I tried applying a cell style to other cells with VerticalContentAlignment set to Top but the text in other cells still remained hidden.

Also, even though I've set the TextWrapping to NoWrap and TextTrimming to WordEllipsis for the column containing the longer text with line breaks the text in that cell is displayed in two rows.

Is there any way to prevent text in other cells from disappearing when the MaxHeight is set to lower than what one of the cells content height is? If not, I'd say that this is a bug...

UPDATE: Using the cell style with VerticalContentAlignment set to Top actually works but than you have to keep adjusting the padding... is there a better solution?

Here is the attached image of how ugly that looks:
Vera
Telerik team
 answered on 06 Nov 2012
2 answers
163 views
Hello,
  I just added the DiagramNavigationPane to a window that had an existing diagram.  I have set the Diagram property via binding as you showed in the online documentation.  I have noticed when I expand the pane there is no value for my zoom size, the autofit button is disabled and all I see in the thumbnail is a small red dot.  Are there other properties tied to the diagram itself that would affect the navigationpane?

Brent
Petar Mladenov
Telerik team
 answered on 06 Nov 2012
1 answer
141 views
I am using VS 2012 and 4.5 framework to create WPF XBAP project, and WPF RadControls. Problem I have is Page/Window/UserControl doesn't show telerik WPF rad controls. It is not a problem with System.Windows.Controls.

I used 2012.3.1029.40 version for the screenshots. but it is same with Q3 release binaries too.

What I am doing wrong here? Or Is something wrong with my environment or VS 2012? Please help, it is wasting my time a lot. :(
Vlad
Telerik team
 answered on 06 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?