Telerik Forums
UI for WPF Forum
1 answer
37 views
Is it possible to apply IsEnable="False" on the radtreeviewitem but not on their children ?

By default, it's applied on their children also.

Thanks,
Petar Mladenov
Telerik team
 answered on 13 Apr 2011
1 answer
152 views
Hello.

I'm adding an image to my treeview using the "DefaultImagesSrc" property and the ImagesBaseDir property. The image displays, but significantly smaller than it should. I tried setting the height and width properties for the radtreeviewitem to be the size of the image but that didn't work. When I drop an image control onto the xaml and set it to the same image, it displays in the proper size. What am I doing wrong?

<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="12,32,0,0" Name="tvDirectories" VerticalAlignment="Top" Width="364" ItemsSource="{Binding ElementName=radTreeView1, Path=Background}" ImagesBaseDir="/UploadDocFromPDFWPF;component/Images/" ItemPrepared="radTreeView_ItemPrepared">
    <telerik:RadTreeViewItem DefaultImageSrc="mycomputer.png"></telerik:RadTreeViewItem>
</telerik:RadTreeView>

Again, if I create a standard image control and use the same image it displays using the proper size.
Petar Mladenov
Telerik team
 answered on 13 Apr 2011
1 answer
222 views
Hello,

I'd like to have a few questions about RadTileView WPF control:

  1. I need to change the size (height) of RadTileViewItem. Setting height works fine, but the area provided by owner RadTileView remains unchanged. Is there any way to change this area's size?
  2. The mouse scroll wheel doesn't work with RadTileView placed in ScrollViewer. I haven't found any suitable property to fix this, is there one?
  3. When I have RadTileView placed in ScrollViewer, I scroll down little bit, click any focusable control contained in a child RadTileViewItem, and then it scrolls itself the top of the RadTileView. (In other words, when any control on RadTileViewItem gets focus, it automaticaly scrolls up to RadTileView's top border). Is there any way to change this behaviour?

Thanks for every answer.

Viktor
Zarko
Telerik team
 answered on 13 Apr 2011
2 answers
145 views
Hello, I have a RadTileView and wondered how to change the DataTemplate for the RadTilveView.ItemTemplate (header) based on the state or configuration of the RadTileView?

Example:
<!-- TileView.HeaderTemplate -->
<DataTemplate x:Key="MinimizedHeaderTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding PatientName}" Width="125" Margin="14,0,0,0" />
    </StackPanel>
</DataTemplate>
  
<DataTemplate x:Key="MaximizedHeaderTemplate">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding PatientName}" Width="125" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Age}" Width="30" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Protocol}" Width="100" Margin="14,0,0,0" />
        <TextBlock Text="{Binding Actions}" Width="65" Margin="14,0,0,0" />
        <TextBlock Text="{Binding RegTime}" Width="75" Margin="14,0,0,0" />
    </StackPanel>
</DataTemplate>

Is there something I can bind the ItemTemplate to to evaluate the state of the currently selected item?
Tina Stancheva
Telerik team
 answered on 13 Apr 2011
1 answer
195 views
Hi,
I'm having a couple of problems with my touchscreen inputs.

First of all, carousel doesn't understand single touch as a mouse left button down. i can select an item with mouse but i can't do that by touching the item. I can't find the right event to handle.

Secondly, I'm trying to scroll carousel with touchscreen inputs. As you can see it in my code, there is a ScrollViewer and its isManupulationEnabled = true.

  <ScrollViewer Name="scrollGallery" Grid.Row="3"  VerticalAlignment="Top" Height="289" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Visible" CanContentScroll="True" IsManipulationEnabled="True" ManipulationDelta="ScrollViewer_ManipulationDelta" ManipulationStarting="ScrollViewer_ManipulationStarting">
  <telerik:RadCarouselPanel   IsOpacityEnabled="True" IsScalingEnabled="True" IsSkewAngleYEnabled="True"   HorizontalAlignment="Left"   Height="289" Name="radCarousel"    Background="{x:Null}" Width="1013">
  </telerik:RadCarouselPanel>
