Telerik Forums
UI for WPF Forum
1 answer
127 views
Hi, currently i am constructing a DataTemplate for OutlookbarItem as following using a ListView displaying a list of my ViewModel (LHSBrowseItem which contains a list of items i like to display inside a listview)

<DataTemplate x:Key="dtOutlookBarItem" DataType="LocalViewModel:LHSBrowseItem">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <TextBox Name="tboxTelerik"  Visibility="{Binding Path=AllowSearch, Converter={StaticResource converterBoolVisibility}}">
                </TextBox>
                <LocalControls:ucSpinnerSwirl x:Name="lhsProgressBar" Grid.Row="1" HorizontalAlignment="Center" Margin="5" Visibility="{Binding Path=CollectionLoaded, Converter={StaticResource  converterBoolVisibilityRvs}}"/>
                <ListView Name="lstViewTelerik" Grid.Row="1" 
                          ItemsSource="{Binding Path=Items}"
                          IsSynchronizedWithCurrentItem="True"
                          Visibility="{Binding Path=CollectionLoaded, Converter={StaticResource  converterBoolVisibility}}"
                          SelectionChanged="ListView_SelectionChanged">
                <ListView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel></VirtualizingStackPanel>
                    </ItemsPanelTemplate>
                </ListView.ItemsPanel>
                    <ListView.ItemTemplate>
                        <DataTemplate DataType="LocalViewModel:LHSItem">
                            <TextBlock Text="{Binding Path=Label}"/>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
           </Grid>
        </DataTemplate>


However, i encounter problems when the listview items size is around 5000:

(1) When i minimize and then maximize the outlookbar, the maximizing takes around 2-3 seconds before the windows shows and become reponsive

(2) Same thing happens when i try to resize the main window, it will "hangs " for 2-3 secs before i can operate the outlook bar

To me, it seems that the inside the outlookbar is redrawing itself whenever there is a change. 

[Additional Information]

My style for this outlook bar is as following, 
<DataTemplate x:Key="dtOutlookBarDropdown" >
    <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="30" />
                <ColumnDefinition Width="auto" />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="0"
                   Width="20"
                   HorizontalAlignment="left"
                   Source="{Binding SmallIcon}" />
            <Label Grid.Column="1"
                   HorizontalAlignment="Center"
                   Content="{Binding Header}" />
    </Grid>
</DataTemplate>
 
<Style TargetType="{x:Type TelerikNavigation:RadOutlookBar}">
    <Setter Property="Width" Value="220"/>
    <Setter Property="IsVerticalResizerVisible" Value="False"/> 
    <Setter Property="ItemDropDownContentTemplate" Value="{StaticResource dtOutlookBarDropdown}"/>             
</Style
<Style TargetType="{x:Type TelerikNavigation:RadOutlookBarItem}">
    <Setter Property="Title" Value="{Binding Header}"/>
    <Setter Property="Header" Value="{Binding Header}"/>
    <Setter Property="FontWeight" Value="Bold"/>
    <Setter Property="Icon" Value="{Binding LargeIcon}"/>
    <Setter Property="SmallIcon" Value="{Binding SmallIcon}"/>
    <Setter Property="ToolTip" Value="{Binding Header}"/>
    <Setter Property="ContentTemplate" Value="{StaticResource dtOutlookBarItem}"/>           
</Style>

One strange thing i notice is that when outlookbar item with 5k listview items is shown, somehow it also affects another tab control performance, it makes the tab switching quite slow, it pause around 1 sec before the tab switches to other tab and when the outlookbar is minimized, the problem is gone.

your help will be appreciated. Btw, we have purchased your official license. :) 

Can u help regarding this?

thanks a lot

   
Hristo
Telerik team
 answered on 27 Sep 2012
3 answers
150 views
Hi,
i need to change at run time the culture of all controls used in my application, but i've a RadTimeBar's localization problem.

I've try to use the solution posted by Evgenia in the "TimeBar Localization does not work - please help" thread with a button that set the French culture on click, but it doesn't work for me.

My code behind is:

        private void btn_Click(object sender, RoutedEventArgs e)
        {
            CultureInfo culture = new CultureInfo("fr");
            System.Threading.Thread.CurrentThread.CurrentCulture = culture;
            System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
        }

