rad windows is not showing/opening

4 posts, 0 answers
  1. vinamra
    vinamra avatar
    13 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2008 Link to this post

    i am having some problem in showing radwindow. i am using VS 2008 asp.net 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

  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 03 Oct 2008 Link to this post

    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?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. vinamra
    vinamra avatar
    13 posts
    Member since:
    Oct 2012

    Posted 03 Oct 2008 Link to this post

    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. <% ... %>).


  5. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 06 Oct 2008 Link to this post

    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.
Back to Top