Telerik Ajax problem

5 posts, 0 answers
  1. Thien
    Thien avatar
    3 posts
    Member since:
    Mar 2009

    Posted 27 Oct 2010 Link to this post

    Hello,
    In a page, I have one radgrid and one panel for edit form
        <telerik:RadGrid ID="listCompany" runat="server"   AllowMultiRowSelection="false" PagerStyle-AlwaysVisible="true"
            OnItemCreated="RadGrid1_ItemCreated">
            <MasterTableView AutoGenerateColumns="false" DataKeyNames="Id">
                <Columns>
                      ........
                </Columns>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true" />
        </telerik:RadGrid>
     
    <asp:Panel ID="editForm" runat="server">
        .......
    </asp:Panel>

    And my Ajax Setting
    protected void Page_Load(object sender, EventArgs e)
    {
        RadAjaxManager radAjaxManager = Page.Master.FindControl("radAjaxManager") as RadAjaxManager;
        RadAjaxLoadingPanel radAjaxLoaingPanel = Page.Master.FindControl("radAjaxLoadingPanel") as RadAjaxLoadingPanel;
        radAjaxManager.AjaxSettings.AddAjaxSetting(listCompany, listCompany, radAjaxLoadingPanel);
    }
    protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
    if (e.Item is GridDataItem)
    {
       RadAjaxManager radAjaxManager = Page.Master.FindControl("radAjaxManager") as RadAjaxManager;
       RadAjaxLoadingPanel radAjaxLoaingPanel = Page.Master.FindControl("radAjaxLoadingPanel") as RadAjaxLoadingPanel;
       LinkButton editLink = (LinkButton)e.Item.FindControl("LinkEdit");
       radAjaxManager.AjaxSettings.AddAjaxSetting(editLink , editForm, radAjaxLoadingPanel);
     }


    If I click on one row in the grid, the edit form show, everything ok. But if I do sorting then click one row in the grid. The overlay of edit form can't be hidden.

    Can anybody help me!
    Many many thanks
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 27 Oct 2010 Link to this post

    Hello Thien,

    If you add you RadGrid to the RadAjaxMager collection, there is no need to add the links contained in the RadGrid, since they are automatically ajaxed as well.

    I hope that helps.
  3. Thien
    Thien avatar
    3 posts
    Member since:
    Mar 2009

    Posted 27 Oct 2010 Link to this post

    Thank Cori ,
    But when clicking edit button on each row, I want only the edit form get updated.
  4. Marin
    Admin
    Marin avatar
    1057 posts

    Posted 28 Oct 2010 Link to this post

    Hello Thien,

    We made some tests but could not reproduce exactly the same problem. From the code snippet It seems that there is some problem with the ajaxifying of the controls in your grid. Especially the ajaxifying of the grid itself in page load, you may try temporary turning it off or moving it to Page_PreRender event. Also if the problem persists can you sends us a sample application that reproduces it so we can debug it on our end.

    Regards,
    Marin
    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
  5. Thien
    Thien avatar
    3 posts
    Member since:
    Mar 2009

    Posted 28 Oct 2010 Link to this post

    I just found something. My website use .net 4.0 and deployed in IIS 7.5 integrated mode. The problem doesn't appear when running in build-in server
Back to Top