Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.1K+ views

Hi,

          This is Hariprasad . In my project we use Telerik Controls very much. Recently i tried a sample related to my project according to the following link       http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/loadingpanelid/defaultcs.aspx

 . Basing on Treeview selection , In code i am dynamically loading usercontrols on every Treeview Node click.

Then i am getting this following error.
 
XmlHttpPanel Callback Loading error:
 Exception=Script control 'RadWindowManager1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


I already have ScriptManager in MasterPage.

I think this problem because of scriptmanager .

Can you please help me in this regard.
congdongdientu.
Top achievements
Rank 1
Veteran
 answered on 22 May 2018
4 answers
689 views

Hi guys,

i have a problem of master page is loading/refreshing when i,m changing the content page(child page) from tree view which is in master page. please find the enclosed attachment and suggest me the approach to resolved this issue.

Requirement: When click menu item which is in the master page.... corresponding content page should be load without refreshing/ loading whole master page & url of the page(child page.aspx) should be change.

Thanks
Ravi
Amarkant
Top achievements
Rank 1
 answered on 23 Jan 2017
1 answer
67 views

I am deciding whether to use the Telerik controls for a project. The problem I've got is fairly straightforward and I've tried to create an ultra simple test code to see if it works and it doesn't.

I have a page with various forms of user input. I want a panel that displays a list of dynamically loaded user controls based on the user input.

For my test page I have simply created 3 user controls: control_a, control_b and control_c

On the main page I have a text input box and a "submit" button. I also have a xmlhttppanel and that simply has a placeholder in it The submit_click event simply reads .text property of the text box and does:

foreach (char c in txt_input.Text) {
            if ("abc".Contains(c))
    {
s = (UserControl)Page.LoadControl(string.Format("~/test/control_{0}.ascx", c));
s.ID = string.Format("asynccontrol_{0}", i++);
ph_panel.Controls.Add(s);
} } 

This works. It dynamically loads a set of user controls based on the user input.

However, in control_a I have a label, a text box and a "save" button. The save_click event simply copies the text box text to the label.text

Without using the rad control xmlhttppanel I was having a problem with a standard .net form that the dynamically loaded user controls weren't persisting. The rad xmlhttppanel appears to solve this (fab). However, the save_click event isn't executing. What have I missed?

Do I need to do anything else to make this app run safely and robustly?

Slav
Telerik team
 answered on 28 Apr 2015
6 answers
56 views
Hi,

I have a page with multi XmlhttpPanels, including a parent panel and a number of children panels which are placed inside an asp repeater. The error happens when run set_value() for any children panel. I have set the script manager to the standard asp script manager on the page, and the EnableClientScriptEvaluation is set to true in the parent panel. Not sure if xmlhttppanel supports nesting. All works fine if I remove the parent panel.  

The below is the error screenshot and the code. Any help would be much appreciated.

<telerik:RadXmlHttpPanel runat="server" ID="pnlRoom" OnServiceRequest="pnlRoom_ServiceRequest"
    EnableClientScriptEvaluation="true" LoadingPanelID="RadAjaxLoadingPanel1" RenderMode="Block">
    <asp:Repeater runat="server" ID="rptGroups" OnItemDataBound="rptGroups_ItemDataBound"
        ClientIDMode="AutoID">
        <ItemTemplate>
            <fieldset class="fieldsetBlock1">
                <div class="fieldsetTitle">
                    <%# Eval("GROUP_NAME")%>   
                </div>
                <telerik:RadXmlHttpPanel runat="server" ID="pnlGroup" OnServiceRequest="pnlGroup_ServiceRequest"
                    RenderMode="Block">
                    <asp:Repeater ID="rptItems" runat="server" EnableViewState="false" ClientIDMode="AutoID">
                        <HeaderTemplate>
                            <table width="574px" class="hor-minimalist-b">
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td style="padding: 12px 8px;">
                                    <a href="javascript:;" onclick='<%# string.Format("openItem(this,{0},0);", Eval("JOB_ITEM_ID")) %>'
                                        class="a-job-item">
                                        <%# Eval("ItemSummary") %></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <div class="divAddNewLinkButton">
                        <a href="javascript:;" onclick='<%# string.Format("openItem(this,0,{0});", Eval("JOB_ITEM_GROUP_ID")) %>'>
                            <span>✚</span>  New Item</a></div>
                </telerik:RadXmlHttpPanel>
            </fieldset>
        </ItemTemplate>
        <SeparatorTemplate>
            <br />
        </SeparatorTemplate>
    </asp:Repeater>
</telerik:RadXmlHttpPanel>
Slav
Telerik team
 answered on 03 Oct 2014
1 answer
32 views
I am updating the RadXmlHttpPanel  with ten RadTextBox's with no issues. My issue is when I go to hit SAVE within the application I want to be able to use those 10 textboxes data. Every time I try I get a NULL returned even though I know there is something there. I know I am missing something incredibly easy. 
Slav
Telerik team
 answered on 13 Mar 2014
1 answer
35 views
I am trying to show a RadScheduler in an XmlHttpPanel and it is not displaying the appointments.  I call DataBind after the DataSource is set.  If I add a call to rebind I get a partial view of the appointments but its just the outline.  I tried setting RegisterWithScriptManager=False and I then get javascript errors.

<telerik:RadXmlHttpPanel ID="radXmlHttpPanel" runat="server" OnServiceRequest="radXmlHttpPanel_OnServiceRequest" RenderMode="Block" EnableClientScriptEvaluation="true" LoadingPanelID="loadingPanelSupervisorHome" >
        <div id="listEmployeeCoverages" runat="server">
            <div id="employeeCoveragesSchedule">
                <telerik:RadScheduler ID="schedulerEmployeeCoverage" runat="server" SelectedView="TimelineView" ReadOnly="True" OverflowBehavior="Expand"
                    OnNavigationComplete="schedulerEmployeeCoverage_OnNavigationComplete"
                    OnNavigationCommand="schedulerEmployeeCoverage_OnNavigationCommand" OnAppointmentDataBound="schedulerEmployeeCoverage_OnAppointmentDataBound"
                    DataKeyField="Detail.Key" DataSubjectField="Subject" DataStartField="Detail.StartDateTime" DataEndField="Detail.StopDateTime">
                    <TimelineView UserSelectable="False" GroupBy="Employee" GroupingDirection="Vertical" ShowInsertArea="False" SlotDuration="01:00:00" ShowDateHeaders="true" ColumnHeaderDateFormat="htt"></TimelineView>
                    <DayView UserSelectable="False"></DayView>
                    <WeekView UserSelectable="False"></WeekView>
                    <MonthView UserSelectable="False"></MonthView>
                </telerik:RadScheduler>
            </div>
        </div>
    </telerik:RadXmlHttpPanel>
Slav
Telerik team
 answered on 01 Oct 2013
1 answer
37 views
Hi everyone;
My problem is, rad controls is not working inside xmlhttp panel.
How can i fix it? Pls help...
Slav
Telerik team
 answered on 02 Aug 2013
1 answer
41 views
Hi Telerik,

Will there be any issue if I use radajaxpanel along with the radxmlhttppanel? I got some doubts whether the ajax partial updates
are triggered properly if I combine these two?

Thankyou,
JC
Princy
Top achievements
Rank 2
 answered on 18 Apr 2013
1 answer
42 views
Hi Telerik,

I believe the radajaxpanel and radxmlhttppanel somewhat serves the same purpose. When performance is considered, which control is
preferred especially when dealing with client side data loading?

Thankyou,
JC
Princy
Top achievements
Rank 2
 answered on 18 Apr 2013
3 answers
46 views
I have a page with a combo(ComboBox1) in a xmlhttppanel(XmlPanel1) and also a stand alone checkbox combo(RadComboBox1). After I call XmlPanel1  and select an item from ComboBox1,  then select a checkbox item from the RadComboBox1 I get an error.

I have created a very simple example to show the error. Am I doing something wrong?

Uncaught TypeError: Cannot call method 'get_checked' of null

Telerik.Web.UI.WebResource.axd: 3642

c.RadComboBox.prototype._onCheckBoxCheck=function(f){var d=f.target.nodeName;
if(d=="LABEL"){f.preventDefault();
}var h=this._findNearestItem(f.target);
var j=h!=null?h:this._extractItemFromDomElement(f.target);
if(this.raise_onItemChecking(j,f)){f.preventDefault();
return;
}j.set_checked(!j.get_checked());
Uncaught TypeError: Cannot call method 'get_checked' of null
this.raise_onItemChecked(j,f);
this._updateComboBoxText();
if(this._checkAllItemsElement!=null){this._updateCheckAllState();
}if(this._postBackOnCheck){var g={Command:"Check",Index:j.get_index()};
this.postback(g);
}};


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            function SetValue() {
                var panel = $find("<%=XmlPanel1.ClientID %>");
                panel.set_value("test");
            }
        </script>
    </telerik:RadScriptBlock>
        <div>
    <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
        Width="300" Label="Select book genres:">
        <Items>
            <telerik:RadComboBoxItem Text="Arts" />
            <telerik:RadComboBoxItem Text="Biographies" />
            <telerik:RadComboBoxItem Text="Children's Books" />
            <telerik:RadComboBoxItem Text="Computers & Internet" />
            <telerik:RadComboBoxItem Text="Cooking" />
            <telerik:RadComboBoxItem Text="History" />
            <telerik:RadComboBoxItem Text="Fiction" />
            <telerik:RadComboBoxItem Text="Mystery" />
            <telerik:RadComboBoxItem Text="Nonfiction" />
            <telerik:RadComboBoxItem Text="Romance" />
            <telerik:RadComboBoxItem Text="Science Fiction" />
            <telerik:RadComboBoxItem Text="Travel" />
        </Items>
    </telerik:RadComboBox>
        </div>
    <div>
        <input value="Set Value" onclick="SetValue(); return false;" type="button" />
        <div>
            <telerik:RadXmlHttpPanel ID="XmlPanel1" runat="server" OnServiceRequest="XmlPanel1_ServiceRequest"
                EnableClientScriptEvaluation="true">
                <telerik:RadComboBox ID="ComboBox1" runat="server">
                </telerik:RadComboBox>
            </telerik:RadXmlHttpPanel>
        </div>
 
    </div>
    </form>
</body>
</html>


using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class Main : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void XmlPanel1_ServiceRequest(object sender, Telerik.Web.UI.RadXmlHttpPanelEventArgs e)
    {
        ArrayList itemsList = new ArrayList();
        itemsList.Add("Beverages");
        itemsList.Add("Condiments");
        itemsList.Add("Confections");
        ComboBox1.DataSource = itemsList;
        ComboBox1.DataBind();
    }
}

the error is stopping my other javascript code from working.

Help!! Marty
Slav
Telerik team
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?