Telerik Forums
UI for WPF Forum
6 answers
151 views
Hi,

i have a problem with sorting and filtering. In my project i want to display a collection, in which are the items from different class type but have some same-named properties.
i.e.
ViewModelClassA : ViewModelBase
ViewModelClassB : ViewModelBase
ViewModelClassC : ViewModelBase
they all have the properties: Name, Description, Comment.
So i displayed this collection and want to use the sorting and filtering functions. Aber the filter and the sorting effect will not be shown.
I have tried to just take one type of my class, then everything is ok. I see the filter and the sorting effect.

Is there a discussion about this problem or even better there is already a solution for that? Thanks a lot!

Ivan
Dimitrina
Telerik team
 answered on 15 Aug 2014
3 answers
175 views
Hi, does your WPF grid support simple user-defined formulas like the Infragistics grid?

I'm looking at the possibility of port ing from Infragistics to you guys but I need functionality.

The feature is a formula button in the grid column header  which has options to Sum, average, count, max, min the values. Once selected it inserts a special row under the header to show the results. If unselected it disappears. Attachment shows this.

Please let me know if you do or do not support this.

Thanks a lot. 
Dimitrina
Telerik team
 answered on 15 Aug 2014
3 answers
73 views
I searched over the net and I could not find any easy way to Drag and drop a row between 2 dynamically created RadGridView. Can you please suggest a way for doing this.
Dimitrina
Telerik team
 answered on 15 Aug 2014
1 answer
67 views
I wonder why telerik WinForm have a Wizard control but WPF is not available. I already checked that there is a thread created about this since 2011 and now 2014 still the same TELERIK or that control has a different name in WPF?.


Yana
Telerik team
 answered on 15 Aug 2014
3 answers
106 views
Am I missing something, or is the user not able to add and remove buttons to the QAT at run-time?

On most RibbonView applications, it is possible for the user to add and remove various command to the QAT when running the application, thereby personalizing the menu. This does not seem to be possible out of the box with the Telerik RibbonView
Kiril Vandov
Telerik team
 answered on 15 Aug 2014
1 answer
110 views
I have a RadDataForm and an EditTemplate defined. What I would like to do is have two different EditTemplates based on user role (different fields and edit capabilities), and switch to the appropriate one at run time. Is there a way to do this?
Yoan
Telerik team
 answered on 15 Aug 2014
1 answer
89 views
Hi,

for my application I created a UserControl which contain a RadScheduleView. We are looking forward to have a mechanism to customize a set of navigation keys, as an example, instead of using the arrow keys to navigate through the appointements and the slots, we want to let the user to determine which keys they want to up to navigate through the appointments and the slots. I would like to know if it's possible to have something like this through the NavigationBehavior or through something else?!?

Thank's
Alain
Rosi
Telerik team
 answered on 15 Aug 2014
8 answers
3.4K+ views
I have a GridViewComboBoxColumn. I dont want the users to be able to edit the data in the column. I am setting the IsEnabled to False but that does not work. Please advise

<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Author}" ItemsSource="{Binding Authors}" SelectedValueMemberPath="Initials" DisplayMemberPath="LastName" Width="100" IsEnabled="False" />
Dimitrina
Telerik team
 answered on 15 Aug 2014
4 answers
123 views

I have some hierarchical data where my Primary ItemSource is a List<foo>   where foo contains a property List<MonthType> Months

In my gridView  I can do the following and it displays the sub List<Months> amount information in columns

<telerik:GridViewDataColumn Header="Account Title" DataMemberBinding="{Binding AccountTitle}" />
<telerik:GridViewDataColumn Header="Jan" DataMemberBinding="{Binding Months[0].Amount}" />

...

But this does not work

<telerik:GridViewExpressionColumn Header="Total2"  UniqueName="TotalValue2" DataFormatString="{}{0:C}" Expression="Months[0].Amount + ... + Months[11].Amount" />

If I put in a simple test - this works (Where RowID is a valid in in my data Object).

<telerik:GridViewExpressionColumn Header="Total" UniqueName="TotalValue" DataFormatString="{}{0:C}" Expression="RowID * 2" />


Any ideas on how to get this simple expressionColumn to work?

 

 

 

 

Rod
Top achievements
Rank 1
 answered on 14 Aug 2014
1 answer
795 views
Hello, I would like to enquire on a solution to as per title.

If the ComboBox is simply a GridViewColumn, it would had been straight-forward like this:
((GridViewComboBoxColumn)gridPrintOption.Columns["PrintCode"]).ItemsSource = listPrintCode;

But now that it is in a DataTemplate (of a ListBox), it is more complicated as there's no direct means of accessing the controls.
Below are the codes of what I currently have, simplified:

<telerik:RadListBox Grid.Row="0" Grid.Column="2" Margin="0, 5, 5, 5"
            x:Name="listBoxIssue" HorizontalAlignment="Left" VerticalAlignment="Top"
            Height="690" Width="793"
            ItemTemplate="{StaticResource lbIssueTemplate}" ItemsSource="{Binding}">
<DataTemplate x:Key="lbIssueTemplate">
        <Grid Margin="0" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>            
            <ComboBox x:Name="PrintCode" Grid.Row="0" Grid.Column="2" ItemsSource="{Binding}"
                      SelectedValuePath="PrintCode" DisplayMemberPath="PrintCode" />
        </Grid>
    </DataTemplate>

So basically I'm binding 2 different objects here. 1 to the ListBox, and 1 to the ComboBox. The object that binds to the ListBox has a property which is used as the "SelectedValuePath" of the ComboBox, while the object that binds to ComboBox simply provide the ComboBox with the list of options available for users to choose upon drop-down. Everything is fine as it is, but the only problem is I don't know how to bind the object to the ComboBox in non-MVVM way. If it were a GridViewColumn, I would have solved the problem as shown in my 1st code block.
Yana
Telerik team
 answered on 14 Aug 2014
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?