www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] Updating Ajax Toolkit Slider Extender position

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    2

    resolved [RESOLVED] Updating Ajax Toolkit Slider Extender position

    I have an Ajax Toolkit Slider Extender in a user control on an ASPX page:

    <asp:TextBox ID="txtSlider" runat="server" ClientIDMode="Static" />
    <ajaxToolkit:SliderExtender ID="seSlider" runat="server" BehaviorID="seSliderBehavior" EnableHandleAnimation="true" RaiseChangeOnlyOnMouseUp="false" TargetControlID="txtSlider" />

    I have a label control next to the slider that displays the current value of the slider. All of this is working fine.

    I also have four link button controls to go to the first, previous, next and last values of the slider range or current value. The buttons work fine and the label reflects the updated value of the txtSlider text box, but the slider handle position does not change.

    Each of the link buttons has an attribute such as the following defined:

    lnkSliderFirst.Attributes.Add("onclick", "return navSliderFirst();")

    The corresponding JavaScript is:

    function navSliderFirst() {
    var txtSlider = document.getElementById("<%=txtSlider.ClientID%>");
    txtSlider.value = "1";

    updtSliderLabel();

    return false;
    }

    I need to be able to update the slider position on the client side when the link buttons are clicked. Is this possible? If so, how? Thanks!

  2. #2
    Join Date
    Jun 2013
    Posts
    2
    I have concluded that it is not possible to do what I want with the Ajax Toolkit slider, so I have abandoned it for the jquery-ui slider.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles