jQWidgets Forums
Forum Replies Created
-
Author
-
May 12, 2019 at 10:49 am in reply to: Disable Default Edit Dialog Disable Default Edit Dialog #105190
Small mistake:
b.editRecurrenceDialog.jqxWindow(“close”);
May 12, 2019 at 10:42 am in reply to: Disable Default Edit Dialog Disable Default Edit Dialog #105189Btw, 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())
May 12, 2019 at 7:31 am in reply to: ICAL expression RRULE not working correctly ICAL expression RRULE not working correctly #105184Sorry 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.July 4, 2018 at 8:47 am in reply to: CRUD – Callback not triggered CRUD – Callback not triggered #100860I 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.htmThe 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?
July 3, 2018 at 6:35 am in reply to: CRUD – Callback not triggered CRUD – Callback not triggered #100834Please 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.
April 4, 2018 at 9:19 am in reply to: TotalRecords ignored, Pager with wrong data TotalRecords ignored, Pager with wrong data #99587I finally found a “solution”:
virtualmode: true
Why? I don’t know…
March 31, 2018 at 8:14 am in reply to: TotalRecords ignored, Pager with wrong data TotalRecords ignored, Pager with wrong data #99512Hello Stanislav,
here is the fiddle. Can you please edit my post and delete the JSON stuff?
-
AuthorPosts