Telerik Forums
UI for WPF Forum
2 answers
241 views
Hi,

In my WPF Application i used telerick controls.
I used Rad Menu control.
Whenever mouse over the menu item effect is coming to both menu item and separator.
My requirement is remove mouseover effect to separator.
Can any one guide me in that?

Thanks,
Ramki
Rosen Vladimirov
Telerik team
 answered on 25 Sep 2012
2 answers
91 views
Hi,
I've just updated the dll's (Version 2012.2.912.40) and I am having problems when trying to set themes via =>
telerik:Theming.Theme="Windows7"

What how can I accomplish this functionality in the new version ?

Thanks in advance
Krissi

Sia
Telerik team
 answered on 25 Sep 2012
5 answers
273 views
Hi, How could I hide the button near RadTabItem on RadTabControl? See atache please.
Thanks
Tina Stancheva
Telerik team
 answered on 25 Sep 2012
1 answer
127 views
Greetings,
i have the following problem:

for my domain model i have a base abstract class that override the equals and gethash code. I made this cause i work with NHibernate with differents unit of works, so i open and close session very often. At the bottom of topic you can find the class.

I found some problems using an observable collection that use the class inherited from ModelBase.
The problem arises when i use the ShowInsertRow on the gridview.
1. If i start adding a new row, if i cancel the process -> cannot see the added row, but it is in the observable collection and if i reorder the gridview i can see it.
2. For each row created (like that i would canceled in point 1, or just cause i had committed it) i cannot delete it.

Do you have any suggestion?

If i take on account to start use your orm, how is the best practice to manage this? does it need to override?

Thx in advance
Mauro

P.s.: sorry for my poor english, tell me if something is not clear

 public abstract class ModelBase<TPKey> : dlcts.IModelBase<TPKey>, INotifyPropertyChanged {
   ///EDIT: eliminated wrong comment, Id is the PrimaryKey of the entity in the database
    public virtual TPKey Id { get; set; }
    /// <summary>
    /// Return if the implementation of the PrimaryKey is not equals the default of its type
    /// </summary>
    public virtual bool IsPersisted { get { return !Id.Equals(default(TPKey)); } }

    ... omitted code

    #region Equals-HashCode
    /// <summary>
    /// Check the equality of the PrimaryKey of 2 objects (if they are of the same type)
    /// </summary>
    /// <param name="obj"></param>
    /// <returns></returns>
    public override bool Equals(object obj) {
      //with this line it is all ok
      return base.Equals(obj);
       //with these 4 lines i have the problems
       ModelBase<TPKey> other = obj as ModelBase<TPKey>;
       if (other == null) return false;
       if (this.Id.Equals(default(TPKey)) || other.Id.Equals(default(TPKey))) return false;
       return this.Id.Equals(other.Id);
    }
    /// <summary>
    /// Return the HashCode of the primary key
    /// </summary>
    /// <returns></returns>
    public override int GetHashCode() {
      //with this line it is all ok 
      return base.GetHashCode(); 
      //with this line i have the problem
      return this.Id.GetHashCode();
       
    }
    #endregion
}

Mauro
Top achievements
Rank 1
 answered on 25 Sep 2012
9 answers
484 views
Hi!

Following scenario:
I have a grid with a GridViewComboBoxColumn. The ItemsSource is a list of items, which shall only be selectable once. Therefore I am adapting the list of items, according to the edited row and hide all already selected items dynamically. This means, after all items have been selected, the list of items will be empty.

Now comes the problem:
When I enter edit mode in a row, all other rows in the column become emtpy. The grid just does not show the right thing. I guess this behavior results from the fact, that the list of items does not contain the actual items anymore...

I could work around this problem, by defining a CellTemplate, which explicitly binds to the Name of the item .

<telerik:GridViewComboBoxColumn.CellTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding Name}" />
    </DataTemplate>
</telerik:GridViewComboBoxColumn.CellTemplate>


I have created this thread to understand WHY... and to ask if there is a better why to achieve a dynamic ItemsSource list.

Thanks and regards,

Franziska


Burim
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
132 views
Do i have the ability to change the duration of bars within the RadTimeline
example
 lengthen or shorten duration
move bar to a different time while maintaining its duration.

Very much like you can do with the Gantt Chart
Tsvetie
Telerik team
 answered on 25 Sep 2012
2 answers
279 views
Hi,

