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

rad windows is not showing/opening

3 Answers 101 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
vinamra asked on 03 Oct 2008, 05:20 AM
i am having some problem in showing radwindow. i am using VS 2008 2.0 radcontrols Prometheus 2008 q2 clr2.0.

 i hav linkbutton i want to show radwindow on linkbutton click. but when i am clicking on linkbutton nothing happens i hav set OpenerElementID of radwindow to link button id but nothing happen.but if i choose VisibleOnPageLoad="true" then radwindow is displayed on page load but not on linkbutton click.

i am giving my code for review plz help.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewCatagory.ascx.cs"

Inherits="Admin_Controls_View_Catagory" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register Src="ViewNews.ascx" originalAttribute="Src" originalPath="ViewNews.ascx" originalAttribute="Src" originalPath="ViewNews.ascx" TagName="ViewNews" TagPrefix="uc1" %>

<%@ Register Src="AddCatagories.ascx" originalAttribute="Src" originalPath="AddCatagories.ascx" originalAttribute="Src" originalPath="AddCatagories.ascx" TagName="AddCatagories" TagPrefix="uc2" %>



<table style="width: 1052px">


<td style="width: 240px">

<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ASPNETDBConnectionString1 %>"

SelectCommand="SELECT [Id], [ParentId], [Name], [ItemCount] FROM [Catagory]">


<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="Id" DataFieldParentID="ParentId"

DataSourceID="SqlDataSource3" DataTextField="Name" DataValueField="Id" Skin="Vista"

BorderStyle="None" Style="margin-right: 0px; margin-top: 0px;

" Width="204px" OnNodeClick="RadTreeView1_NodeClick"


<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation>

<ExpandAnimation Duration="100"></ExpandAnimation>




<uc1:ViewNews ID="ViewNews1" runat="server" />




<br />




<asp:LinkButton ID="LinkButtonAddCatagory" runat="server">Add Catagory</asp:LinkButton>


<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID="LinkButtonAddCatagory" VisibleOnPageLoad="false">





<script type ="text/javascript">

function UpdateTreeView() {

var objAjaxManager = $find("ctl00_ContentPlaceHolder1_ViewCatagory1_RadAjaxManager1");





<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"



<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">


<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />





plz help as i am cracking my head with a hammer

3 Answers, 1 is accepted

Sort by
Top achievements
Rank 1
answered on 03 Oct 2008, 06:20 PM
Hello Vinamra,

Hmm, I copied the LinkButton and Window code from your example and it worked after I put a RadScriptManager on the page.  Can you try putting that on the page and seeing if it fixes your problem?
Top achievements
Rank 1
answered on 03 Oct 2008, 06:30 PM
actually i am using radscriptmanager
well i solved my problem as OpenerElementID requires control's ClientID and i was putting only control id not the client id.

so it worked
but i hav different problem.
No Servertags are working <%= RadPanel1.ClientID%> is working. i dont know why but hav to use search client id from html and i am using client id it shows this error

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


Georgi Tunev
Telerik team
answered on 06 Oct 2008, 08:48 AM
Hi vinamra,

This error is expected - the framework will not allow you to have such code in the head section that has the runat=server property set. You you could do is:
  1. Remove the runat=server setting for the head section
  2. Move your code in the body
  3. Use RadCodeBlock/RadScriptBlog.

Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Asked by
Top achievements
Rank 1
Answers by
Top achievements
Rank 1
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question