jQWidgets Forums

jQuery UI Widgets Forums Grid Cell empty value

This topic contains 6 replies, has 2 voices, and was last updated by  Hristo 9 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Cell empty value #78328

    Alex
    Blocked

    Hi!

    I have a problem with empty values.

    When go to edit mode in an empty cell, then the default value is assigned to 0, thus I can’t clear the value, and when you exit edit mode, the value remains 0. It’s not right. If no value is entered it must be empty.

    columns:
    {“pos”:1, datafield”:”235″, “text”:”ВремяРоспумин”, “columntype”:”numberinput”, “cellsformat”:”f0″, “align”:”center”, “cellsalign”:”center”, “aggregates”:[‘max’, ‘avg’, ‘min’], “nullable”:true,
    createeditor: function (row, column, editor) {
    editor.jqxNumberInput({spinMode: ‘simple’, spinButtons: false, spinButtonsStep: 0, inputMode: ‘simple’, value: column, decimalSeparator: “,” , groupSeparator: ” “, textAlign: “center”});
    }, …
    },

    Maybe I something don’t understand, please help.

    Thank you!

    Cell empty value #78338

    Hristo
    Participant

    Hello Alex,

    Please take a look this example:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/editrowsrendering.htm?arctic
    Focus on ‘Price’ if you write some different value from interval [0 – 15] there will apear warning message.
    If you want could provide an example in jseditor/fiddle for better analize.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Cell empty value #78340

    Alex
    Blocked

    You didn’t understand me. Remove from jqxNumberInput default value = 0.

    Cell empty value #78343

    Alex
    Blocked

    Best solution make for input field property “defaultValue”.

    Cell empty value #78345

    Hristo
    Participant

    Hello Alex,

    Sorry for that misunderstood.
    Please take a look one workaround: http://jsfiddle.net/2atq064n/
    I hope this can help.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Cell empty value #78359

    Alex
    Blocked

    Hi Hristo!

    Thanks for the help. Well, now we have to decide how to clear the field from value, because 0 is a value.

    Cell empty value #78379

    Hristo
    Participant

    Hello Alex,

    Thanks for using our product. We can provide you such workaround.
    When ‘cellvalue’ is null then a concrete cell is empty.
    You could try some own logic in grid with input (with “type = number”).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.