controls stop working after first call

4 posts, 0 answers
  1. johnathan
    johnathan avatar
    11 posts
    Member since:
    Apr 2008

    Posted 17 Jan 2009 Link to this post

    Hi Guys,
     Getting close to having demo ready for client. Have a weird thing happening. Everything on the grid works fine (context menu, grouping etc). Whenever I actually perform an action (grouping context menu etc) the subsequent actions to the controls does nothing. ie i can group once but after that it stops. I am sure it is something simple. Herer is my ajax maager code


    <

    telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

     

     

    DefaultLoadingPanelID="RadAjaxLoadingPanel1"

     

     

    OnAjaxRequest="RadAjaxManager1_AjaxRequest" EnableHistory="True">

     

     

    <AjaxSettings>

     

     

    <telerik:AjaxSetting AjaxControlID="RadMenu1">

     

     

    <UpdatedControls>

     

     

    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />

     

     

    <telerik:AjaxUpdatedControl ControlID="RadGrid1"

     

     

    LoadingPanelID="RadAjaxLoadingPanel1" />

     

     

    </UpdatedControls>

     

     

    </telerik:AjaxSetting>

     

     

    <telerik:AjaxSetting AjaxControlID="RadGrid1">

     

     

    <UpdatedControls>

     

     

    <telerik:AjaxUpdatedControl ControlID="RadMenu1" />

     

     

    <telerik:AjaxUpdatedControl ControlID="RadGrid1"

     

     

    LoadingPanelID="RadAjaxLoadingPanel1" />

     

     

    </UpdatedControls>

     

     

    </telerik:AjaxSetting>

     

     

    </AjaxSettings>

     

     

    </telerik:RadAjaxManager>

     

  2. johnathan
    johnathan avatar
    11 posts
    Member since:
    Apr 2008

    Posted 17 Jan 2009 Link to this post

    code behind for ajaxmanager

     

    /// <summary>

     

     

    /// RadAjaxManager1_AjaxRequest

     

     

    /// </summary>

     

     

    /// <param name="sender"></param>

     

     

    /// <param name="e"></param>

     

     

    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

     

    {

     

    if (e.Argument == "Rebind")

     

    {

    RadGrid1.MasterTableView.SortExpressions.Clear();

    RadGrid1.MasterTableView.GroupByExpressions.Clear();

    RadGrid1.Rebind();

    }

     

    else if (e.Argument == "RebindAndNavigate")

     

    {

    RadGrid1.MasterTableView.SortExpressions.Clear();

    RadGrid1.MasterTableView.GroupByExpressions.Clear();

    RadGrid1.MasterTableView.CurrentPageIndex = RadGrid1.MasterTableView.PageCount - 1;

    RadGrid1.Rebind();

    }

    }

  3. johnathan
    johnathan avatar
    11 posts
    Member since:
    Apr 2008

    Posted 17 Jan 2009 Link to this post

    Last piece of information... The grid is on a controls page hosted by another aspx page.
  4. SamJ
    SamJ avatar
    101 posts
    Member since:
    Jul 2008

    Posted 19 Jan 2009 Link to this post

    Hi johnathan,

    Is your user control dynamically loaded, or it is declaratively added?

    I would suggest you to replace the RadAjaxManager in the user control with RadAjaxManagerProxy and place tyhe manager in the main page (or master page if you have one).

    Check out this articles and see if it helps.

    RadAjaxManager
    RadAjaxManagerProxy




Back to Top