Issue with using RadAjaxManager in MOSS.

3 posts, 0 answers
  1. pratik
    pratik avatar
    4 posts
    Member since:
    Feb 2007

    Posted 23 Jul 2008 Link to this post

    hi,

    I have created one usercontrol. On that usercontrol, I have RadToolBar, Label and RadAjaxManager. Following is desing of RadAjaxManager.

    <

    telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
          <AjaxSettings>
                 <telerik:AjaxSetting AjaxControlID="RadToolBar1">
                         <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="Label1"     LoadingPanelID="RadAjaxLoadingPanel1" />
                          </UpdatedControls>
                 </telerik:AjaxSetting>
           </AjaxSettings>
    </
    telerik:RadAjaxManager>

    <

    telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"Width="75px">
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'style="border: 0px;" />
    </
    telerik:RadAjaxLoadingPanel>

    Now if I put this control on simple .aspx page, it's working fine.

    But if I put this control on MOSS .aspx page, when my page is loading first time and if I click RadToolBar1, it's giving regular postback. And after the postback, it's ajaxifying my control..so after first post, it working fine. But first postback , it's doing as regular postback.

    I have also tried it programatically.

    protected

    void Page_Load(object sender, EventArgs e)
    {
       try
    {
                   RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadToolBar1, lblClick);
              }
       catch(Exception
    ex) {
              Label1.Text = ex.Message;
             }
    }

    This is too working fine on simple .aspx page.

    But on MOSS .aspx page,it's giving following error.

    Object reference not set to an instance of an object.

    I am using smartpart with AJAX for hosting my usercontrol on MOSS .aspx page.

    Do I need to register something on MOSS .aspx page?

    Please reply ASAP.

    Regards
    Pratik.

  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Jul 2008 Link to this post

    Hi pratik,

    Can you please try adding the Toolbar as updated control as well? Have you placed the ScriptManager before the RadAjaxManager on the page? Also, can you share which version of the Telerik.Web.UI do you have?

    Please, answer our questions in Ticket ID: 151362 so that we can continue assisting you. Thank you!

    Kind regards,
    Konstantin Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. pratik
    pratik avatar
    4 posts
    Member since:
    Feb 2007

    Posted 24 Jul 2008 Link to this post

    hi,

    I have tried by adding Toolbar as updatedcontrol. But in that case..first time it's giving regular postback..second time it's giving Ajax effect..and then after my ToolBar is getting disable.

    I have also tried by placing scriptmanager before RadAjaxManager. But as soon as I add scriptmanager, it's giving me unexpected error.

    Please make sure that I am using MOSS .aspx page. On that page I am using smartpart with AJAX for hosting usercontrol. And I believe, if we use samartpart with AJAX, then no need to put script manager.

    Version of my Telerik.Web.UI is 2008.1.619.35

    Regards,
    Pratik.
Back to Top