Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Setting "showDoneCancelButtons" property to false causing issue
posted

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.

$("#grid").igGrid("allTransactions"); 
But when I set  "showDoneCancelButtons=False", I am getting empty array in above line.

Can anyone please help me out from the above issue?

Thanks in advance.

Parents
No Data
Reply
  • 1320
    Offline posted

    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

Children