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

Issue with using RadAjaxManager in MOSS.

2 Answers 97 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
pratik
Top achievements
Rank 1
pratik asked on 23 Jul 2008, 05:10 PM
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 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 24 Jul 2008, 06:13 AM
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.
0
pratik
Top achievements
Rank 1
answered on 24 Jul 2008, 12:34 PM
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.
Tags
Sharepoint Integration
Asked by
pratik
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
pratik
Top achievements
Rank 1
Share this question
or