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

RadLightBox not rendering controls inside RadLightBoxItem.

1 Answer 65 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Nithin
Top achievements
Rank 1
Nithin asked on 25 Nov 2015, 06:31 AM

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. 

 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 27 Nov 2015, 08:25 AM
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
Tags
LightBox
Asked by
Nithin
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or