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 8482207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:45:56+00:00 2026-06-10T19:45:56+00:00

I am using inline editing of enhancedgrid cells and have a NumberSpinner element. The

  • 0

I am using inline editing of enhancedgrid cells and have a NumberSpinner element. The constraints of this numberspinner don’t work when editing inline. The required property works fine though.
My code:

{field: 'msorder', width: '10%', name: 'Milestone Order',editable: true, type: dojox.grid.cells._Widget, widgetClass: dijit.form.NumberSpinner, widgetProps: {required:true,smallDelta:1, editorParams:{constraints:{ min:-1000, max:1000, places:0 }} }}

I have also tried:

{field: 'msorder', width: '10%', name: 'Milestone Order',editable: true, type: dojox.grid.cells._Widget, widgetClass: dijit.form.NumberSpinner, widgetProps: {required:true,smallDelta:1, constraints:{ min:-1000, max:1000, places:0 } }}
  • 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-10T19:45:57+00:00Added an answer on June 10, 2026 at 7:45 pm

    I don’t know what version of Dojo you use, but there is known bug in 1.6 that constraints are ignored in grid widgets. However, I solve that problem doing a little overwriting standard NumberSpinner.

    dojo.require("dijit.form.NumberSpinner");
    
    dojo.addOnLoad(function() {
    
        dojo.declare("mySpinner", [ dijit.form.NumberSpinner], {
    
                validator: function(v, c){
    
                    var MIN= -1000;
                    var MAX = 1000;
    
                    c.min= MIN;
                    c.max = MAX ;
                    return ((v < MAX ) && (v > MIN));   
                },
    
        });
    
        var dateBox = new mySpinner({}).placeAt('foo');
        dateBox.set("value", 1000);
    
    });
    

    (Now, in your grid structure you should use mySpinner of course, and it should do the trick).

    Demo: http://jsfiddle.net/tvUaK/135/

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

Sidebar

Related Questions

I'm trying to get YUIs DataTable to work using Inline Cell Editing that can
I want to develop a test project for inline editing using jQuery. In this
I'm using a jQuery plugin called toggleEdit for inline editing. Everything works fine when
I'm using inline editing in my grid , I have some cases which i
I'm trying to do inline editing for my website using jQuery so I can
I am hiding an element using inline css, like so: <span class=hidden-nojs style=display:none>Some text</span>
I've been having a lot of trouble figuring this out. So I'm using inline
I am using jqgrid and using the inline editing mode and can't figure out
I'm using jquery-ui's draggable for drag-and-drop, and jeditable for inline editing. When I drag
I'm using a jquery plugin for inline editing. But i would like to activate

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.