jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Disable Default Edit Dialog Disable Default Edit Dialog #105190

    TDS
    Participant

    Small mistake:

    b.editRecurrenceDialog.jqxWindow(“close”);

    in reply to: Disable Default Edit Dialog Disable Default Edit Dialog #105189

    TDS
    Participant

    Btw, some change for correctness:

    jqxScheduler:

    From

    closeDialog: function() {
      var b = this;
      b._editDialog.jqxWindow("close");
    },

    To

    closeDialog: function() {
      var b = this;
      b._editDialog.jqxWindow("close");
      if (b.editRecurrenceDialog) {
        b.editRecurrenceDialog("close");
      }
    },

    From
    return r.date().getTimezoneOffset() < Math.max(z.getTimezoneOffset(), x.getTimezoneOffset())
    To
    return r.date().toDate().getTimezoneOffset() < Math.max(z.getTimezoneOffset(), x.getTimezoneOffset())


    TDS
    Participant

    Sorry for late replay, but I’ve had holidays 😉
    The data is from Lightning export of Mozilla Thunderbird. And the ICAL library is also from Mozilla. They try to cover all ICS date in the wild. So it should be correct considering RFC 2445 and 5445.


    TDS
    Participant

    I will go deeper:
    – jQWidgets v5.6.0 (2018-Feb)
    – first there is a jqxWindow to ask if deletion is okay, then calling deleteRow (like API say)

    
    $confirm.on("close", function(event) {
      if (event.args.dialogResult.OK) {
        grid.jqxTreeGrid("deleteRow", currentID);
      }
    });
    

    callback deleteRow in source adapter should be triggered – but it isn’t

    
    deleteRow: function (rowid, commit) {
      console.log("deleteRow"); // will never reach here
    })
    

    In Grid the callback is defined as “deleterow” in TreeGrid as “deleteRow” (capitalized R)

    Grid (working):

    deleterow – callback function, called when a row is deleted. If multiple rows are deleted, the rowid parameter is an array of row ids.
    deleterow: function (rowid, commit) {
    // synchronize with the server – send delete command
    // call commit with parameter true if the synchronization with the server is successful
    //and with parameter false if the synchronization failed.
    commit(true);
    }

    TreeGrid (not working):
    https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxtreegrid/jquery-treegrid-data-editing.htm

    The deleteRow method can be used for deleting a row from the TreeGrid.
    $(“#treeGrid”).jqxTreeGrid(‘deleteRow’, rowKey);
    When you call addRow, deleteRow or updateRow methods, the TreeGrid source object’s addRow, deleteRow or updateRow would be called as well.

    So a working example for jqxTreeGrid with source adapter callbacks (and e.g. manually triggering like in jqxGrid) would be helpful (not only inline editing, etc.). Maybe there is a bug?


    TDS
    Participant

    Please take a look and read the title. The example you mentioned didn’t use callbacks in source adapter. I compared Grid and TreeGrid. In Grid it is working with nearly same code.


    TDS
    Participant

    I finally found a “solution”:

    virtualmode: true

    Why? I don’t know…


    TDS
    Participant

    Hello Stanislav,

    here is the fiddle. Can you please edit my post and delete the JSON stuff?

    https://jsfiddle.net/tds4u/72fqveq6/

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