Telerik Forums
UI for WPF Forum
3 answers
140 views
Hi,

is it possbile to view a Report (Example the Dashboard.trdx) in a wpf Application?

Thanks
Best Regards
Rene
Steve
Telerik team
 answered on 16 Jan 2013
7 answers
143 views

Is it possible to write unit test against the VirtualQueryableCollectionView? I tried to write a unit test to verify the VirtualItemCount, but it seems that the collection is tightly coupled to the UI components and therefore requires tests to run on a STA thread. Is this correct?

Vlad
Telerik team
 answered on 16 Jan 2013
1 answer
177 views
This exception occurred while I was using the RadRichTextBox, and it crashed my application.  I have not been able to reproduce it since.  I am on RadControls for WPF version 2012.3.1017.40.

ShellApplication.HandleException : InteractionDesktopClient: App Domain Unhandled exception
Top Exception
Type=System.ArgumentNullException
Source=mscorlib
Message=Value cannot be null.
StackTrace:
   at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
   at System.Threading.Monitor.Enter(Object obj, Boolean& lockTaken)
   at Telerik.Windows.Documents.DocumentPosition.Dispose() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\DocumentPosition\DocumentPosition.cs:line 2626
   at Telerik.Windows.Documents.DocumentPosition.Finalize() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\DocumentPosition\DocumentPosition.cs:line 2650

Is this a known issue?

Thanks,
Evan
Boby
Telerik team
 answered on 16 Jan 2013
5 answers
638 views
Hi,

I am trying to use the AggregateFunctions and display them inside the Footer of the Grid using ItemsControl.ItemTemplate similar to the sample you provide. Though this works fine I have run into a problem, I have a tab control with 2 tabs inside each tab I have a Grid both using AggregateFunctions displayed in the footer using the ItemsControl.ItemTemplate. Initially the footers are displayed fine, if I however move between tabs/grids the footers are displayed empty.

If I do not use the ItemsControl.ItemTemplate approach the footers work fine, if I go and add or update the contents of the grid then the footer is displayed correctly again.

This code does not work:

<telerik:GridViewDataColumn Header="Available Amount" UniqueName="Amount" DataMemberBinding="{Binding Amount}" > 
    <telerik:GridViewDataColumn.AggregateFunctions> 
        <telerik:SumFunction Caption="Sum: " ResultFormatString="{}{0:0}" SourceField="Amount" /> 
        <telerik:AverageFunction Caption="Average: " ResultFormatString="{}{0:0}" SourceField="Amount" /> 
    </telerik:GridViewDataColumn.AggregateFunctions> 
    <telerik:GridViewDataColumn.Footer> 
        <StackPanel Orientation="Vertical" Margin="5,0">  
            <telerik:AggregateResultsList ItemsSource="{Binding}" VerticalAlignment="Center" Grid.Column="4">  
                <ItemsControl.ItemTemplate> 
                    <DataTemplate> 
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">  
                            <TextBlock VerticalAlignment="Center" Text="{Binding Caption}" Width="100"/>  
                            <TextBlock VerticalAlignment="Center" Foreground="Blue" Text="{Binding FormattedValue}" /> 
                        </StackPanel> 
                    </DataTemplate> 
                </ItemsControl.ItemTemplate> 
                <ItemsControl.ItemsPanel> 
                    <ItemsPanelTemplate> 
                        <StackPanel Orientation="Vertical" /> 
                    </ItemsPanelTemplate> 
                </ItemsControl.ItemsPanel> 
            </telerik:AggregateResultsList> 
        </StackPanel> 
    </telerik:GridViewDataColumn.Footer> 
</telerik:GridViewDataColumn> 

This code does display but I would really like to control how it is displayed:

<telerik:GridViewDataColumn Header="Available Amount" UniqueName="Amount" DataMemberBinding="{Binding Amount}" > 
    <telerik:GridViewDataColumn.AggregateFunctions> 
        <telerik:SumFunction Caption="Sum: " ResultFormatString="{}{0:0}" SourceField="Amount" /> 
        <telerik:AverageFunction Caption="Average: " ResultFormatString="{}{0:0}" SourceField="Amount" /> 
    </telerik:GridViewDataColumn.AggregateFunctions> 
