Repeater in a radDockZone

3 posts, 0 answers
  1. Alec
    Alec avatar
    43 posts
    Member since:
    Mar 2009

    Posted 15 Jul 2009 Link to this post

    I want to create a dock zone which contains a list of docks created dynamically using a repeater. How should I go about doing it? Can I do something like:

    <telerik:RadDockZone...>
        <asp:Repeater...
    </telerik:RadDockZone>
  2. Alec
    Alec avatar
    43 posts
    Member since:
    Mar 2009

    Posted 15 Jul 2009 Link to this post

    I notice that there's this databind method from zone, how do I use it, if I don use repeater?

    I tried:

     

    radDockZone.Docks = ...

     

    radDockZone.DataBind();

    but it didnt work. Nor could I find radDockZone.DataSource...

  3. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 Jul 2009 Link to this post

    Hi Alec,

    This cannot be done because the RadDockZone can only contain controls of type RadDock. Controls of any other type (such as Repeater) cannot be placed inside a zone.

    You can use a for loop to create the list of docks dynamically in the code behind.


    All the best,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top