ShowNext ShowPrevious does not work anymore

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

    Posted 13 Mar 2015 Link to this post

    ShowNextButton="false" ShowPrevButton="false"

    These do not work (anymore), has something changed?

    Marc
  2. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 18 Mar 2015 Link to this post

    Hello Marc,

    I just test the LightBox control with the latest version (Q1 2015) and on my side both properties are working correctly. Note that those properties only remove the next and prev icons in the LightBox but if you are enabling the Zone navigation mode you will still be able to navigate between the images. Could you please let me know how it behaves on your end? What is the rendering of the control?

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 19 Mar 2015 in reply to Kostadin Link to this post

      I upgraded to Q1 2015 to no avail.
    This my code, as you see I tried in Init and PreRender
    frontend here:http://www.altecparts.nl/watertoevoer-filters-tanks-vlotters/snelkoppelingen-%28lage-druk%29/passend-op-geka-koppelingen-messing/snelkoppeling-geka-koppeling-gk-klauwkoppeling-220700

    Private Sub Page_Init(ByVal Sender As System.Object, ByVal E As System.EventArgs) Handles Me.Init
                RadLightBox1.ShowNextButton = False
                RadLightBox1.ShowPrevButton = False
            End Sub


            Private Sub Page_PreRender(ByVal Sender As System.Object, ByVal E As System.EventArgs) Handles Me.PreRender

                Dim hyp As HyperLink
                Dim img As Image
                'RadLightBox1.Visible = False

                Dim lbItem As RadLightBoxItem
                If Not _photo1.Equals("") Then

                    hyp = New HyperLink
                    hyp.ID = "ImageGroot"
                    hyp.CssClass = "PlaatLinks"
                    hyp.NavigateUrl = "javascript:OpenLightBox();"
                    hyp.ToolTip = "Klik voor vergroting"
                    hyp.ImageUrl = Functies.FormatThumbnail(_photo1, 240)

                    If _photo2.Equals("") And _photo3.Equals("") Then
                        RadLightBox1.ShowNextButton = False
                        RadLightBox1.ShowPrevButton = False
                        'RadLightBox1.ClientSettings.NavigationMode = LightBoxNavigationMode.Button
                    End If

    End Sub
  5. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 23 Mar 2015 Link to this post

    Hi Marc,

    I examined the provided code snippet and I noticed that you have a condition based on the buttons will be displayed. Could you please verify that the properties are applied in this case? Additionally I attached a small sample which demonstrates that on my side the buttons are disabled properly.

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 23 Mar 2015 in reply to Kostadin Link to this post

    It has to do with some CSS for the LightBox that we overruled.
    Thanks for your support.

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