Telerik Forums
UI for Silverlight Forum
5 answers
39 views
I have binded RadCombo in RadGridView.And i have added IsEditable="True" TextSearchMode="Contains" IsTextSearchEnabled="True" property to the RadCombobox ,however text search is not working.Kindly provide me the solution for this problem.I have copied the piece of code which has the RadComboBox.Kindly review it and let me know the solution.

<

 

 

telerik:GridViewDataColumn DataMemberBinding="{Binding PromptID}" Header="Prompts" Width="*" > <telerik:GridViewDataColumn.CellTemplate 

 

<DataTemplate> <input:RadComboBox x:Name="comboPrompts" IsEditable="True" TextSearchMode="Contains" IsTextSearchEnabled="True" EmptyText="Select"  

 

 

DisplayMemberPath="CodeAndText"

 

SelectedValuePath="PromptID"

 

SelectedValue="{Binding PromptID}"

 

ItemsSource="{Binding Path=PromptsForStep, Source={StaticResource PromptsSource},Mode=TwoWay}"/>

 

</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate 

 

<telerik:GridViewDataColumn.CellEditTemplate
<DataTemplate>
<input:RadComboBox x:Name="comboPrompts" TextSearchMode="Contains" IsTextSearchEnabled="True" EmptyText="Select" IsEditable="True"

 

DisplayMemberPath="CodeAndText" SelectedValuePath="PromptID"

 

SelectedValue="{Binding PromptID}"

 

ItemsSource="{Binding Path=PromptsForStep, Source={StaticResource PromptsSource},Mode=TwoWay}"/>

 

 

</DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate>

 

 

 

</telerik:GridViewDataColumn>

Thanks
Vinotha

 

 

 

 

 

Don
Top achievements
Rank 1
 answered on 18 Jun 2020
5 answers
31 views

Hi,

Is it possible to create Fishbone (cause effect) diagram with telerik diagram control?

Like the image attached.

 

Best

 

Delio Tomaz

Dinko
Telerik team
 answered on 16 Jun 2020
12 answers
75 views
Hi...

When I add PropertyDefinitions to the PropertyDefinitions member of a PropertyGrid, if they have NestedProperties, they are collapsed by default (i.e. the plus sign is visible, not the minus sign, and the nested properties are not yet visible).  But when I add to the NestedProperties of a ProprtyDefinition, those properties are expanded by default (i.e. the minus sign is visible, and the nested properties are visible).  Is there a way to control this?  In most cases, I'd always want them collapsed by default (this would be much more performant, because it won't try to load everything at once), but ideally I'd use a property of the PropertyDefinition I'm adding, or of the PropertyDefinitionCollection I'm adding to, so I could have complete control of this.

Thanks,

-Ari
Lakshman
Top achievements
Rank 1
 answered on 06 Jun 2020
2 answers
78 views

I started from the example in the demos.

Basically what is happening is that the template items render fine. Just when filtering is enabled everything disappears. Selecting the Item instead of typing causes the value to display the class type, not the TextSearch.TextPath.

What am I missing here?

<DataTemplate x:Key="ComboBoxCustomTemplate">
    <Grid Margin="0 3">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0">
            <Run Text="{Binding Distributor}"></Run>
            <Run >(</Run>
            <Run Text="{Binding Country}"></Run>
            <Run>)</Run>
        </TextBlock>
        <TextBlock Grid.Row="1" Foreground="LightGray" FontSize="10" Text="{Binding Region}" />
    </Grid>
</DataTemplate>


<telerik:RadComboBox x:Name="DistributorTextBox" Grid.Column="1" Grid.Row="2" ItemsSource="{Binding DistributorData}" VerticalAlignment="Center" EmptyText="Select Distributor" IsEditable="True"  Cursor="Hand" telerik:StyleManager.Theme="Windows7" Height="30" IsFilteringEnabled="True"  OpenDropDownOnFocus="True" TextSearchMode="StartsWith"  TextSearch.TextPath="Distributor" ItemTemplate="{StaticResource ComboBoxCustomTemplate}"  CanAutocompleteSelectItems="False"   />