</ScrollViewer>

However, it's scrolling too fast with the code below:
private void ScrollViewer_ManipulationDelta(object sender, ManipulationDeltaEventArgs e)
       {
        
               scrollGallery.ScrollToHorizontalOffset(scrollGallery.HorizontalOffset - (e.DeltaManipulation.Translation.X * 0.000001));
 
           if (e.IsInertial)
           {
               e.Complete();
           }          
           e.Handled = true;
 
            
       }
 
       private void ScrollViewer_ManipulationStarting(object sender, ManipulationStartingEventArgs e)
       {
           e.ManipulationContainer = this;
           e.Handled = true;
       }

Even i multiply e.DeltaManipulation.Translation.X with 0.000001, its still too fast and not smooth

I have tried RadCarousel(not panel) before this but no success with it too.

I have also tried radCarousel.LineLeft() and LineRight() methods but got the same effect.

How can i scroll it smoothly? How can i handle touch inputs as left mouse button down?

Thanks
Gokay
Maya
Telerik team
 answered on 13 Apr 2011
1 answer
104 views
Hi, i have a raddropdownbutton with content a Treeview.
I am able to customize the styles in the various states,
but not found a way to customize the status of the button when the dropdown is open.
How can I do?

Regards


Tina Stancheva
Telerik team
 answered on 13 Apr 2011
3 answers
129 views
I'm doing a candlestick chart and the dates are overlapping when I do a short range (say a week). I'd like to rotate the labels 90 degrees. And because the date ranges are dynamic, I'd like the x axis to adapt so that it shows appropriate intervals, depending on the date range. unfortunately, I can't seem to do anything with the x axis. Example:

<telerik:ChartDefaultView>
    <telerik:ChartDefaultView.ChartArea>
        <telerik:ChartArea>
            <telerik:ChartArea.AxisX>
                <telerik:AxisX LayoutMode="Between" IsDateTime="True" LabelRotationAngle="90" StepLabelLevelHeight="40" />
            </telerik:ChartArea.AxisX> 
        </telerik:ChartArea>
    </telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>

The label does not rotate.

I'd try to set this stuff in the designer, but whenever I make changes to the X Axis in the designer, it crashes the designer.
Missing User
 answered on 13 Apr 2011
2 answers
56 views
How can I do to change the components of Telerik denominated in french.
Hamza
Top achievements
Rank 1
 answered on 13 Apr 2011
11 answers
185 views
Hello,
I'm pretty new to this so bare with me.

I'm able to databind my XML source to the tileview inside a grid. I can populate the contentTemplate with the right binding. The header populates the whole string..It works in a Listbox,Expanders, and treeviews etc,but I can't get this work.  Any thoughts?
<Grid Height="376" Canvas.Left="60.637" Canvas.Top="119" Width="248" DataContext="{Binding Source={StaticResource Contact}}">
    <telerikNavigation:RadTileView ItemsSource="{Binding}" MinimizedColumnWidth="100"  Margin="0,-38,-543.363,-132.5" HorizontalAlignment="Right" Width="622.363">
        <telerikNavigation:RadTileView.ContentTemplate>
              
            <DataTemplate x:Name="TileDAta">
                <TextBlock x:Name="reText2" FontSize="18" Foreground="Black" Text="{Binding XPath=ContactName}"/>
            </DataTemplate>
        </telerikNavigation:RadTileView.ContentTemplate>
      
    </telerikNavigation:RadTileView>
</Grid>
Zarko
Telerik team
 answered on 13 Apr 2011
1 answer
82 views
Hello,

I am using ScheduleView for one of my projects. I want to reduce/Add some of the controls in Recurrence dialog window. There is a way to edit the Recurrence dialog window style of it in Scheduler. How to do the same in Scheduleview? If I follow the same procedure, I am not getting any stryle change.

Please Do help.
Thanks in advance,
Dheena
Konstantina
Telerik team
 answered on 13 Apr 2011
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?