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

ShowNext ShowPrevious does not work anymore

4 Answers 10 Views
LightBox
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
Fit2Page asked on 13 Mar 2015, 02:21 PM
ShowNextButton="false" ShowPrevButton="false"

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

Marc

4 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 18 Mar 2015, 08:24 AM
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.

 
0
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 19 Mar 2015, 11:39 AM
  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
0
Kostadin
Telerik team
answered on 23 Mar 2015, 03:18 PM
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.

 
0
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 23 Mar 2015, 03:51 PM
It has to do with some CSS for the LightBox that we overruled.
Thanks for your support.

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