Telerik Forums
UI for WPF Forum
4 answers
686 views

Hi.
When I open a combobox, selected item is scrolled somewhere in the bottom of dropdown area (Screenshot 1). I need to have selected item scrolled at the very top of  that area (Screenshot 2). Is this possible? How can I do that?

 Thank you.

 

Tomas

Martin Ivanov
Telerik team
 answered on 21 Mar 2019
1 answer
176 views
How do I add a border style of "Double" to a table in a RadRichTextBox?
Tanya
Telerik team
 answered on 21 Mar 2019
2 answers
540 views

Some interesting behaviour can be observed when using the search-as-you-type function of the grid and non-string columns.

Is there a generic way to handle these so you can literally search any column using a "contains" approach?

I have bound an external textbox for the filter, but it gives the same result when using the built-in controls. Observations are:

  1. string columns filter fine
  2. numeric columns filter as per screenshots. note the actual value is 3493.29 which is only found for its integer value, at which point the grid removes its decimal value, or its entire value, not any substring of that value
  3. date columns do not filter unless the entire date is entered, and it is not highlighted in the grid per normal

Is there a standard approach that can be utilised for all column types as the benefit to this and me not rolling my own, is the built in template and styling of the highlighted results.

 

Thank you,

Maurice

Maurice
Top achievements
Rank 1
 answered on 21 Mar 2019
1 answer
148 views

Hi All,

I am now trying to have a DatePicker without the year on the TextBlock (only day and month).

I've tried to use StringFormat by puting it on 'dd/MMMM' but it doesn't work.

my code is the following:

<telerik1:RadDatePicker Width="150" x:Name="DatePickerRevision" SelectedDate="{helpers:CultureAwareBinding Model.BauxInfo.DateDerniereRevision,     Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat='dd/MMMM'}" IsTabStop="True"     
    ErrorTooltipContent="{helpers:CultureAwareBinding ValidationMetier,Converter=     {converters1:ErreurValidationMetierConverter},ConverterParameter=DateDerniereRevision}" 
    DisplayDate="{helpers:CultureAwareBinding DateClick}" String>
              <telerik1:RadDateTimePicker.CalendarStyle>
                    <Style TargetType="telerik1:RadCalendar" BasedOn="{StaticResource {x:Type telerik1:RadCalendar}}" >
                           <Setter Property="MonthViewHeaderFormat" Value="MMMM" />
                           <Setter Property="AreWeekNumbersVisible" Value="False"/>
                    </Style>
              </telerik1:RadDateTimePicker.CalendarStyle>
</telerik1:RadDatePicker>

 

Please help, is there anything in my code that doesn't let the TextBlock taking the format I need?

thank you

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2019
4 answers
142 views

I want to see which of my invalid grid rows are selected.

Basically I am wanting the same thing as this post - https://www.telerik.com/forums/selected-row-highlighting but I am using the VisualStudio2013 theme and trying to make a similar change didn't fix it.

 

 

Karl B
Top achievements
Rank 1
 answered on 19 Mar 2019
3 answers
345 views

We have VisualizationLayer which has ~2400 item that make moving around the map is very slow 
he is code example the resource is DrawingBrush with 2 GeometryDrawing one is arrow another is circle with stroke and fill in different colors. When the zoom level is low (you see more of the map) the map works very slowly. Can you tell me some solution for that?

 

01.<telerik:VisualizationLayer ItemsSource="{Binding items}">
02.                   <telerik:VisualizationLayer.ItemTemplate>
03.                       <DataTemplate>
04.                           <Rectangle Fill="{DynamicResource resource}"
05.                                      telerik:MapLayer.Location="{Binding Location}"
06.                                      telerik:MapLayer.ZoomRange="{Binding ZoomRange}"
07.                                      telerik:MapLayer.BaseZoomLevel="{Binding BaseZoomLevel}"                                        
08.                                      ToolTip="{Binding FormattedDate}" Width="16" Height="16" RenderTransformOrigin="0,0">
09.                               <Rectangle.RenderTransform>
10.                                   <TransformGroup>
11.                                       <TranslateTransform X="-8" Y="-8"/>
12.                                       <RotateTransform CenterX="0" CenterY="0" Angle="{Binding Heading}" />
13.                                   </TransformGroup>
14.                               </Rectangle.RenderTransform>
15.                           </Rectangle>
16.                       </DataTemplate>
17.                   </telerik:VisualizationLayer.ItemTemplate>
18.               </telerik:VisualizationLayer>
Petar Mladenov
Telerik team
 answered on 19 Mar 2019
4 answers
269 views
Hello,

i've got a problem with a self referencing hierarchy in a gridview.
I've got a List1 that i want to display in a gridview. List 1 has a Property List2 which contains elements of class2 --> (List<class2>).
For this case i used the HierarchyChildTemplate and it works fine.
my problem is that my List2 structure looks like this

id  parentId  name
1                   a
2       1          b
3       1          c
4       2          d
5       4          e

it is an n-level self referencing hierarchy. so i decided to do it similar to this example:
http://www.telerik.com/help/wpf/gridview-self-referencing-grid.html

myproblem is that the first 2 levels (handled by the HierarchyChildTemplate ) are working fine and the 3 to n level Elements (handled by the self referencing hierarchy example) are not displayed in the grid



Code:


