Request

5 posts, 1 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 12 Nov 2013 Link to this post

    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
  2. Answer
    Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 15 Nov 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 15 Nov 2013 Link to this post

    Hi kostadin,

    Very good that works.

    Next is: Can I set Clientsettings NavigationMode from code?

    Marc
  5. Kostadin
    Admin
    Kostadin avatar
    1708 posts

    Posted 19 Nov 2013 Link to this post

    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.
  6. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 19 Nov 2013 Link to this post

    Hi Kostadin,

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

    Thanks,

    Marc
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017