I noticed that if I rip out the template, everything works as expected (filtering and selecting).

Don
Top achievements
Rank 1
 answered on 05 Jun 2020
3 answers
39 views
Hello,
We have a problem with column sorting in case column uses converter to display values.
For example:
There is a grid column:
<telerik:GridViewDataColumn DataMemberBinding="{Binding NameToDisplay,
Converter={StaticResource<BR>SimpleLocalizationConverter}}"Width="Auto"><BR><BR></telerik:GridViewDataColumn

Property NameToDisplay is bound to column and it may contains the following values:

Item1, Item2… Item10, Item11… Item20, Item21…

When converter is applied displayed values are:

Item001, Item002… Item010, Item011… Item020, Item021…

The problem is occurring in case sorting is applied.

Instead of having following list of items: Item001, Item002… Item010,
Item011… Item020, Item021… after sorting is performed we have:

Item001, Item010, Item011… Item002, Item020, Item021…

Apparently, sorting works based on bound data, not converted
ones. 

Please advise if there is an appropriate way to avoid this
behaviour?
I cannot change values which are bound to the column and I
would like to avoid custom sorting if it is possible.

Thank you in advance.

Andrew
Top achievements
Rank 1
 answered on 27 May 2020
3 answers
56 views

I'm trying to figure out how to "intercept" the SaveCommand for RadRibbonBackstageItem and respond to the event in my MVVM code.

 

<telerik:RadRichTextBoxRibbonUI IsMinimized="True"  Grid.Row="0" Grid.Column="0" BackstageClippingElement="{Binding ElementName=gridRadRtbParent}" DataContext="{Binding Commands, ElementName=ManageLettersRadRTB}" CollapseThresholdSize="50,50" Title="Letter" TitleBarVisibility="Collapsed" QuickAccessToolBarPosition="BelowRibbon" ApplicationButtonContent="File">
 
    <telerik:RadRichTextBoxRibbonUI.Resources>
        <telerik:FontFamiliesProvider x:Key="FontFamiliesProvider" />
    </telerik:RadRichTextBoxRibbonUI.Resources>
 
    <!-- Menu - File -->
    <telerik:RadRichTextBoxRibbonUI.Backstage>
        <telerik:RadRibbonBackstage >
            <telerik:RadRibbonBackstageItem Header="New" Icon="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/new.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding NewDocumentCommand}" />
            <telerik:RadRibbonBackstageItem Header="Open" Icon="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/open.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding OpenDocumentCommand}" />
            <telerik:RadRibbonBackstageItem x:Name="FileSave"  Header="Save" Icon="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png" IsSelectable="false" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding SaveCommand}" >

I tried to use SL5 interactivity but in order to make that work I had remove 

"DataContext="{Binding Commands, ElementName=ManageLettersRadRTB}"

from RadRichTextBoxRibbonUI which basically disables all the built in functionality ... not what I want.

 My goal is to respond with my own code when File - Save (which are RadRibbonBackstageItem) is selected from the RadRichTextBoxRibbonUI and not use the default controls Save process.

Is this possible?  If so, could you provide any hints/sample.

Cheers, Rob.

 

Tanya
Telerik team
 answered on 26 May 2020
4 answers
31 views
Hello,
I am trying to localize SIlverlight components.
I found your tutorial, example with RadGridView is working fine.
In document is comment:

For a full list of Resource Keys, check out the Localization topic for the specific control.

Please - where can I find resource keys of Telerik components?

Thank you very much.
Leos

Sukhrob
Top achievements
Rank 1
 answered on 22 May 2020
7 answers
239 views
Hi,

I want to show a simple databound textblock in the RowDetails of a RadGridView, that should be trimmed (using TextTrimming="WordEllipsis") - but so far without luck.
I also read the thread http://www.telerik.com/community/forums/silverlight/gridview/rowdetailstemplate-horizontal-stretch.aspx