In my application I've needed grouped items in the listbox. But grouping is not supported. So I've added my own grouping by using a DataTemplate and a Style for the ListBoxItems. My intention was to have Headers above items and the headers should not be clickable. So I have added a property "IsHeader" typeof boolean to my ViewModel and used it in the style declaration.

Here is the xaml declaration:

<DataTemplate x:Key="listItemTemplate">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="34" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <ContentControl Grid.Column="0" Template="{Binding Symbol}" Height="20" Width="20" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="3,0,3,3" />
        <TextBlock Grid.Column="1" Text="{Binding DisplayName}" Style="{StaticResource BasicFontStyle}" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0,0,0,3" />
    </Grid>
</DataTemplate>
<Style TargetType="telerik:RadListBoxItem">
    <Style.Triggers>
        <DataTrigger Binding="{Binding Path=IsGroupHeader}" Value="True">
            <Setter Property="IsEnabled" Value="false"/>
        </DataTrigger>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition />
                                <RowDefinition Height="5" />
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Style="{StaticResource TitleFontStyle}" Text="{Binding DisplayName}" HorizontalAlignment="Stretch" IsEnabled="True"  />
                            <Separator Grid.Row="1" Template="{StaticResource GeneralSeparatorTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Center" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>                           
            </Setter>
        </Trigger>
    </Style.Triggers>
</Style>
 
As you see, in the style I have added a DataTrigger and bound it to the "IsHeader" property. If IsHeader is true, the setter sets the IsEnabled property of the item to false.
When running the application the Items with IsHeader=true are diabled and gray out. So to have no gray out in the style I have added a second trigger that triggers the IsEnabled property of the item. In the setter I add a ControlTemplate to the Template property of the Item including binding. After running the application the items with IsHeader=true are not gray out anymore and they are not clickabe.
You can use this also to set different templates for items in conditions. For example you can trigger a ViewModel property TaskPriority (low, normal, high) and set different ControlTemplates to the Template propterty of the ListItem. And if you do so, you don't need to implement TemplateSelectors.

I hope this little tip will help someone.

Regards,
Ralf
Ralf
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
181 views

 

 

I use Telerik in my project on WPF.  I am trying to change the RadGridView with Blend as to your recommendation, in order to create a window which has a search as you type under the grid header (see attachment). I didn’t find a way to split the Grid Header from the GridViewVirtualizingPanel with a control that can be loaded with RadGridPanel. Please let me know if this is possible (in WPF), And if so, I will be happy to get an example or some giddying.

Ben-Yehuda Michal


From: Forums | telerik [mailto:NoReply@telerik.com]
Sent: Thursday, September 20, 2012 10:53 AM
To: Balter, Avishay
Subject: RE: Forum -- Hosting in WPF

 

Please, do not reply to this e-mail.

A new reply has been posted to a thread in your watchlist.

Click here to post a reply or unsubscribe from this thread. .

From: Telerik Admin
Date: 9/20/2012 2:52:48 AM

Hello,

 Have you tried to modify the template of RadGridView using Blend to insert desired additional part?

Greetings,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.



From: Avishay
Date: 9/20/2012 2:47:21 AM

I am trying to host a WPF control, in another WPF control.
A "search control" inside a "grid" control.
both are WPF.



From: Telerik Admin
Date: 9/20/2012 2:43:42 AM

Hello,

 Can you post more info about your scenario? Do you have WinForms application or WPF? Are you trying to host WPF controls in WinForms  or WinForms  controls in WPF?

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.



From: Avishay
Date: 9/20/2012 2:30:45 AM

Hello Telerik support
Is it possible to create the Winforms hosting (RadHostItem) functionality using WPF controls ?
I am trying  to integrating a search text box on a GridView between the grouping panel + filters access buttons and the actual grid itself (as in the example of advanced search on Winforms GridView), using WPF.

See attached image.

Avishay Balter



Vlad
Telerik team
 answered on 25 Sep 2012
1 answer
174 views
Hello,

I am having a problem when I try to specialize the control template of the RadExpressionEditor, so I serialized the default template of the control to an XML file and then pasted that in as the control template (see Xaml below). The problem is that one of the parts, which is a RadTreeView control,  cannot be found. It should be in the Telerik.Windows.Controls.Navigation.dll but even after I include the dll the compiler cannot find it. I am using version 2012.2.730.40 for all dlls.

