Telerik Forums
UI for WPF Forum
8 answers
368 views
I am facing an issue whereby I have 184 columns and I just bind to 10 of those. The rest exist in the background and are not shown on the UI. I have noticed that when I switch from a certain element to another in order to populate the data grid with the respective information of the corresponding element the performance is really slow. I have also fixed the width and height of the data grid, therefore it doesn't seem that there's any issue with respect to the telerik data grid drawing out infinite dimensions. Any insight and suggestions about improving the performance of the radgridview would be really helpful. 

PS: Would it be possible to do a live web session with you guys since if things don't work for us, our clients are getting impatient and we might replace the telerik grid view with the default wpf grid control.

Code Snippet:

<Grid HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition />
        </Grid.RowDefinitions>
         
        <!--ListBox ItemsSource="{Binding Path=PdsTrancheResults,
            Converter={StaticResource RowTemplateConverter}}"
                 ItemTemplate="{StaticResource RowTemplate}"
                  
                 >
             
        </ListBox>-->
 
        <!--<DataGrid ItemsSource="{Binding Path=PdsTrancheResults, Converter={StaticResource RowTemplateConverter}}"
                  AutoGenerateColumns="True"/>-->
        <telerik:RadGridView IsFilteringAllowed="False" Grid.Row="1"
                                     x:Name="ResultOutPutGrid"
                                     HorizontalAlignment="Stretch"                           
                                     IsReadOnly="True"                                    
                                     ItemsSource="{Binding Path=PdsTrancheResults, IsAsync=True}"                            
                                     AutoGenerateColumns="False"                                                                                                                                           
                                     AlternationCount="2"                                   
                                     EnableRowVirtualization="True"                             
                                     EnableColumnVirtualization="True"
                             DataLoadMode="Asynchronous"
                                        MaxWidth="600"
                             MaxHeight="900"
                                     SelectionMode="Extended"                                     
                                     ShowGroupPanel="False"                                      
                                     telerik:StyleManager.Theme="Windows7"
                              
                                     >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Period}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Period" TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Season}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Seasoning"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>               
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Coupon}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Coupon"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Balance}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Balance"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding OrigBalance}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Original Balance"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding MoodysRating}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Moodys Rating"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn DataMemberBinding="{Binding AvgOcPct}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Avg Acct Pct"  TextWrapping="Wrap" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
    </Grid>
Dimitrina
Telerik team
 answered on 20 Jul 2012
3 answers
231 views
Hi,
I got a serious problem when I using TimeBar with multiple RadLinearSparklines.
data points = 3 x 24 x 60 = 4320.
the movement is too slow.

What's the best way to use TimeBar with multiple lines?


<
Window x:Class="WpfApplication4.MainWindow"
        xmlns:example="clr-namespace:WpfApplication4"
        Title="MainWindow" Height="350" Width="1024">
    <Window.DataContext>
        <example:ExampleViewModel StartDate="2012-01-01 00:00:00" EndDate="2012-01-04 00:00:00" />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="AUto"/>
        </Grid.RowDefinitions>
        <telerik:RadTimeBar Margin="6" VerticalAlignment="Top"  telerik:StyleManager.Theme="Metro"
                            PeriodStart="2012-01-01 00:00:00"         PeriodEnd="2012-01-04 00:00:00"
                            VisiblePeriodStart="2012-01-01 00:00:00" VisiblePeriodEnd="2012-01-01 06:00:00"
                            SelectionStart="2012-01-01 02:00:00"     SelectionEnd="2012-01-01 03:00:00"
                            MinSelectionRange="00:01:00"
                            IsSnapToIntervalEnabled="False"
                            FontSize="9"
                            SelectionTitleFormatString="{}{0:yyyy'-'MM'-'dd HH':'mm':'ss} - {1:yyyy'-'MM'-'dd HH':'mm':'ss}">
            <telerik:RadTimeBar.Intervals>
                <telerik:DayInterval />
                <telerik:HourInterval  IntervalSpans="1,6,12,20" />
                <telerik:MinuteInterval IntervalSpans="1,10,15,30" />
            </telerik:RadTimeBar.Intervals>
            <StackPanel>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Red" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Blue" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Green" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8"  LineStroke="Cyan" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Brown" />
                <Border Height="1" Background="LightGray"/>
                <telerik:RadLinearSparkline ItemsSource="{Binding LinearData2}" XValuePath="Date" YValuePath="Value" Height="40" Margin="0 8" LineStroke="Magenta"/>
                <Border Height="1" Background="LightGray"/>
            </StackPanel>
        </telerik:RadTimeBar>
    </Grid>
