jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • ratchetclank
    Participant

    Ok, I found a workaround but it’s a VERY UGLY one :

    
    let resetHeigthLock = false;
    
    $("#myDataGrid").on('rowEndEdit', function (event) {
        if (!resetHeigthLock) {
            resetHeigthLock = true;
            setTimeout(function () {
                $("#myDataGrid").jqxTreeGrid('addRow', "resetHeigth", {}, 'last', null);
                $("#myDataGrid").jqxTreeGrid('deleteRow', "resetHeigth");
                setTimeout(function () {
                    resetHeigthLock = false;
                }, 50);
            },
            50);
        }
    });
    

    Basicly on the rowEndEdit event, I manually add and remove a line for the component to recalculate his heigth.
    Here you need to use a timeout function because it seem for an unknonw reason the deleteRow function trigger the rowEndEdit event, leading to an endless loop and a stack overflow.

    This is still a big bug but at least it can be circonvented somehow…

    in reply to: allowClear equivalent allowClear equivalent #89841

    ratchetclank
    Participant

    Thanks, but that’s not a response to my question.
    As stated, I know this method exist, but i would like to know if there is an option on the plugin itselt to allow the user to clear his selection. My usecase is in a treegrid, using the dropdown as an editior (as per your exemples). In this case, I can’t reasonably put a button which would make the edition more heavy than it’s already is

    So, is there an option of this componenet to activate an integrated clear selection button (like in almoste any other select/dropdown pluggin) ?

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