<UserControl x:Class="Runge.Modules.HaulNetworkVisualization.Controls.ExpressionEditor.ExpressionEditorControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Expressions" 
             xmlns:Expressions="clr-namespace:Telerik.Windows.Controls.Expressions;assembly=Telerik.Windows.Controls.Expressions" 
             xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
             xmlns:NavigationControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
             xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase"
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Telerik:RadExpressionEditor x:Name="expressionEditor" ExpressionChanged="ExpressionEditorExpressionChanged" >            
            <Telerik:RadExpressionEditor.Template>
                <ControlTemplate>
                    <Border BorderThickness="{TemplateBinding Border.BorderThickness}" BorderBrush="{TemplateBinding Border.BorderBrush}" Name="PART_RootElement">
                        <Grid Background="{TemplateBinding Panel.Background}" Name="PART_ExpressionEditorGrid">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="3*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Expressions:ExpressionTextBox FontSize="12" Name="PART_ExpressionNodeEditor" Grid.Row="0" Controls:StyleManager.Theme="Office_Black" />
                            <Border BorderThickness="0,1,0,0" BorderBrush="{TemplateBinding Border.BorderBrush}" Name="CalculationPanel" Grid.Row="1">
                                <Border.Background>
                                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                        <LinearGradientBrush.GradientStops>
                                            <GradientStop Color="#FFFFFFFF" Offset="0" />
                                            <GradientStop Color="#FFCDCDCD" Offset="1" />
                                            <GradientStop Color="#FFCECECE" Offset="0.42" />
                                            <GradientStop Color="#FFAFAFAF" Offset="0.43" />
                                        </LinearGradientBrush.GradientStops>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <StackPanel Orientation="Horizontal" Margin="4,4,4,4" HorizontalAlignment="Center" VerticalAlignment="Stretch">
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="+" Name="Plus" Width="18" Height="18" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="F1M12.488,5.1L10.967,3.579 8,6.545 5.034,3.579 3.512,5.1 6.479,8.066 3.512,11.033 5.034,12.555 8,9.588 10.967,12.554 12.488,11.033 9.521,8.066z" Stretch="Fill" Fill="#FF000000" Width="8" Height="8" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <TransformGroup.Children>
                                                        <RotateTransform Angle="-45" />
                                                    </TransformGroup.Children>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="-" Name="Minus" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="F1M5.0339999,3.579L3.5120001,5.0999999 10.967,12.554 12.488,11.033z" Stretch="Fill" Fill="#FF000000" Width="8" Height="8" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <TransformGroup.Children>
                                                        <RotateTransform Angle="-45" />
                                                    </TransformGroup.Children>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="*" Name="Multiply" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="F1M12.488,5.1L10.967,3.579 8,6.545 5.034,3.579 3.512,5.1 6.479,8.066 3.512,11.033 5.034,12.555 8,9.588 10.967,12.554 12.488,11.033 9.521,8.066z" Stretch="Fill" Fill="#FF000000" Width="8" Height="8" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="/" Name="Divide" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M6.4999404,5.0003071C7.3283672,5.0003071 7.9999404,5.6718798 7.9999404,6.5003071 7.9999404,7.3287339 7.3283672,8.0003071 6.4999404,8.0003071 5.6715131,8.0003071 4.9999404,7.3287339 4.9999404,6.5003071 4.9999404,5.6718798 5.6715131,5.0003071 6.4999404,5.0003071z M1.5,0.00036684913C2.3284271,0.0003668053 3,0.67193967 3,1.5003668 3,2.3287938 2.3284271,3.0003667 1.5,3.0003667 0.67157286,3.0003667 0,2.3287938 0,1.5003668 0,0.67193967 0.67157286,0.0003668053 1.5,0.00036684913z M6.6609359,0L8.016551,1.3556148 1.3730572,8 0.016551096,6.6434937z" Stretch="Fill" Fill="#FF000000" Width="8" Height="8" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <TransformGroup.Children>
                                                        <RotateTransform Angle="-133.675" />
                                                    </TransformGroup.Children>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="%" Name="Percent" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M6.5,5C7.3284268,5 8,5.6715727 8,6.5 8,7.3284268 7.3284268,8 6.5,8 5.6715727,8 5,7.3284268 5,6.5 5,5.6715727 5.6715727,5 6.5,5z M6.6443858,0L8,1.355615 1.3565066,8.000001 3.5762793E-07,6.6434941z M1.5,0C2.3284271,0 3,0.67157286 3,1.4999999 3,2.3284271 2.3284271,2.9999998 1.5,2.9999998 0.67157286,2.9999998 6.412975E-08,2.3284271 0,1.4999999 6.412975E-08,0.67157286 0.67157286,0 1.5,0z" Stretch="Fill" Fill="#FF000000" Width="8" Height="8" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="=" Name="Equals" Width="18" Height="18" Margin="10,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M0,3L9,3 9,5 0,5z M2.682209E-07,0L9,0 9,2 2.682209E-07,2z" Stretch="Fill" Fill="#FF000000" Width="8" Height="5" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="&lt;&gt;" Name="NotEquals" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M6.8438272,0L6.0373545,2.0623121 8,2.0623121 8,4.0623121 5.2552485,4.0623121 4.8641958,5.0623121 8,5.0623121 8,7.0623121 4.0820904,7.0623121 3.2790608,9.115819 1.1248636,9.0938644 1.9289982,7.0623121 0,7.0623121 0,5.0623121 2.7206435,5.0623121 3.116466,4.0623121 2.7167258E-07,4.0623121 2.7167258E-07,2.0623121 3.9081113,2.0623121 4.7207074,0.0093827248z" Stretch="Fill" Fill="#FF000000" Width="8" Height="9" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="&lt;" Name="LessThan" Width="18" Height="18" Margin="7,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="F1M14.10388,3.5915833L10.967,3.579 6.4790001,8.066 10.967,12.554 14.128588,12.56459 9.5209999,8.066z" Stretch="Fill" Fill="#FF000000" Width="6" Height="8" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="&lt;=" Name="LessThanOrEquals" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M7.0000005,5L12.000001,5 12.000001,7 7.0000005,7z M7.0000005,1.9999996L12.000001,1.9999996 12.000001,3.9999998 7.0000005,3.9999998z M3.5201895,0L5.9806204,0.011203052 2.3860106,3.9948406 6,8.000001 3.5201895,7.9905715 0,3.9948406z" Stretch="Fill" Fill="#FF000000" Width="12" Height="8" SnapsToDevicePixels="True" />
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="&gt;=" Name="GreaterThanOrEquals" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="M0,4L5,4 5,6 0,6z M0,0.99999988L5,0.99999988 5,3 0,3z M9.5201912,0L11.980621,0.011203052 8.3860121,3.9948406 12.000002,8.000001 9.5201912,7.9905715 6.0000014,3.9948406z" Stretch="Fill" Fill="#FF000000" Width="12" Height="8" Margin="-1,-1,-1,-1" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <TransformGroup.Children>
                                                        <RotateTransform Angle="-180" />
                                                    </TransformGroup.Children>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="&gt;" Name="GreaterThan" Width="18" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command>
                                        <Path Data="F1M14.10388,3.5915833L10.967,3.579 6.4790001,8.066 10.967,12.554 14.128588,12.56459 9.5209999,8.066z" Stretch="Fill" Fill="#FF000000" Width="6" Height="8" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True">
                                            <Path.RenderTransform>
                                                <TransformGroup>
                                                    <TransformGroup.Children>
                                                        <RotateTransform Angle="-180" />
                                                    </TransformGroup.Children>
                                                </TransformGroup>
                                            </Path.RenderTransform>
                                        </Path>
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="And" Foreground="#FF000000" Padding="0,0,0,0" Name="And" Width="29" Height="18" Margin="10,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command> And
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="Or" Foreground="#FF000000" Padding="0,0,0,0" Name="Or" Width="29" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command> Or
                                    </Controls:RadButton>
                                    <Controls:RadButton InnerCornerRadius="0,0,0,0" CommandParameter="Not" Foreground="#FF000000" Padding="0,0,0,0" Name="Not" Width="29" Height="18" Margin="1,0,0,0" Controls:StyleManager.Theme="Office_Black">
                                        <Controls:RadButton.Command>
                                            <RoutedUICommand Text="Insert text" />
                                        </Controls:RadButton.Command> Not
                                    </Controls:RadButton>
                                </StackPanel>
                            </Border>
                            <Grid Grid.Row="2">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <NavigationControls:RadTreeView IsLineEnabled="True" IsVirtualizing="False" BorderBrush="#FF848484" BorderThickness="0,1,1,1" Name="PART_EditorCategoriesTree" AllowDrop="True" Grid.Column="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Controls:StyleManager.Theme="Office_Black">
                                    <NavigationControls:RadTreeView.ItemTemplate>
                                        <HierarchicalDataTemplate ItemsSource="{Binding Path=ChildCategories}" ItemTemplate="{x:Null}" ItemTemplateSelector="{x:Null}" ItemContainerStyle="{x:Null}" ItemContainerStyleSelector="{x:Null}" ItemStringFormat="{x:Null}" AlternationCount="0" ItemBindingGroup="{x:Null}">
                                            <TextBlock Text="" />
                                        </HierarchicalDataTemplate>
                                    </NavigationControls:RadTreeView.ItemTemplate>
                                </NavigationControls:RadTreeView>
                                <NavigationControls:RadTreeView IsVirtualizing="False" DisplayMemberPath="Name" BorderBrush="#FF848484" BorderThickness="0,1,0,1" FontWeight="Bold" Name="PART_EditorItemsTree" AllowDrop="True" Grid.Column="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Controls:StyleManager.Theme="Office_Black" />