<telerik:RadGridView x:Name="RadTreeListView1"
                AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding List1, Mode=TwoWay}"
                                 CanUserResizeColumns="True" CanUserFreezeColumns="False"
                                 RowLoaded="RadTreeListView1_RowLoaded">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                 <telerik:GridViewDataColumn
 
                        ...some Columndefinitions            />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView x:Name="StrukturListe" IsFilteringAllowed="False"
                                         CanUserSortColumns="False"
                                         CanUserFreezeColumns="False"
                                         AutoGenerateColumns="False" 
                                         ItemsSource="{Binding List2,Mode=TwoWay}">
                        <telerik:RadGridView.ChildTableDefinitions>
                            <telerik:GridViewTableDefinition>
                                <telerik:GridViewTableDefinition.Relation>
                                    <telerik:TableRelation IsSelfReference="True">
                                        <telerik:TableRelation.FieldNames>
                                            <telerik:FieldDescriptorNamePair
                                                ParentFieldDescriptorName="Id"
                                                ChildFieldDescriptorName="ParentId"/>
                                        </telerik:TableRelation.FieldNames>
                                    </telerik:TableRelation>
                                </telerik:GridViewTableDefinition.Relation>
                            </telerik:GridViewTableDefinition>
                        </telerik:RadGridView.ChildTableDefinitions>
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn
 
                        ...some Columndefinitions            />
 
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>


myClasshierarchy lools like this:

class1
    prop a
    prop b
    List<class2>    <-- 1 level deep

class2
    prop 1
    prop 2
    int ID
    int Parent

Dilyan Traykov
Telerik team
 answered on 19 Mar 2019
1 answer
112 views

Hello! I need to have a TabControl system where the tabs for the panes have 3 different states to them. 
- Inactive: Not selected or active

- Selected:  The tab is selected, but isn't the active pane

- Active: The tab is selected, but is also active

I want to be able to shift click multiple tabs to make them selected.  Then whatever pane has the focus, that would be the Active pane.  The reason for this is that I have a filter function that would filter that data this provided to the panes.  The user needs to be able to selected multiple tabs that would apply the filters to those selective and active panes. 

 

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Mar 2019
1 answer
839 views

Hi, 

I was wondering if there was any way to prevent double clicking on button? 

Currently, when my user double-click on any button in my RibbonView, it tries and starts the process twice, and depending of the process, crashes the app. Is there a way to disable the button until the action is done being executed? 

<telerik:RadRibbonButton Command="{Binding AddTravelClaimCommand}" Text="{DynamicResource TravelClaim.NewButton}" LargeImage="{StaticResource icon_addEvent}" Visibility="{Binding CanAddTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" ClickMode="Press" />
                    <telerik:RadRibbonButton Command="{Binding ViewTravelClaimCommand}" Content="{DynamicResource TravelClaim.ViewButton}" LargeImage="{StaticResource icon_preview}" Visibility="{Binding CanViewTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding EditTravelClaimCommand}" Text="{DynamicResource TravelClaim.EditButton}" LargeImage="{StaticResource icon_edit}" Visibility="{Binding CanEditTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding ViewTravelClaimHistoryCommand}" Content="{DynamicResource TravelClaim.ViewHistoryButton}" LargeImage="{StaticResource icon_history}" Visibility="{Binding CanViewTravelClaimHistory, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding WithdrawTravelClaimCommand}" Content="{DynamicResource TravelClaim.WithdrawButton}" LargeImage="{StaticResource icon_withdraw}"  Visibility="{Binding CanWithdrawTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}"/>
                    <telerik:RadRibbonButton Command="{Binding DeleteTravelClaimCommand}" Content="{DynamicResource TravelClaim.DeleteButton}" LargeImage="{StaticResource icon_delete}" Visibility="{Binding CanDeleteTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />
                    <telerik:RadRibbonButton Command="{Binding CancelTravelClaimCommand}" Content="{DynamicResource TravelClaim.CancelButton}" LargeImage="{StaticResource icon_cancel}" Visibility="{Binding CanCancelTravelClaim, Converter={StaticResource BooleanToVisibilityConverter}}" />

 

Thank you so much, 

Vladimir Stoyanov
Telerik team
 answered on 19 Mar 2019
2 answers
219 views

Hi guys,

I am having some issues with binding the DataFormComboBoxField.  I am setting the item source of the comboboxfield to a collection that is not stored in the CurrentItem of the RadDataForm.  I wish to update the EditableModel with the JobID from the selected drop down value.  Also the Combobox should have the item selected base on the item set in the EditableModel on load.  Any help would be appreciated.  

 

VIEW MODEL

    public class EditableViewModel : ReactiveObject
    {
        public EditableModel SelectedEntity { get; set; }
        public List<JobModel> Collection { get; set; }
    }

 

Models

    public class EditableModel
    {

        public string Name { get; set; }
        public int JobId { get; set; }
    }

    public class JobModel
    {
        public string Name { get; set; }
        public int Id { get; set; }
    }

VIEW

<reactiveui:ReactiveWindow 
    x:Class="TestWpfApplication.MainWindow"
    x:TypeArguments="test:EditableViewModel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:test="clr-namespace:TestWpfApplication.ViewModels"
    xmlns:reactiveui="http://reactiveui.net"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Title="NuGet Browser" Height="450" Width="800"
    mc:Ignorable="d">
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="MyTemplate">
                <StackPanel>
                    <telerik:DataFormDataField  Label="First Name" DataMemberBinding="{Binding Path=Name, Mode=TwoWay}"  />
                    <telerik:DataFormComboBoxField  Label="Job" SelectedValuePath="Id" DisplayMemberPath="Name" DataMemberBinding="{Binding JobId, Mode=TwoWay}" ItemsSource="{Binding Jobs, Mode=TwoWay}"/>
                </StackPanel>
            </DataTemplate>
        </Grid.Resources>
        <telerik:RadDataForm AutoGenerateFields="False" x:Name="RadDataForm" EditTemplate="{StaticResource MyTemplate}"/>
    </Grid>
</reactiveui:ReactiveWindow>

 

Vladimir Stoyanov
Telerik team
 answered on 19 Mar 2019
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?