RadLightBox not rendering controls inside RadLightBoxItem.

2 posts, 0 answers
  1. Nithin
    Nithin avatar
    1 posts
    Member since:
    Oct 2014

    Posted 25 Nov 2015 Link to this post

    We are using telerik Q3 2015.We had implemented rad lightbox (responsive) in our application. The requirement is to have the image on one side of the popup and on the right side we need to have a table that can contain many rows.

    The problem that i am facing is that no controls are rendering inside the rad lightbox. I Would like to know on the following .

    1.  Is it possible to render image and controls inside rad light box(image on one side of the popup and on the right side we need to have a table that can contain many rows.) ?

    2. why the controls even though put inside  <telerik:RadLightBoxItem> , are not rendering inside the popup

     Please see the code used:

    <telerik:RadLightBox DataImageUrlField="ImageUrl" runat="server" ID="RadLightBoxImageDetails" Modal="true" Width="1000px" Height="200px">
            <ClientSettings>            
                <ClientEvents OnLoad="example.radLightBoxLoad" OnShowed="SetCenter()" />
            </ClientSettings>
            <Items>
                <telerik:RadLightBoxItem>
                    <ItemTemplate>
                         <telerik:RadTextBox ID="RadTextBox1" runat="server" CssClass="demo">
                    </telerik:RadTextBox>            
            </ItemTemplate>                
                </telerik:RadLightBoxItem>
            </Items>
        </telerik:RadLightBox>

     

    Any help will be greatly appreciated. 

     

  2. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 27 Nov 2015 Link to this post

    Hello Nithin,

    It is possible to have an image and a table in the LightBox control and for this purpose you have to use an ItemTemplate. You can check out the following live example which demonstrates the usage of a template

    Regards,
    Kostadin
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top