Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8956853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:51:42+00:00 2026-06-15T14:51:42+00:00

I am working on an hexagonal pattern generator that uses KendoUI widgets as GUI.

  • 0

I am working on an hexagonal pattern generator that uses KendoUI widgets as GUI.

I am trying to implement a Randomize() function that would animate the slider handles to a random position. The function is called when clicking the Randomize! button.
This should generate a slide or change event on the Kendo slider which in turn would fire the changeYcomp(e) callback that calls the init() function updating the pattern.

Markup for the slider:

 <div class="sliderwrapper" id="yslider">
                            <label for="ycompSlider">Y variation</label>
          <input id="ycompSlider" class="slider" />
 </div>

Script for the callback:

function changeYcomp(e) {
    kendoConsole.log("New slide value is: " + e.value);
    ycomp = e.value;
    init();
}

Parameters assignment for the slider:

$("#ycompSlider").kendoSlider({
                                slide: changeYcomp,
                                change: changeYcomp,
                                min: -10,
                                max: 10,
                                smallStep: 1,
                                largeStep: 10,
                                value: 0
                            });

Randomize function:

function Randomize() {
    console.log("Randomizing!")
    $("#yslider .k-draghandle").animate({
      left: Math.round(Math.random()*130-7)
    });

}

Unfortunately neither changing the .k-draghandle position via CSS animation, nor changing any of the slider’s HTML attributes fires any event.

I am assuming that the slider is listening for mouse events only.

For now the only alternative would be to manage the slider handle position and the updating function separately by adding step functionality on the animation.

I would like to avoid this as it would either force some redesign or involve duplication.

Help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:51:43+00:00Added an answer on June 15, 2026 at 2:51 pm

    You can use the trigger() function on a widget to fire its events:

    $("#yslider").data("kendoSlider").trigger("slide", { value: 123 });
    

    The caveat is that you have to specify the event object that it passes to the callbacks. Fortunately the event for slide only contains the value property.

    So you can do:

    var slider = $("#slider").data("kendoSlider");
    slider.value(5);
    slider.trigger("slide", { value: slider.value() });
    

    See this jsFiddle for a working example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, I'm working on a game project that uses a 3D variant of hexagonal
Working with an undisclosed API, I found a function that can set the number
Working on calling a C function from my asm project. I'm trying to push
I am working on a project that uses the Juce library to display graphics.
Working with TCL and I'd like to implement something like the Strategy Pattern .
Working in FlashBuilder, I build a mobile AS3 application that uses a Loader to
I am working with a hexagonal grid. I have chosen to use this coordinate
Working with a Lucene index, I have a standard document format that looks something
Working on Progress 9.1E on a Windows box. We've got a standard 4GL GUI
Working through C++ Primer Plus and am trying to cin data to a dynamically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.