</Window>



Tsvetie
Telerik team
 answered on 20 Jul 2012
4 answers
248 views
Hi guys,

I have described my problem with hosting a Win32 OSG (built on OpenGL) control in RadDocking for WPF here:
http://stackoverflow.com/questions/10544938/hosting-a-win32-window-in-a-wpf-floating-tear-off-tab

Do you have any ideas what might cause the problem?

Thanks,
Seth
Miroslav Nedyalkov
Telerik team
 answered on 20 Jul 2012
3 answers
171 views
Hello,
On my window I have RadGridView, and defained default key events:
Escape : close window
Enter    : try commit data and close window
The problem is, when somebody open filter control, try enter value to it and press Enter key to apply filter.
It cause commit and close event on my window. How to handle key events on filter control, and disable routing to my window, when filter control is open??
 
Rossen Hristov
Telerik team
 answered on 20 Jul 2012
0 answers
83 views
Hi,
I have a grid upto four levels in heirarchy,When I expands the grid it takes lots of seconds to expand the grid,My code is:

<UserControl x:Class="WPF_WindowPO.UcWorksheet"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"       xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"                 
      xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gridview"
          Loaded="UserControl_Loaded" d:DesignHeight="614" d:DesignWidth="940">
<grid>
<telerik:RadGridView RowIndicatorVisibility="Collapsed" AutoGenerateColumns="True" ItemsSource="{Binding}" ></telerik:RadGridView>
</grid>
</UserControl >
Also please let me know how to alogn the columns of header and heirarchy?
Any help will be highly appreciated..

Thanks
Anjali
Top achievements
Rank 1
 asked on 20 Jul 2012
0 answers
81 views
Hi,

There's an event that execute when a new RadListItem is inserted???

Else....

How can I simulated that???

thanks all
Romell
Top achievements
Rank 1
 asked on 20 Jul 2012
1 answer
112 views

Dear Telerik:

How can i get below format in RadDataGridview(WPF) as Balance column Dr and Cr symbols and finally the totals in grid's summary 
with symbol and comma seprated.

Note: I am using WPF_2012_2_0703 Build

Code

Particulars

Balance

1001

ABC

1,000 Cr

1002

XYZ

1,000 Dr

1003

AAA

2,000 Dr

Total

 

2,000 Dr


Thanks in Advance...

Regards,
Mohammed
Dimitrina
Telerik team
 answered on 20 Jul 2012
4 answers
285 views
Hi,

I am using RadScheduleView (WPF) for the touch screen application currently developing.Trying to implement the below styling changes to RadScheduleView

1. Increase the height of calendar View Definitions List / Ribbon (where the Day, Week, Month, etc. options are)
2. Increase the size of calendar navigation buttons (right side of calendar ribbon) 
3. Increase the height of scrollbar at the bottom of the calendar 
4. Open the Appointment Dialog for single click of an Appointment
5. Remove the delete button 'x' from the Appointment

Right clicked the properties -> AppointmentStyleSelector and selected Extract Value to Resource, below error is seen

"Could not create resource"
"Value cannot be null."
"Parameter name : PropertyKey"

I am using the Metro Theme (RadControls for WPF Q1 2012). Does not have Expression Blend.
I do not know if I will require the XAML markup for the ScheduleViewBase implementing the above changes.

Kindly suggest.

Please let me know for any clarifications.

Thank you & Regards,
Phani.

Phani Kumar
Top achievements
Rank 1
 answered on 19 Jul 2012
4 answers
358 views
I am having an issue with the scroll bar on some of my gridviews. I am binding the itemssource to an observable collection of business objects. The size it shows the scroll bar when the data is first loaded, is smaller than the size of the scroll bar after I scroll through the data. 

Is there some property I need to set so that it detects the number of rows in a collection before drawing the scroll bar?

I have a attached a screen shot showing the issue. The first gridview shows the scroll bar after the data is initially loaded. The second shows the scroll bar after scrolling through the data.
Vera
Telerik team
 answered on 19 Jul 2012
7 answers
547 views
All of the values in my Group Footers row show in the Group Headers row.  I would like to hide most of the values and show only 2.  How can I selectively show some values in the Group Header and hide others?

Thank you.
Dimitrina
Telerik team
 answered on 19 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?