</telerik:GridViewDataColumn> 

I am using Q2 2009 (Version: 2009.2.701.35)

Hopefully it is something I am missing.

Regards,
Glen
Pankaj
Top achievements
Rank 1
 answered on 16 Jan 2013
4 answers
169 views
Is there a way to increase the height of the tab size (below the title bar).

Thanks

Chom
Chom
Top achievements
Rank 1
 answered on 15 Jan 2013
1 answer
151 views
Good Day,

We use Telerik WPF controls Version 2012 Q2. we have a problem regarding the handling of the menu of options offered by the RadDiagram, modify the content and include new options. The problem is that we want to load a list of options through the DependencyProperties, this was possible but we can not tell you to select element after being added as the method telerik: SettingsPaneView.EditorValue being used to tell the ListBox to property friendly.

Down with information on how we are achieving this. hope can help,
  Thank Telerik Team.

ListColumn = List different values
ListColumnSelectedItem = Selected Item

telerik:SettingsPaneView.EditorPropertyName="ListColumn" <telerik:RadListBox telerik:SettingsPaneView.EditorItemType="Shapes,Custom" telerik:SettingsPaneView.EditorValue="{Binding ItemsSource, Mode=TwoWay, RelativeSource={RelativeSource Self}}">
                 </ telerik: RadListBox>
Hristo
Telerik team
 answered on 15 Jan 2013
3 answers
83 views
I have a RadGridView and DataGrid implementation of a grid with with about 20 columns. A large number of the columns use cell templates and some of them use converters as well. I've noticed that when I edit and then tab between columns the RadGrid's performance has a noticeable lag compared to the DataGrid. Any ideas as to what might cause this and ways to alleviate?

Thanks,
Alex
Nedyalko Nikolov
Telerik team
 answered on 15 Jan 2013
6 answers
313 views

Hi,

First I apologize if the following issues are already replied.

I am using the WPF Calendar and I have the following issues:

  1. When I try to set the SelectableDateStart to a date prior to current Month (e.g 20 May 2011)

calendar starts again from current month (June in our case).

How is it possible to show calendar starting from the right month?

In my example I use the following dates:

SelectableDateStart: 20 May 2011

SelectableDateEnd: 26 October 2011

I also calculate the DisplayDateStart to be the first day of SelectableDateStart,

and DisplayDateEnd to be the last day of SelectableDateEnd.

  1.  When I try to set SelectableDateStart to a date after the current month (e.g 8 July 2011)

I get an ArgumentOutOfRangeException:

Invalid DisplayDateStart value.

Parameter name: sender


Thanks in advance

Alek
Telerik team
 answered on 15 Jan 2013
2 answers
194 views
In an MVVM application I have a RadGridView bound to an ObservableCollection of objects that implement INotifyPropertyChanged. I can edit an object in this collection in another viewmodel and I can see this change propagate (via a PropertyChanged event handler on the current item) to the viewmodel with the RadGridView but the grid does up update the column.

The grid does see additions and deletions from the collection, but not individual object property changes.

I know this worked at one time, and we have upgraded our telerik tools recently, so I'm wondering if anything has changed.
Kevin
Top achievements
Rank 1
 answered on 15 Jan 2013
1 answer
135 views
I'v created a simple WPF user control containing a RadGridView
which I am hosting on a WinForms form using an elementHost.

The issues occur when I'm creating a custom hierarchy, basically creating a master-detail of companies and employees.
I have done so by adding a childTableDefinition through the xaml and subscribing to the DataLoading event to tinker with the inner grid (just like your given sample).
When the mouse hovers over the scroll bar of the inner grid, it glows but if I press it down and drag the outer scroll bar is the one responding.
Oddly, I can still scroll with the keyboard and the mouse scroll.
Trying to deal with the issue myself I've found that setting IsScrolling to true and then to false during the DataLoading event fixes the problem, but it still occurs with other scroll bars I have no control over, specifically when using the column sort - there are combo boxes inside the sort dialog which manifest the exact same behavior.

Sorry if I haven't been so clear in my description and thanks in advance.
Vera
Telerik team
 answered on 15 Jan 2013
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?