Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issue getting slider to work when slider is in a table #16

Closed
tompenning opened this issue Jul 28, 2014 · 2 comments
Closed

Having issue getting slider to work when slider is in a table #16

tompenning opened this issue Jul 28, 2014 · 2 comments

Comments

@tompenning
Copy link

When in table slider ignores maxSlide and displays all
Here is the code:

<script src="../../js/jquery-1.11.0.js"></script>
<script src="js/jquery.lightSlider.js"></script>
<script type="text/javascript">

$(document).ready(function() {
$('#lightSlider').lightSlider({
minSlide:1,
maxSlide:4,
slideMargin:10,
slideWidth:100
});
});

</script>
  • First Slide

    Lorem ipsum Cupidatat quis pariatur anim.

  • Second Slide

    Lorem ipsum Excepteur amet adipisicing fugiat velit nisi.

  • Third Slide

    Lorem ipsum Excepteur amet adipisicing fugiat velit nisi.

  • Forth Slide

    Lorem ipsum Excepteur amet adipisicing fugiat velit nisi.

  • Fifth Slide

    Lorem ipsum Excepteur amet adipisicing fugiat velit nisi.

  • Sixth Slide

    Lorem ipsum Excepteur amet adipisicing fugiat velit nisi.

@joduk77
Copy link

joduk77 commented Jul 29, 2014

I am using VB.NET and was able to overcome this issue by creating a new label class and overriding the base label render function. The lightslider code is embedded in the text of an instance of MyLabel class. I can't find the link to credit the source, but googling and a bit of mashing landed a success here. From what I recall, the standard renderer adds a <span> tag, which is not handled otherwise. Hope this helps.

Public Class MyLabel
    Inherits Label

    Protected Overrides Sub Render(writer As System.Web.UI.HtmlTextWriter)
        MyBase.Render(writer)
    End Sub

    Public Overrides Sub RenderBeginTag(writer As System.Web.UI.HtmlTextWriter)
        writer.Write("")
    End Sub

    Public Overrides Sub RenderEndTag(writer As System.Web.UI.HtmlTextWriter)
        writer.Write("")
    End Sub
End Class

@sachinchoolur
Copy link
Owner

This issue has been resolved. Please refer #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants