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

Error RadAjaxPanel : "clvp" object null or undefined

1 Answer 97 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
D
Top achievements
Rank 1
D asked on 23 Jul 2012, 02:28 PM
Hi,
When I try to ajaxified some controls in my RadDock, I've an error (see screen in attached file). This error occurs after executing "RadButtonChangeUrl_Click". 
Error : Microsoft JScript:Enable to get the "clvp" property value ; object null or undefined.

MasterPage :
<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" >
</asp:ScriptManager>

Page.ascx :
<telerik:RadDockLayout ID="RadDockLayout1" Visible="false" runat="server">
    <telerik:RadDockZone ID="RadDockZone1" runat="server" Width="400px" BackColor="White" BorderStyle="None">
        <telerik:RadDock ID="RadDockGRIDisSCode" Visible="false" runat="server" Width="400px" DefaultCommands="ExpandCollapse">
                <ContentTemplate>
                    <telerik:RadAjaxPanel ID="RadAjaxLoadingPanel1" runat="server" Width="256px" Height="64px">
                            <asp:HyperLink ID="LabelUrlReporting" runat="server" Target="_blank"></asp:HyperLink>
                            <telerik:RadButton ID="RadButtonChangeUrl" runat="server" OnClick="RadButtonChangeUrl_Click">
                            </telerik:RadButton>
                            <telerik:RadTextBox ID="RadTextBoxNewUrl" Visible="false" runat="server" TextMode="SingleLine" EmptyMessage="-" Width="280px" />
                            <telerik:RadButton ID="RadButtonNewUrl" runat="server" Visible="false" OnClick="RadButtonNewUrl_Click">
                            </telerik:RadButton>
                            <telerik:RadButton ID="RadButtonCancelUrl" runat="server" Visible="false" OnClick="RadButtonCancelUrl_Click">
                            </telerik:RadButton>
                    </telerik:RadAjaxPanel>
                </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</telerik:RadDockLayout>

Page ascx.cs :
public void CreateRadDockGRIDisSCode(GridDataItem _SelectedItem)
{
    RadDockLayout1.Visible = true;
    RadDockGRIDisSCode.Visible = true;
    LabelUrlReporting.Text = "MyUrl";
    LabelUrlReporting.NavigateUrl = "http://www.myurl.com";
}
 
 public void RadButtonChangeUrl_Click(object sender, EventArgs e)
{
    LabelUrlReporting.Visible = false;
    RadButtonChangeUrl.Visible = false;
 
    RadTextBoxNewUrl.Visible = true;
    RadTextBoxNewUrl.Text = LabelUrlReporting.Text;
    RadButtonCancelUrl.Text = "Cancel";
    RadButtonCancelUrl.Visible = true;
   
    RadButtonNewUrl.Text = "OK";
    RadButtonNewUrl.Visible = true;
}
 
public void RadButtonCancelUrl_Click(object sender, EventArgs e)
{
    LabelUrlReporting.Visible = true;
    RadButtonChangeUrl.Visible = true;
    RadTextBoxNewUrl.Visible = false;
    RadButtonCancelUrl.Visible = false;
    RadButtonNewUrl.Visible = false;
}
 
public void RadButtonNewUrl_Click(object sender, EventArgs e)
{
    LabelUrlReporting.Visible = true;
    RadButtonChangeUrl.Visible = true;
    RadTextBoxNewUrl.Visible = false;
    RadButtonCancelUrl.Visible = false;
    RadButtonNewUrl.Visible = false;
    LabelUrlReporting.NavigateUrl = RadTextBoxNewUrl.Text;
    LabelUrlReporting.Text = RadTextBoxNewUrl.Text;
}

Thanks .

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 25 Jul 2012, 08:11 PM
Hi,

Please note that the RadDock is not a standard control and you can't update only one RadDock separately. If you want to make an Ajax call you should update the parent RadDockZone.
I hope this helps.

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
D
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or