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

Request

4 Answers 42 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 12 Nov 2013, 01:33 PM
Hi,

if there is only one item in the LightBox then how would I hide the Previous and Next buttons?
Can this be automated?

Marc

4 Answers, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 15 Nov 2013, 07:27 AM
Hello Marc,

Thank you for contacting us.

You could disable the Previous and Nest button by setting ShowNextButton and ShowPrevButton to false. Please check out the following code snippet.
<telerik:RadLightBox ID="RadLightBox1" runat="server" ShowNextButton="false" ShowPrevButton="false"></telerik:RadLightBox>
You could also hide it on the client side as it's demonstrated in the following live example.

I hope this information helps.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 15 Nov 2013, 10:26 AM
Hi kostadin,

Very good that works.

Next is: Can I set Clientsettings NavigationMode from code?

Marc
0
Kostadin
Telerik team
answered on 19 Nov 2013, 01:44 PM
Hello Marc,

Previously provided example demonstrates how to set Navigation mode on the client. Additionally I would recommend you to review the Client API of RadLightBox control available at the following help article.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 19 Nov 2013, 02:50 PM
Hi Kostadin,

I wanted to set it from the Codebehind, I managed with
RadLightBox1.Clientsettings.Navigationmode = LightBoxNavigationMode.Button

Thanks,

Marc
Tags
LightBox
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Kostadin
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or