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

3 posts, 0 answers
  1. Muhammad Djamaluddin
    Muhammad Djamaluddin avatar
    4 posts
    Member since:
    Apr 2010

    Posted 08 Apr 2010 Link to this post

    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. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. p k
    p k avatar
    6 posts
    Member since:
    Dec 2009

    Posted 08 Feb 2011 Link to this post

    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
Back to Top