jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: jqxSlider problem jqxSlider problem #134333

    pk
    Participant

    For anyone still interested in this 7 year old bug:
    Repro (version 18.0.0): https://jsfiddle.net/38gy6s70/
    Fix: https://jsfiddle.net/u78bc5jp/

    TL;DR version: search for “SIZECHANGED” in the fixed version. Code is from official download of jq widgets (jqxslider.js), after it ran through JS beautifier.


    pk
    Participant

    Hello Peter,
    In my opinion, this shouldn’t happen. Consider this (my scenario):
    A column is set to “custom”, with custom cell editor and rendering. I’ve implemented all three needed functions (cellsrenderer, createeditor, getEditorValue). As soon as I trigger cell editing, I display a popup. This popup needs a series of clicks to select the final value that will go into the cell. But I can’t do that, because once I click something, cellendediting triggers.

    It’s a simple fix: on the “mousedown.gridedit” handler, you already check if grid is editable, and if grid has triggered begincelledit.
    If you also check that the editmode is NOT programmatic, it’s fixed.

    Like this (jqxgrid.js):

    e.addHandler(b(document), "mousedown.gridedit" + e.element.id, function(m) {
    if (e.editable && e.begincelledit && (e.editmode!="programmatic")) {

    Anyway, that’s just my 2 cents.

    in reply to: jqxSlider problem jqxSlider problem #121602

    pk
    Participant

    The bug is still there, and it’s easy to reproduce.
    The bug: “When jqxSlider is inside an element that is not visible initially, it fails to be created”.

    PS: Ankit and I try to help pinpoint the issue and fix the issue, I am still amazed at replies like “it’s an issue when it’s not used correctly”.
    PS2: What Ankit found is true: the _helpers.element.sizeChanged(function(){ branch is a dead code branch, with no “sizeChanged” function in all of jqx.

    in reply to: Batch editing documentation? Batch editing documentation? #121367

    pk
    Participant

    Ok, to answer my own questions, examining the source code for version 13.1.0:

    – Buttons need “showtoolbar: true” to appear.
    – There isn’t a way to call the function handlers of OK, Cancel via API.
    – There is no specific event fired for “OK”, “cancel”. The grid is just rendered with the new data.
    – There is no way to get just the rows that changed, apart from maybe doing some hacks tied to “rendered” event (grab the grid data before begin edit, grab the grid data after end edit, and get the difference).

    Correct me if I got it wrong.

    I think it’d be useful to have programmatic access to the “OK”, “cancel” buttons and have some events along with it.

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