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

Js Error Sys.ArgumentException: Value must not be null for Controls and Behaviors.

7 Answers 549 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 28 Aug 2008, 09:08 AM
Hi All ,

I am using master and content page
In master page have RadAjaxManager,RadScriptManager,and RadAjaxLoadingPanel

In content page i have RadAjaxManagerProxy.

In Content page i have RadTabStrip,RadMulipageView and In Each Pageview  contain  RadGrid .


In firstTab contain RadGrid1and button1.


I am showing loadingpanel on tabclick on paveview.

When i added ajaxsetting for button1
it gives me javascript error as
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element


How can i show the loading panel on grid on button.

Proxy Ajax Setting are follows.

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
      <ajaxsettings>
        
         
        
        
           <telerik:AjaxSetting AjaxControlID="Button1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
          
         
                   
           <telerik:AjaxSetting AjaxControlID="RadTabstrip1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadTabstrip1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
         
                            
         <telerik:AjaxSetting AjaxControlID="RadGrid1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
              </updatedcontrols>
          </telerik:AjaxSetting>

</telerik:RadAjaxManagerProxy >


7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 28 Aug 2008, 10:11 AM
Hi Hrushikesh Mokashi,

Please note that it is not supported scenario to add single tab or PageView in the RadAjaxManager settings. You should add the whole MultiPage or TabStrip in order to have the project working properly.  Also could you please let me know whether the problem persists if the Ajax is disabled on the page.
Some more code snippet represents your settings will be helpful to research further on the problem.


Sincerely yours,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 28 Aug 2008, 10:35 AM
Hi,

I have added  MultiPage and TabStrip  in RadAjaxManagerProxy settings

When I added following seting it work finely.

  <telerik:AjaxSetting AjaxControlID="Button1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
              </updatedcontrols>
          </telerik:AjaxSetting>


But when i add the following setting then  it give me javascript error.


<telerik:AjaxSetting AjaxControlID="Button1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
              </updatedcontrols>
          </telerik:AjaxSetting>


as
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element



0
Maria Ilieva
Telerik team
answered on 28 Aug 2008, 11:22 AM
Hi Hrushikesh Mokashi,

I  believe the RadGrid is nested in PageView. If this is the scenario the presented error is expected because, as I mentioned you should add the whole MultiPage in the Ajax setings.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hrushikesh Mokashi
Top achievements
Rank 1
answered on 28 Aug 2008, 11:33 AM
Hi,

Yes RadGrid is nested in PageView.

I have added the Multipage in AjaxSetting
The Ajax setting are follows.

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
      <ajaxsettings>
             
          
<telerik:AjaxSetting AjaxControlID="Button1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
          
         
                   
           <telerik:AjaxSetting AjaxControlID="RadTabstrip1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadTabstrip1" />
              </updatedcontrols>
          </telerik:AjaxSetting>
         
                            
         <telerik:AjaxSetting AjaxControlID="RadGrid1">
              <updatedcontrols>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
              </updatedcontrols>
          </telerik:AjaxSetting>

</telerik:RadAjaxManagerProxy >



It showing loading panel on multipagev.
But i want to show loading panel on grid when button is click.
0
Nikolay Rusev
Telerik team
answered on 28 Aug 2008, 03:54 PM
Hi Hrushikesh,

When you ajaxify RadMultiPage control with RadAjax, an UpdatePanel will be generated to wrap all controls in RadMultiPage. Thus you don't need to explicitly ajaxify any other control in RadMultiPage.

You can find example attached to this forum post which replicates your scenario.


All the best,
Nikolay
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rob
Top achievements
Rank 2
answered on 10 Feb 2009, 06:35 PM
I am having this same issue, and have submitted a support ticket also. I understand that the update panel gets wrapped around every control by simply adding the ajax setting to the multipage control. 

However I want to do the same thing as the person that originated this post does. For some reason, the grid is not getting the Loading Panel when the button is clicked. This is a big problem on my end since there needs to be some sort of activity that the end user sees, or he/she will continue to hit the button, which will then get our users frustrated because it will eventually not show up at all.

Any more help on this issue would really help!!

Thanks
Rob
0
Sebastian
Telerik team
answered on 11 Feb 2009, 08:29 AM

Hi Rob,

We will review the support ticket you started with regards to this subject and will respond in the same thread when we come up with results.


Kind regards,

Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Hrushikesh Mokashi
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Rob
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or