Telerik Forums
UI for WPF Forum
1 answer
722 views

Hi,

I want radgridview to scroll like Datagid  (ScrollViewer.CanContentScroll="True")

 

<Window x:Class="WpfApp1.MainWindow"
        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:local="clr-namespace:WpfApp1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <DataGrid ItemsSource="{Binding SampleDataList}"  ScrollViewer.CanContentScroll="True" Grid.Row="0" RowHeight="40" />
        <telerik:RadGridView  ItemsSource="{Binding SampleDataList}" Grid.Row="1" ScrollViewer.CanContentScroll="True" RowHeight="40"  />
    </Grid>
</Window>

Dilyan Traykov
Telerik team
 answered on 29 Oct 2018
4 answers
338 views

Hello,

 

I work with version 2016 R3.

 

I have a series of Data like this

DataType | DataPoint | Value

I displayed correctly all values with either DataType and DataPoint in column or row

 

Now I want to use different string format according to which DataType it corresponds.

I found the StringFormatSelector on the PropertyAggregateDescription and I thought I could use it like any [...]Selector but I don't have in input of the SelectStringFormat method the CellAggregateValue associated.

 

For now the only way to do that is by using a converter on the CellTemplateSelector of the PivotGrid

(I'm currently implementing it, it's not working as expected yet)

 

Is there a best way to achieve different string format according to a celldata ?

 

Regards

Thomas

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
1 answer
123 views

Hi,

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" >
                    <telerik:GridViewColumn.CellStyle>
                        <Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="ContentTemplate">
                                <Setter.Value>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <CheckBox x:Name="checkBox"/>
                                            <TextBlock x:Name="textBlockA" Text="AAAAAAA"/>
                                            <TextBlock x:Name="textBlockB" Text="BBBBBBB"/>
                                        </StackPanel>
                                        <DataTemplate.Triggers>
                                            <DataTrigger Binding="{Binding ElementName=checkBox,Path=IsChecked}" Value="false">
                                                <Setter TargetName="textBlockB" Property="Visibility" Value="Collapsed"/>
                                            </DataTrigger>
                                        </DataTemplate.Triggers>
                                    </DataTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerik:GridViewColumn.CellStyle>
                </telerik:GridViewDataColumn>

    I use your demo do a test about gridviewcolumn width, As the attach video show. 

 When I check the checkBox in column style,the column with stretch automatically, 

 when I unchecked, the column width  do not get shorter. Is there any method make the column get shorter When I unchecked in the NameColumn

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
0 answers
46 views

Hi,

I'm using the Outlook Template from Telerik.

What I've done is that I've swapped the current grid with my own item source which list the categories the 1. grid.

What I want to do is upon selecting a row, I want upon choosing a row from the 1.grid to send categoryID parameter to viewmodel, and viewmodel is going to run the sample function which retrieves the data from the database. 

My function is retrieving the data just fine. I just need to find out how to make selected row in grid 1, call on this retrieve data function and update the gridview 2 with new items. If I decide to choose another row in grid 1, it would call on the retrieve data function again with new categoryID as parameter

How can I achieve this?

Khoa
Top achievements
Rank 1
 asked on 26 Oct 2018
5 answers
616 views

Hello

I am in vb.net with wpf, I have an existing radgridview with custom validationDiffProperty. I am using telerik v 2017.3.1018.45

My goal is to add a radgriview row with radcombox (see attach image). I know how to add a radcombobox column in a radgridview, but I don't know how to add a "radcombobox row" in a radgriview.

Could you please help me ?

Regards

Jean-Christophe

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
1 answer
81 views
How can I increase a custom Shape area to below? Connection point and connection line should remain in the same position.
Martin Ivanov
Telerik team
 answered on 26 Oct 2018
1 answer
68 views

I have a timebar used to selecting time range. However sometimes when the interval is short and located far to the right, the text showing the selected time is cut off, like this: https://i.gyazo.com/179cc9d932da3bcfa08fe38558cbb0ca.png

How can I prevent this? For example make the label right aligned instead of left aligned if it's too far to the right.

Martin Ivanov
Telerik team
 answered on 26 Oct 2018
16 answers
2.7K+ views
Hi,

I'm trying to find out if you guys make the source code available for download for the WPF Controls Examples. I would do the clickonce app that you guys link to in your help (i.e. http://demos.telerik.com/wpf) but it requires SQL Server Express '08. I don't have that installed nor do I want to install it just to get to your demos...What's my alternative?

Thanks
Martin Ivanov
Telerik team
 answered on 26 Oct 2018
1 answer
111 views

I'm needing the datetimepicker to allow the user to select an option for each second over the day, but when i'm down to just 15 minutes the boxes get too small for being able to see the text. 

I've scrolled view documentation and the forum and can't find any solution.

Vladimir Stoyanov
Telerik team
 answered on 25 Oct 2018
3 answers
1.6K+ views
None of the solutions presented in the following threads works:

https://www.telerik.com/forums/how-to-disable-the-user-input

https://www.telerik.com/forums/disable-input-field-force-user-choose-date-by-click-on-calendar

https://www.telerik.com/forums/how-to-disable-input

The objective in unable the user to type a text and allow him to choose a date only by clicking button.
Dilyan Traykov
Telerik team
 answered on 25 Oct 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?