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

register control porblem in nested ajax panel

3 Answers 59 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Reza
Top achievements
Rank 1
Reza asked on 06 Mar 2013, 10:52 AM
hi there,
i using RadComboBox and RadTreeView together. i use the AjaxPanel in RadComboBox's itemtemplate but also and  sometimes on some forms of our projects that Which has been used Master AjaxPanel , we face with this JS Error!!!

Error: Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'SimpleTreeDownTree' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
Source File: http://localhost:2518/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=...

is there any idea use inner AjaxPanel inside master Ajax panel that have not conflict together?
          
<telerik:RadComboBox ID="SimpleTreeDownItems" runat="server" Height="255px" Width="420px"
               AllowCustomText="true" EmptyMessage="Select Anythings" ToolTip="Select" Style="vertical-align: middle;"
               OnDataBound="SimpleTreeDownItems_DataBound" OnPreRender="SimpleTreeDownItems_PreRender" OnClientDropDownOpened="SimpleTreeDownItems_OnClientDropDownOpenedHandler" >
               <collapseanimation duration="400" type="inback" />
               <expandanimation duration="400" type="inback" />
               <itemtemplate>
                       <div   class="TreeViewWrapper" onclick="StopPropagation" >
                   <telerik:RadAjaxPanel runat="server" ID="SlaveAjaxPanel" >
                        <telerik:RadTreeView OnNodeDataBound="SimpleTreeDownTree_NodeDataBound" runat="server"
                            ID="SimpleTreeDownTree" OnNodeClick="NodeClicking" Width="411" Height="252" style="overflow-x:hidden; overflow-y:auto"  >
                           <Nodes>
                           </Nodes>
                       </telerik:RadTreeView>
                       </telerik:RadAjaxPanel>
                   </div>
               </itemtemplate>
               <expandanimation type="InBack"></expandanimation>
               <items>
                     <telerik:RadComboBoxItem Text="" />
               </items>
               <collapseanimation type="InBack"></collapseanimation>
           </telerik:RadComboBox>




3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 11 Mar 2013, 08:33 AM
Hello,

From your code snippets I could not see the exact AjaxPanel configuration. Do you receive the same error with the same configuration but using UpdatePanel controls? I am asking this question because our RadAjaxPanel is based on it and the exception might be rather a generic one with this configuration.

If the problem surfaces only when using our RadAjaxPanel, the best means to progress in our investigation is to isolate a stripped working version of your project and send it enclosed to a formal support ticket. We will examine your complete code logic and will get back to you with more info on the matter.

Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Reza
Top achievements
Rank 1
answered on 13 Mar 2013, 06:05 AM
Hi Maria ,
I have a MasterPage that contains all control over a RadAjaxPanel Control. as shown User Control  code snippet I have inner RadAjaxPanel Control On ComboBox ItemTemplate.
my solution is very very unpredictable. so on somewhere work properly and somewhere not work!.I know base of RadAjaxPanel is asp.net UpdatePanel control.
Is there any way that we register this script control manually?
0
Maria Ilieva
Telerik team
answered on 15 Mar 2013, 01:36 PM
Hi Reza,

The controls should be automatically register as script controls and there should be a need to do that manually if the page is properly configured. Therefore could you please try using asp UpdatePanel and replace the Telerik RadControls with any control for the AjaxControlToolkit suite and verify how it goes.
It will be very helpful if you could open a regular support ticket and send us runnable application which demonstrates the presented error. Thus we will be able to debug it locally and advise you further.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Reza
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Reza
Top achievements
Rank 1
Share this question
or