Doc panal Problem

2 posts, 0 answers
  1. Ted Bielenda
    Ted Bielenda avatar
    9 posts
    Member since:
    Apr 2010

    Posted 15 May 2010 Link to this post

     

    Hi, 

          I am using RadDock. I am using this like as follows...

    <
    telerik:RadDock ID="RadDock1" DefaultCommands="ExpandCollapse" runat="server" Title="Parts" Pinned ="true" Width="820" DockHandle="TitleBar">

     

     

     

    <ContentTemplate>

     

     

     

    <table>

     

     

     

    Using control hare like "Grid Control" and other control in itemtemplate of the grid like this "radUpload:RadUploadProgressArea"

    </table>

     

     

     

     

    </ContentTemplate>

     

     

     

    </telerik:RadDock>

    But this is giving me error on design time :- 

    Error Creating Control- RadDock1
    The control collection cannot be modified during DataBind,Init,Load,PreRender or Upload Phases.

    And one more think When i am making 

     

    Collapsed

    =true  This is giving javascript error on run time.

    Please help me in the case


    Thanks,

    Ted.

     

     

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 19 May 2010 Link to this post

    Hi Ted,

    I tested the following code and it did not gave me any errors at design and run time.

    .aspx
    <%@ 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">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            </Scripts>
        </asp:ScriptManager>
        <div>
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
                <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="300px" Width="300px">
                    <telerik:RadDock ID="RadDock1" runat="server" DefaultCommands="ExpandCollapse" Title="Parts"
                        Width="820px" DockHandle="TitleBar" Collapsed="true" Height="253px">
                        <ContentTemplate>
                            <telerik:RadGrid ID="Grid1" runat="server">
                                <MasterTableView>
                                    <Columns>
                                        <telerik:GridTemplateColumn>
                                            <ItemTemplate>
                                                <telerik:RadUpload ID="RadUpload1" runat="server">
                                                </telerik:RadUpload>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </ContentTemplate>
                    </telerik:RadDock>
                </telerik:RadDockZone>
            </telerik:RadDockLayout>
        </div>
        </form>
    </body>
    </html>

    .cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
    using System.Web.Caching;
     
    public partial class Default_Dock : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Grid1.DataSource = new string[] { "1", "4", "3", "2", "4", "3", "2", "4", "3", "2" };
        }
    }

    I noticed that you have set Pinned="true", but the PinUnpin command is not used (only the ExpandCollapse command is used). The Pinned property should be used in accordance with the PinUnpin command, and the dock cannot be docked when the property is set to "true".

    If the problem persists, please send us some sample code that demonstrates the issues, and we will do our best to help you.

    Kind regards,
    Pero
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top