Query |
Response | |
The problem with this approach is, i'm able to restrict the delete operation but still,task gets deleted from the UI. I can perform this operation on actionBegin event also,but in that case,Delete operation conficts with Row drag & drop functionality. Because i'm getting args.requestType=delete inside actionBegin even while droping row on another row. Would you please help me to resolve this? |
On drag/drop action, the record will be deleted from the dragged position and it will be added in a dropped position. So delete action will be triggered in this case. To restrict this, we can set/reset the flag in rowDrag and rowDragStop action respectively.
By using that flag value we can perform delete action
Please find the code example below:
| |
Another problem is,how i can remove default context menu items. I'm not able to perform my custom opration on 'Task Details' click because i'm opening my custom add task dialogue using args.requestType == "beforeOpenEditDialog". In case of clicking task details,i'm also getting args.requestType == "beforeOpenEditDialog".
|
We can add the custom context menu items by using contextMenuOpen client side event. We have prepared the work around and removed all default menu and included custom TaskDetails Menu and bind the edit action by using “openEditDialog” public method.
By using eventHandler we can bind the actions to custom menu
Please find the code example below:
Please find our online documentation for further reference
| |
Duration is currently being displayed as 'days',how to change it to hours(hrs)? e.g. my model returns 8 hrs but duration displays it as 8 days. |
We can change the duration units by using durationUnit property.Please find the code example below
|