The only way to change the language of RadTimeBar's labels is to destroy and recreate the RadTimeBar on windows loaded, because nothing changes if i only set the Culture.

I'm using Q3-2011 version, there's any other solution for this problem?

Thanks,

Rob
Tsvetie
Telerik team
 answered on 27 Sep 2012
5 answers
612 views
hi,

i'm using the newest Verison of RadCrontrols for WPF. The ItemSource of my gridView is a MVVM (ObservableCollection<Paketdata>).

I my codebehind i run through all the Items in GridView:
var itemsSource = UebersichtDataGrd.ItemsSource as IEnumerable;           
 foreach (Paketdata item in itemsSource)
 {
      if (!string.IsNullOrEmpty(item.Modul))
      {
           // SET Backgroundcolor of GridView row
      }        
}

How do i set the Backgroundcolor of the GridViewRow in this case?
Thanks
Best Regards
Rene
Nagendra
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
197 views
Hi.
the problem im facing is that i try to use RadRichTextbox as a document designer. It works perfect for wordlike documents but what i need is to get WSIWG designer of HTML or XAML. I need to put comboboxes (<select> tag for html), textboxes into that document.
and this tag is just skipped during loading into RadDocument. Is there a workaround to this or maybe should i use some other controls? Thanks in advance for any ideas.

Greetings
Maciek
Mihail
Telerik team
 answered on 27 Sep 2012
1 answer
96 views
I have a bug with Autorange = true. The line and bubbles are not in a line! (fail autorange.png )
If I load it again (autorange_small.png ) its working but with very strange autorange.

If i calculate the Y-Axis by my self, there is no problem!

Have you ever seen anything like this? 

thanks
Petar Kirov
Telerik team
 answered on 27 Sep 2012
2 answers
121 views
Hi,
Do you have example available for serializing WPF RadGridView FilterDescriptorCollection to XML file?

I followed some previous thread and the link was pointing to your WPF Controls Examples app, but I couldn't find it there.
Ari
Top achievements
Rank 1
 answered on 27 Sep 2012
2 answers
122 views
HI,
I want to set a document image in the leaf node, currently i have set a folder image at parent node.
can you please tell me how can i set that ?

please check the image for more information.

Regards,
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 27 Sep 2012
2 answers
139 views
Hi,
I have a requirement to pinned the RadPane when i clicked on AutoHideArea,( i have overrided the OnMourEnter of Radpane and changed the moueseenter event)
public class CustomPane : RadPane
{
protected override void OnMouseEnter(System.Windows.Input.MouseEventArgs e)
{
this.ChangeVisualState(true);
            
}
        
now i want to pinned the CustomPane when i click on the auto hide area. can any one help me ? 

I have attached a image please check for more information

Thanks in Advance.
Srinivas.
Ravi
Top achievements
Rank 1
 answered on 27 Sep 2012
1 answer
119 views
Hello,

i'm trying to bind a xaml document to my radrichtextbox which is situated in a backstageitem. This doesn't want to work. 
Below you can see the code i use in my backstageitem, the CurrentPatchnotes is situated in the datacontext of a contentcontrol in the backstageitem. The textblock shows the value correctly (when uncommented ofc) yet the richtextbox won't show a thing.


                                                <Grid Grid.Row="1" Height="400">
                                                    <!--<TextBlock Text="{Binding CurrentPatchNotes, UpdateSourceTrigger=PropertyChanged}"/>-->
                                                    <telerik:XamlDataProvider RichTextBox="{Binding ElementName = Viewer}" Xaml="{Binding CurrentPatchNotes, UpdateSourceTrigger=PropertyChanged}" />
                                                    <telerik:RadRichTextBox IsSpellCheckingEnabled="False" x:Name="Viewer" IsReadOnly="True"/>
                                                </Grid>


Someone has any experience with this?

Thank you in advance
Martin Ivanov
Telerik team
 answered on 27 Sep 2012
0 answers
172 views
In a wpf application I have  ScrollViewer that contains a Grid with 1 row. The height row value is *. 
In the grid row there is a RadGridView. The RadGridview extends with height/width infinity.
How can not allow the RadGridview extends ? 
Giulio
Top achievements
Rank 1
 asked on 27 Sep 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?