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

RadGrid - in ascx / various pages / refreshing / paging issues

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Aug 2011, 10:44 AM
I have a RadTabStrip that has RadMultiPages that contains ascx controls that contain RadGrid. This Tabstrip/Page exists as a nestedcontrol inside a RadGrid (master). One of the ascx controls deals with 'database' messages. This control using the code reccomendations for binding .. i.e. gridMessage.rebind() to fire the GridMessage_onNeddDatasource to use Linq to supply data for the RadGrid Datasource.

All works ok until I use the paging / move to next page. What I see is that the grid disapears when moved to page 2, even though I see the onNeedDatasource method fire and the data supplied. I then Click to go back to page 1 of the grid and find I get the number of rows for a page displayed as empty, and images that exist in an ItemTemplate column are displayed.

I have tried recreating the control from scratch and find I get the same results. In the RadTabStrip/RadMultiPages I also have 3 other ascx controls that contain the RadGrid, but the data is displayed and Grids correctly perform. Im not sure why this particular message RadGrid breaks and wonder if anyone can shed some light for where I look to make a fix.

I have also had various issue related to refreshing and use of RadWindow controls on another RadGrid that is found in three areas of my app. In each senario whereby this specific control exists (On own in a page, inside a RadMultiPages in a nestedcontrol of a master RadGrid, and in a RadTooltipManager popup window.) I find that the instance of this control in a page on its own works well and RadToolTips, RadWindow popups, and row colouring work well, however the instance in the RadMultiPage does not action tooltips or open RadWindows, and the instance inside a RadToolTipManager popup (which is also inside a RadMultiPage) will not allow row selection that does not validate selectedvalue as not null. I had a feeling that the problem related to the RadAjaxManager / RadAjaxManagerProxy controls that are used to trigger refreshing, however the RadAjaxManagerProxy exists the same in each senario, although different RadAjaxManagers exist in each page/masterpage. Do you have any tips for configuring the RadAjaxManager/RadAjaxManagerProxy for dealing with the same control (ascx) in different areas of my application to preserve the same refreshing / RadAjaxToolTip / RadWindow actions / features throughout the application?

This project is fairly large and often pages are made of several ascx controls. To supply all code would not be possible, however I can confirm that the coding of binding of controls has been set exactly like samples found on your site and methods for databinding do adopt the 'onNeedDatasource' approach.

The version of the controls that are being used are: 2009.3.1208.35







1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 19 Aug 2011, 09:30 AM
Hi Mark,

As you also mentioned ajax as a possible cause of some of the issues, try turning it off by setting EnableAjax="false" inside the RadAjaxManager(s). If some of the problems go away, you would need to modify your ajax updating logic. The most important points are mentioned in these help articles, if you cannot find an answer to some question there, post it here and we will address it:
http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html
http://www.telerik.com/help/aspnet-ajax/ajax-masterpage-update-everywhere.html
http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html

As for the specific issue with the grid, it indeed sounds weird and I cannot think of a definite reason what may cause this. Have you tested how this user control works if directly loaded in the page, without additional containers? Also, can you confirm that you have not accidentally enabled custom paging (AllowCustomPaging="true").
I would advise you to try removing features from the grid one by one to see if removing any of them would result in fixing its behavior. Also, if you have some custom server code, you can try commenting out parts of it, too. In case you see any change in behavior but still cannot fix it, let us know about your observations, so that we may get a little more clear idea of what is going on.

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or