<!--                                <TreeView BorderBrush="#FF848484" BorderThickness="0,1,1,1" Name="PART_EditorCategoriesTree" AllowDrop="True" Grid.Column="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Controls:StyleManager.Theme="Office_Black">-->
<!--                                            <TreeView.ItemTemplate>-->
<!--                                                <HierarchicalDataTemplate ItemsSource="{Binding Path=ChildCategories}" ItemTemplate="{x:Null}" ItemTemplateSelector="{x:Null}" ItemContainerStyle="{x:Null}" ItemContainerStyleSelector="{x:Null}" ItemStringFormat="{x:Null}" AlternationCount="0" ItemBindingGroup="{x:Null}">-->
<!--                                                    <TextBlock Text="" />-->
<!--                                                </HierarchicalDataTemplate>-->
<!--                                            </TreeView.ItemTemplate>-->
<!--                                 </TreeView>-->                            
                                <TreeView DisplayMemberPath="Name" BorderBrush="#FF848484" BorderThickness="0,1,0,1" FontWeight="Bold" Name="PART_EditorItemsTree" AllowDrop="True" Grid.Column="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Controls:StyleManager.Theme="Office_Black" />
                            </Grid>
                            <Border BorderThickness="0,1,0,0" BorderBrush="#FFFFFFFF" Background="#FFBFBFBF" Name="EditorInfoPanel" Height="75" Grid.Row="3">
                                <Grid Margin="5,5,5,5">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <TextBlock Text="" FontWeight="Bold" Foreground="#FF000000" />
                                    <TextBlock Text="" Foreground="#FF000000" TextWrapping="Wrap" Grid.Row="1" />
                                </Grid>
                            </Border>
                            <Border BorderThickness="0,1,0,0" BorderBrush="#FF848484" Name="EditorResultsPanel" Grid.Row="4">
                                <Border.Background>
                                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                        <LinearGradientBrush.GradientStops>
                                            <GradientStop Color="#FFB5B5B5" />
                                            <GradientStop Color="#FFF0F0F0" Offset="0.5" />
                                        </LinearGradientBrush.GradientStops>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <StackPanel Orientation="Horizontal" Margin="6,6,6,6">
                                    <TextBlock Text="Result preview:" Foreground="#FF000000" HorizontalAlignment="Right" />
                                    <TextBlock Text="{Binding FooterText, Mode=TwoWay, diag:PresentationTraceSources.TraceLevel=High}" Foreground="#FF000000" TextAlignment="Left"  />
                                </StackPanel>
                            </Border>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Telerik:RadExpressionEditor.Template>
        </Telerik:RadExpressionEditor>
    </Grid>
</UserControl>

Vlad
Telerik team
 answered on 25 Sep 2012
3 answers
142 views

Hi,

I have TileView that contains TileViews.
When I enlarge the inner one (when there is more than one item in it), the first time everything goes well.
The second item that I enlarge is getting bigger but the others get smaller but not small enough (like the first one).
To clarify I mean that there is a TileView that contains items that are themselves TileViews. I am talking about enlarging an item that is in the inner TileView.
First time - everything goes well,
Second time - the small items get small but not as small as the first time. That causes the small ones and the enlarged one to "fight" over the space (they each change their sizes endlessly).
Every TileView is wrapped in a RadFluidContentControl that is set to manual.

Thank you in advance,
Tamir


Tina Stancheva
Telerik team
 answered on 24 Sep 2012
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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?