Hi,
I have iggrid and in my grid I want to remove Done/Cancel" button. I have set "showDoneCancelButtons=False" and now Done/Cancel
button is not visible. but here I am facing some issues like In my grid we have checkbox bind on column as below.
I want to read all data of checkbox column.
I am reading the data from "AllTransactions" property as below: and it is working fine when we show Done/Cancel button.
Can anyone please help me out from the above issue?
Thanks in advance.
Hello,
After investigating this further, I determined that allTransactions could be called in a method bound to the editRowEnded event, which is fired with and without Done/Cancel buttons. By calling allTransactions in this method the array is not empty when changes are made.
features: [
{
name: "Updating",
showDoneCancelButtons: false,
editRowEnded: function(evt, ui) {
var transactions = $("#grid").igGrid("allTransactions");
for(var i = 0; i < transactions.length; i++) {
console.log(transactions[i]);
}
]
Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.
Regards, Monika Kirkova, Infragistics
igGridDoneCancelButtons.zip
Hi Monika,
Thanks for your reply.
I have tried the same but could not resolve the issue.
Below is my code:
Any updated on the above?
The provided solution is working well but I have to click on another row to end the edit mode.
Can I achieve the same thing by just check/uncheck the checkbox?
Waiting for your response.
Thanks
The editRowEnded event is fired when the row exits edit mode. By removing the Done/Cancel buttons this is achieved by clicking on another row or pressing Enter key.
Additionally, allTransaction method returns an array if the row has already exited edit mode. However, if your requirement is to access the new value of the checkbox what I could suggest is binding a method to the valueChanged event of the checkbox editor as below:
columnSettings: [
columnKey: "Female",
editorType: "checkbox",
editorOptions: {
valueChanged: function (evt, ui) {
console.log(ui.newValue);
],
1715.igGridDoneCancelButtons.zip
Same
eligible nonprofit
Agreed! 3 million
Nice info! uno online