This is my xaml (using Silverlight 5 beta):

<telerik:RadGridView x:Name="ContentItemsGrid"
                     ColumnWidth="Auto"
                     AutoExpandGroups="True"
                     AutoGenerateColumns="False"
                     FrozenColumnCount="2"
                     RowIndicatorVisibility="Collapsed"
                     GridLinesVisibility="Horizontal"
                     SelectionMode="Extended"
                     RowDetailsVisibilityMode="Visible"
                     Loaded="ContentItemsGrid_Loaded">
 
    <telerik:RadGridView.Columns>
        <telerik:GridViewSelectColumn />
        <telerik:GridViewImageColumn DataMemberBinding="{Binding Image}" />
        <telerik:GridViewImageColumn DataMemberBinding="{Binding ContentStateIcon}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Caption}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Created, StringFormat=d}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding CreatedUser}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LastChanged, StringFormat=d}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ChangedUser}" />
    </telerik:RadGridView.Columns>
 
    <telerik:RadGridView.RowDetailsStyle>
        <Style TargetType="telerik:DetailsPresenter">
            <Setter Property="HorizontalContentAlignment"
                    Value="Stretch" />
        </Style>
    </telerik:RadGridView.RowDetailsStyle>
 
    <telerik:RadGridView.RowDetailsTemplate>
        <DataTemplate>
            <Grid Background="White">
                <TextBlock Text="{Binding Preview}"
                           Margin="30 0 5 0"
                           TextTrimming="WordEllipsis" />
            </Grid>
        </DataTemplate>
    </telerik:RadGridView.RowDetailsTemplate>
 
</telerik:RadGridView>

I tried a lot of different things in the DataTemplate: StackPanel, Grid, Grid.ColumnDefinition="*" etc.
But the result always looks like in the screenshot.

Any ideas, please?

cheers
Thomas 
Joe
Top achievements
Rank 1
 answered on 13 May 2020
3 answers
54 views
Hello World 

I am getting an exception when i am trying to use RadRichTextBox. Control is added to page successfully but when i am trying to load my page it gives me an exception

Code : 4004
Category : ManagedRuntimeError
Message : System.TypeInitizlizationException : The Type initializer for 'Telerik.Windows.Document.UI.Extensibility.RadCompositionInitizlizer' threw..

it opens the VS debugger 

please let me know how the solve this kind of prob ASAP. my xaml code is

<navigation:Page x:Class="PracticeAssignments.Home"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"                
    xmlns:telerikWindowsControls="clr-namespace:Telerik.Windows;assembly=Telerik.Windows.Controls"   
    xmlns:telerikDocuments="clr-namespace:System;assembly=Telerik.Windows.Documents"
    xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    xmlns:telerikRichTextBoxCommands="clr-namespace:Telerik.Windows.Documents.RichTextBoxCommands;assembly=Telerik.Windows.Documents"
    xmlns:telerikRichTextBoxUI="clr-namespace:Telerik.Windows.Controls.RichTextBoxUI;assembly=Telerik.Windows.Controls.RichTextBoxUI"
    xmlns:telerikFormatProRTF="clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents"
     
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="Home"
    Style="{StaticResource PageStyle}">
 
    <Grid x:Name="LayoutRoot">
        <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" Margin="-54,-8,-62,-22">
            <StackPanel x:Name="ContentStackPanel" VerticalAlignment="Center">
                <telerik:RadRichTextBox VerticalAlignment="Center" HorizontalAlignment="Center" Width="200"></telerik:RadRichTextBox>
            </StackPanel>
        </ScrollViewer>
    </Grid>
 
</navigation:Page>
Dimitar
Telerik team
 answered on 11 May 2020
13 answers
29 views
Hi,
 
Is there a way to set the calendar rule for the week number when showing week intervals on the timebar?

Cheers,

Simeon
Brian
Top achievements
Rank 1
 answered on 07 May 2020