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

Radgrid Virtual Scrolling lose records

5 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lasly
Top achievements
Rank 1
Lasly asked on 08 Mar 2012, 03:08 PM
Hi,
I have the problems with a Virtual Scrolling :

1) I can not select the last item on the page because it goes immediately to the next page
2)I have a tab with a RadGrid with virtual scrolling.
If I am placed on the first page of the RadGrid and change tab and then I come back I see the page with the correct lines of the RadGrid.
If I am placed on the second page of the RadGrid and change tab and then I come back I see the page without RadGrid rows of data.
Why?

thanks

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Mar 2012, 10:28 AM
Hello Lasly,

Can you elaborate a bit more on your scenario? Please specify if the problem persists without virtual scrolling enabled. Are you loading the controls with ajax as shown in this online example? Also clarify how you populate the grid control with data.

I am looking forward for your reply.

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Lasly
Top achievements
Rank 1
answered on 13 Mar 2012, 11:06 AM

Hi,
the problem don't persists without virtual scrolling enabled.
The first time (first time only) I call the page imposed RadGrid. (Pager, export, size etc.)
follows a small piece (I do not think that is the problem):

grid.MasterTableView.CommandItemSettings.ShowExportToCsvButton = true;
           grid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true;
           grid.MasterTableView.CommandItemSettings.ShowExportToPdfButton = true;
           grid.MasterTableView.CommandItemSettings.ShowExportToWordButton = true;
           grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
             
           grid.HeaderStyle.Font.Bold = true;
           grid.HeaderStyle.HorizontalAlign = HorizontalAlign.Left;
           grid.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
           grid.AlternatingItemStyle.HorizontalAlign = HorizontalAlign.Left;
             
           grid.MasterTableView.IsFilterItemExpanded = false;
             
           grid.AllowSorting = true;
           grid.AllowFilteringByColumn = true;   
           grid.EnableHeaderContextFilterMenu = true;
           grid.EnableHeaderContextMenu = true;
           grid.GroupingSettings.CaseSensitive = false;    
             
           grid.EnableLinqExpressions = false;

I use the  NeedDataSource to popolate the radgrid:

protected void grdElencoProprietari_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
          grdElencoProprietari.DataSource = CaricaProprietari();
        }

 Thanks

0
Pavlina
Telerik team
answered on 13 Mar 2012, 12:08 PM
Hello,

Which version of RadControls you are using in your project?

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Lasly
Top achievements
Rank 1
answered on 13 Mar 2012, 12:15 PM
Hi,
sorry I forgot to write it.
Use the version 2011.3.1202.40

Thanks
0
Pavlina
Telerik team
answered on 19 Mar 2012, 02:41 PM
Hello Lasly,

I suggest that you try setting AutoPostBack property of TabStrip control to true and see if the issue still persists. Additionally, I am attaching a sample test project which is working properly. Please give it a try and let me know if it helps to resolve the described problem.

Greetings,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Lasly
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lasly
Top achievements
Rank 1
Share this question
or