This is a migrated thread and some comments may be shown as answers.

Problem in GridView : Silverlight app freezed when using filter, sorting and paging

2 Answers 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Muhammad Djamaluddin
Top achievements
Rank 1
Muhammad Djamaluddin asked on 09 Apr 2010, 02:04 AM
Hi all,

I have an application that utilized telerik gridView,but I encounter some problems that I can't resolved.
Everytime a user clicks a header column for sorting data in grid, or doing some filtering or move to next grid page,
the application just freezed after few try. It's Ok for first or second time to do such operation but the next try application
just freezed, not responding to user click and eventually I have to force IE/Firefox closed manually.
What I want to know is when doing sorting, filtering etc does this involved sending data to server, or operation is just in the client?
Is there any issue with telerik gridview for those type operation?
Or is there setting in gridview that can cause this problem to happen?

Below is extract of my code :

ScenarioListPage.xaml

         <data:DataPager x:Name="scenarioDataPager" Source="{Binding ItemsSource, ElementName=dgScrenarioList}" IsTotalItemCountFixed="True" Margin="10,0" DisplayMode="FirstLastPreviousNextNumeric" VerticalAlignment="Top" />
         <grid:RadGridView x:Name="dgScrenarioList" CanUserFreezeColumns="False" AutoGenerateColumns="False"  IsReadOnly="True"  Background="#FFFAFBCF" ItemsSource="{Binding ScenarioList,Source={StaticResource TheViewModel}}"  TabIndex="1" CanUserReorderColumns="False" CanUserSortColumns="True"  ShowColumnHeaders="True" ShowGroupPanel="False" UseAlternateRowStyle="True" Margin="10,28,10,0"  >
                    <grid:RadGridView.Columns>
                        <grid:GridViewDataColumn Header="Title" Width="170" DataMemberBinding="{Binding ScenarioInfo.Title, Mode=OneWay}" TextWrapping="Wrap" />
                        <grid:GridViewDataColumn Header="Description" Width="250" DataMemberBinding="{Binding ScenarioInfo.Description, Mode=OneWay}" TextWrapping="Wrap"/>
                        <grid:GridViewDataColumn Header="#Hazards" Width="110" DataMemberBinding="{Binding NoHazards, Mode=OneWay}" IsFilterable="True"/>
                        <grid:GridViewDataColumn Header="Active" Width="80" DataMemberBinding="{Binding ScenarioInfo.Active, Mode=OneWay, Converter={StaticResource ActiveFieldFormatter}}" IsFilterable="True"/>
                    </grid:RadGridView.Columns>
                </grid:RadGridView>

And in ScenarioListPage.cs

             viewModel.OperationCompleted -= viewModel_LoadComplete;
             QueryableCollectionView view = new QueryableCollectionView(viewModel.ScenarioList) { PageSize = 20 };
            dgScrenarioList.ItemsSource = view;

viewModel.ScenarioList is an ObservableCollection object filled by a web service.
Is there any seeting in my gridview above that cause filtering, sorting and paging problem as I mentioned above?

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Apr 2010, 06:29 AM
Hi,

As far as I can see this grid will sort, group, filter, etc. completely on client. Can you post more info about the grid version?

Sincerely yours,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
p k
Top achievements
Rank 1
answered on 08 Feb 2011, 09:45 AM
Hi,

I am also facing the same issue, like freezing the application on filtering.
Our application is OOB in silverlight 4 and telerik version is 2010.3.1110.1040.
Please help ASAP.

Regards,
Purushottam
Tags
GridView
Asked by
Muhammad Djamaluddin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
p k
Top achievements
Rank 1
Share this question
or