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

[Solved] enableAjax display problem

3 Answers 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed Bassin
Top achievements
Rank 1
Ed Bassin asked on 16 Jun 2008, 08:29 PM
Whenever I set enableAjax="true", I see a lot of weird display issues.  Whenever the mouse is moved over a row or column, it seems to resize which results in the table looking like it's quivering.  I would really like to have ajax enabled, hopefully there is a way to do this without the quivering.

  <telerik:RadGrid ID="appsGrid" runat="server" Skin="Web20" Width="97%" Height="100%" 
                 AutoGenerateColumns=false AllowPaging=false OnDetailTableDataBind="appsGrid_DetailTableDataBind" 
                  OnNeedDataSource="appsGrid_NeedDataSource" EnableAJAX="false"
                   <ClientSettings> 
                     <Selecting AllowRowSelect="False" EnableDragToSelectRows=False/> 
                     <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                   </ClientSettings> 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Jun 2008, 04:48 AM
Hi Ed,

RadGrid for ASP.NET AJAX does not support the EnableAjax property. You have to either use a RadAjaxManager or RadAjaxPanel to ajaxify the RadGrid. Go through the following online demo and see how the RadGrid has been ajaxified using RadAjaxManager.
Advanced data-binding

Thanks
Shinu.
0
Ed Bassin
Top achievements
Rank 1
answered on 17 Jun 2008, 01:41 PM
Thanks, that worked for one of the pages which I have a grid, but there is one that is generating random stuff where the grid is supposed to be on the first time, and then an error on the second.

_RadAjaxResponseScript__RadAjaxResponseScript_ /*_telerik_ajaxScript_*/window["_ctl0_mainContent_RadAjaxManager1"].ControlsToUpdate = ['_ctl0_mainContent_RadAjaxManager1', '_ctl0_mainContent_users_grid']; window["_ctl0_mainContent_RadAjaxManager1"].PostbackControlIDServer = "_ctl0_mainContent_users_grid__ctl1__ctl2__ctl0_LinkButton2"/*_telerik_ajaxScript_*/

The above is what is seen instead of the grid.

Then on the second go, I get the error:
The state information is invalid for this page and might be corrupted.

Here is the ajax code I'm using:

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                 <telerik:AjaxSetting AjaxControlID="users_grid"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="users_grid" LoadingPanelID="AjaxLoadingPanel1"></telerik:AjaxUpdatedControl> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
     
        <telerik:AjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Height="75px" Width="75px"
            <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" /> 
        </telerik:AjaxLoadingPanel> 
0
Konstantin Petkov
Telerik team
answered on 18 Jun 2008, 06:18 AM
Hi Ed Bassin,

Please, take a look at the explanation of the problem in this article (point 4).

Let us know how it goes.

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Ed Bassin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ed Bassin
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or