Telerik Forums
UI for WPF Forum
1 answer
119 views

Hi, I have not been able to find documentation yet on how to handle events generated by the RadBreadcrumb control, can you point me at the docs?  I would really like to bind inidividual 'crumbs' to an ICommand using MVVM. (the same way I would bind a button's Command property to an ICommand)  If that's not possible, is there anything else I can do to bind to this control, or do I have to use the events?

Dilyan Traykov
Telerik team
 answered on 03 Apr 2018
5 answers
103 views

Hi,

I installed the WPF controls (trial version, NoXaml) and setup my application according to the docs.

Unfortunately the controls do neither appear in the designer nor in the application after starting it.

You find attached a screenshot from the references. I used the references from C:\Program Files (x86)\Progress\Telerik UI for WPF R1 2018\Binaries.NoXaml\WPF45

Here is the App.xml content:

<Application.Resources>
        <ResourceDictionary x:Key="Default">
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
</Application.Resources>

Am I missing something? Any help would be appreciated...

Regards,

Abid

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Apr 2018
2 answers
349 views

Hello,

I want to know if it's possible to wrap LayoutControl (inside a LayoutControlExpanderGroupin my example).

I'm not able to achieve this.

Here is a sample of my code :

<telerik:LayoutControlExpanderGroup Margin="0,10,0,0" IsExpandable="True" IsExpanded="true" Header="Paramètrage" Orientation="Horizontal" VerticalAlignment="Top">
    <WrapPanel Orientation="Horizontal">
        <telerik:LayoutControlGroup HorizontalAlignment="left" Orientation="Vertical" VerticalAlignment="top" Width="auto">
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Gestion multi-poste" HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <telerik:RadDropDownButton Content="Mono-poste" HorizontalAlignment="left"  Width="350" HorizontalContentAlignment="left" />
                </DockPanel>
            </telerik:LayoutControlGroup>
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Catégories masters" HorizontalAlignment="left" VerticalAlignment="Center"  Width="auto" />
                    <telerik:RadDropDownButton Content="VE" HorizontalAlignment="left"  Width="350" HorizontalContentAlignment="left" />
                </DockPanel>
            </telerik:LayoutControlGroup>
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Affichage des records sur feuilles terrain" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox  HorizontalAlignment="left"/>
                    <TextBlock Margin="75,0,0,0" Text="Dossards" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox HorizontalAlignment="left"/>
                </DockPanel>
            </telerik:LayoutControlGroup>
 
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Utilisation des clubs Maitres (impression)" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox HorizontalAlignment="left"/>
                    <TextBlock Margin="75,0,0,0" Text="Epreuves officielles uniquement" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox HorizontalAlignment="left"/>
                </DockPanel>
            </telerik:LayoutControlGroup>
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Compétition en live" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox HorizontalAlignment="left"/>
                    <TextBlock Margin="75,0,0,0" Text="Affichage sur tableau externe" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                    <CheckBox HorizontalAlignment="left"/>
                </DockPanel>
            </telerik:LayoutControlGroup>
            <telerik:LayoutControlGroup VerticalAlignment="Top"  >
                <DockPanel >
                    <TextBlock Text="Controle du type de licences autorisées" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="top"  Width="200" />
                    <CheckBox x:Name="chkTypeLicence" VerticalAlignment="Top"  HorizontalAlignment="left"/>
                    <telerik:RadListBox Visibility="{Binding IsChecked,ElementName=chkTypeLicence,Converter={StaticResource BoolToVisConverter }}" >
                        <telerik:RadListBoxItem >
                            <TextBlock Text="Type licence 1" Height="auto"/>
                        </telerik:RadListBoxItem>
                        <telerik:RadListBoxItem >
                            <TextBlock Text="Type licence 2" Height="auto"/>
                        </telerik:RadListBoxItem>
                        <telerik:RadListBoxItem >
                            <TextBlock Text="Type licence 3" Height="auto"/>
                        </telerik:RadListBoxItem>
                    </telerik:RadListBox>
                </DockPanel>
            </telerik:LayoutControlGroup>
        </telerik:LayoutControlGroup>
        <telerik:LayoutControlTabGroup Grid.Column="1" VerticalAlignment="top" >
            <telerik:LayoutControlTabGroupItem Header="Stade" >
                <telerik:LayoutControlGroup Orientation="Vertical" >
                    <DockPanel >
                        <TextBlock Text="Utilisation des montées de barres" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                        <TextBlock Margin="75,0,0,0" Text="Utilisation des performances d'engagement" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
 
                    <DockPanel >
                        <TextBlock Text="Table de points" HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <telerik:RadDropDownButton Content="Hongroise" HorizontalAlignment="left"  Width="350" HorizontalContentAlignment="left" />
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Type de chronomètrie" HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <telerik:RadDropDownButton Content="E" HorizontalAlignment="left"  Width="80" HorizontalContentAlignment="left" />
                    </DockPanel>
                    <DockPanel>
                        <TextBlock Text="Société de chronomètrie" HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <telerik:RadDropDownButton Content="Société 1" HorizontalAlignment="left"  Width="350" HorizontalContentAlignment="left" />
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Exporter le triathlon calculé" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Critériums" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="top"  Width="200" />
                        <CheckBox x:Name="chkCriterium" HorizontalAlignment="left" VerticalAlignment="top"/>
                        <telerik:RadListBox Visibility="{Binding IsChecked,ElementName=chkCriterium,Converter={StaticResource BoolToVisConverter }}" >
                            <telerik:RadListBoxItem >
                                <TextBlock Text="Critérium 1" Height="auto"/>
                            </telerik:RadListBoxItem>
                            <telerik:RadListBoxItem >
                                <TextBlock Text="Critérium 2" Height="auto"/>
                            </telerik:RadListBoxItem>
                            <telerik:RadListBoxItem >
                                <TextBlock Text="Critérium 3" Height="auto"/>
                            </telerik:RadListBoxItem>
                        </telerik:RadListBox>
                    </DockPanel>
                </telerik:LayoutControlGroup>
            </telerik:LayoutControlTabGroupItem>
            <telerik:LayoutControlTabGroupItem Header="Ekiden">
                <telerik:LayoutControlGroup Orientation="Vertical">
                    <DockPanel >
                        <TextBlock Text="Unicité des dossards sur la compétition" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Saisie des temps au parcours" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                </telerik:LayoutControlGroup>
            </telerik:LayoutControlTabGroupItem>
            <telerik:LayoutControlTabGroupItem Header="Hors Stade" >
                <telerik:LayoutControlGroup Orientation="Vertical">
                    <DockPanel >
                        <TextBlock Text="Incrémentation automatique des n° de dossards" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                        <TextBlock Margin="75,0,0,0" Text="Unicité des dossards sur la compétition" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Unité allure" HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <telerik:RadDropDownButton Content="Km/h" HorizontalAlignment="left"  Width="120" HorizontalContentAlignment="left" />
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Utiliser la table des prénoms féminins" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                        <TextBlock Margin="75,0,0,0" Text="Bloquer l'affectation automatique des dossards sur la compétition" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <!--<DockPanel >
                        <TextBlock Text="Bloquer l'affectation automatique des dossards sur la compétition" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>-->
                    <DockPanel >
                        <TextBlock Text="Calcul des catégories en priorité sur les ages des catégories non officielles" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <DockPanel >
                        <TextBlock Text="Utiliser le code E/I dans les résultats par équipe" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                        <TextBlock Margin="75,0,0,0" Text="Composer automatiquement les équipes 1, 2, 3 si elles existent" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>
                    <!--<DockPanel >
                        <TextBlock Text="Composer automatiquement les équipes 1, 2, 3 si elles existent" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <CheckBox HorizontalAlignment="left"/>
                    </DockPanel>-->
                    <DockPanel >
                        <TextBlock Text="Méthode de composition pour les classements par équipe" TextWrapping="wrap"  HorizontalAlignment="left" VerticalAlignment="Center"  Width="200" />
                        <telerik:RadDropDownButton Content="Ligue" HorizontalAlignment="left"  Width="120" HorizontalContentAlignment="left" />
                    </DockPanel>
                </telerik:LayoutControlGroup>
            </telerik:LayoutControlTabGroupItem>
        </telerik:LayoutControlTabGroup>
    </WrapPanel>
</telerik:LayoutControlExpanderGroup>

 

When i reduce my window with, i want that LayoutControlTabGroupgo under my LayoutControlGroup.

Thanks in advance.

Regards.

OD
Top achievements
Rank 1
 answered on 03 Apr 2018
1 answer
73 views

Hello,

some BarCode controls such as "Code 39 Extended" and "Code 25 Interleaved" require a TwoWay binding of the "Text" property when used in a MVVM scenario. (And some do not, such as "Code 128")

It took us several hours to find that out.

My suggestion is to improve the documentation for this behaviour.
In the demos and documentation only a fixed text is used.

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Apr 2018
0 answers
106 views

I need to use the filtering UI and keep the selected values and filter expressions, but I don't want RadGridview to do actual filtering, because I do all that in backend. How do I bypass the data filtering and just use RadGridView for filtering UI?

 

Dmitri
Top achievements
Rank 1
 asked on 02 Apr 2018
2 answers
212 views

Actually there are a couple of issues here.

  • No search panel available for the TreeListView :-(  Setting ShowSearchPanel = true does nothing.

------------------------------------------------

I am running issues with hierarchy items that are expanded while not visible.

 We are using the IsExpandedBinding property which is binding okay, and our data item implements INotifyPropertyChanged.  When you set a node's IsExpanded property, it also recursively set's its parent's IsExpanded property to match.

--------------------------------------------------

  • ScrollIntoView(item) doesn't work with items which were expanded but never visible.  No scroll happens.  ScrollIntoView works with items that were previously or currently visible.  ScrollIntoView(item,true) and the ScrollIntoViewAsync() methods do no better.

I managed to get better results by Scrolling to the item's root, then recursively using ScrollIntoView() on the root to item path.

ex:
A
  B
    C
Doing ScrollIntoView(A), then ScrollIntoView(B), then ScrollIntoView(C) gives better results

But item C is just below the bottom of the grid.  Item B is at the bottom.  This is kind of a 'one off' problem.

----------------------------------------------------

  • Setting SelectedItem isn't working for items recently expanded but never visible.

SelectedItem works ok if the item is visible, or was previously visible.

--------------------------

  I think these problems are happening because when you expand an item while not visible, it does not get into the TreeListView items property until it becomes visible. ExpandHierarchyItem() does not help.

Is there something we can do to help get these newly expanded (but not visible) nodes into the TreeListViews tracked items? (I assume this is the grid.Items collection)

 

Yoan
Telerik team
 answered on 02 Apr 2018
1 answer
220 views

Hi,How to disable scrolls when printing RadImageEditor component? I try some properties like ScrollViewer.VerticalScrollBarVisibility,ScrollViewer.HorizonalScrollBarVisibility but no one works.(hidden and disable values of these properties)

 

 <imaging:ZoomController  x:Name="zoomController" Grid.Row="0" Grid.Column="1" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.PanningMode="Both" ImageEditor="{Binding ElementName=imageEditor}"  Margin="0.8"/>

....

 <telerik:RadImageEditor   IsPanningEnabled="True"  Margin="0,0,0,0"  x:Name="imageEditor" ScaleFactor="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

 

 

Vladimir Stoyanov
Telerik team
 answered on 02 Apr 2018
1 answer
58 views

Hi Team,

I have query on RadgridView:

-Clear the grid row selection if a user clicks outside the grid area.

 

Thanks,

Amit Kulha

Vladimir Stoyanov
Telerik team
 answered on 02 Apr 2018
0 answers
91 views

Hi All, 

I Have a gridview, which I enabled filter by FilteringMode.Popup. popup listing all the distinct values. How can I allow user to filter there distinct values or search within them ? Maybe something like dropdown beaviour may help, I mean when user types beginning of the value and the scroll goes to first item matches within the list. Have any option to do that ? 

Mustafa Erhan
Top achievements
Rank 1
 asked on 02 Apr 2018
5 answers
219 views
I'm trying to drag from an external list box to the schedule view control, but i'm getting a "Object reference not set to an instance of an object." Exception in the DragDropBehavior.Drop.

 at Telerik.Windows.Controls.ScheduleViewBase.CreateNew(IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\Controls\ScheduleView.Editing.cs:line 96
   at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.CopyAppointment(DragDropState state, Slot targetSlot, IAppointment appointment) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 447
   at Telerik.Windows.Controls.ScheduleViewDragDropBehavior.Drop(DragDropState state) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\ScheduleView\ScheduleView\DragDropBehavior\ScheduleViewDragDropBehavior.cs:line 110
   at MAXIS.Scheduling.ScheduleItem.ScheduleViewDragDropBehavior.Drop(DragDropState state) in C:\Projects\_AX\Production\Scheduling\MAXIS.Sch

It's a custom Appointment. I've implemented the copy & the copyfrom methods like is shown in the examples. I can drag & drop from within the control just fine, but dragging a appointment from a listbox throws the exception.  the only difference i see in the state object is that the SourceAppointmentsSource is nothing.

The control version is 2012.1.215.40
amine
Top achievements
Rank 1
 answered on 30 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?