We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Problems due to property data changed after package update

Hi,

I am inquiring because the data contained in "args" has changed after updating the package.



function treeEdit(args) {
        //if (TagNullChk == "Space") {
        // args.cancel = true;
        //}
        var rowData = args.rowData;
        var colIndex = args.cell.ariaColIndex;


        //var treeGrid = document.getElementById("EqSelTree").ej2_instances[0];
        //var selectedRecord = treeGrid.getSelectedRecords();


        //Edit 시 TAG No.(4)와 EQUIP NAME(3)은 수정 불가
        if (args.type == "edit" && (colIndex == 4 || colIndex == 3)) {
            args.cancel = true;
        }
}


In the code above, "colIndex" contains Column's index.

After the index of the column that started with "0" is updated,

I was able to confirm that it was changed to starting from 1.

I would like to ask if this changed index will continue in the future.



Regards.




2 Replies

PS Pon Selva Jeganathan Syncfusion Team November 9, 2022 10:32 AM

Hi TaeWook Kang,


We are able to replicate the issue at our end. We have forwarded this issue to our dependent component team to further validation, and we will update you with further details by two business day. Until then we value your patience.


Regards,

Pon selva



PS Pon Selva Jeganathan Syncfusion Team November 11, 2022 12:41 PM

In our TreeGrid component, we have set the “aria-colindex” attribute of the Grid cells from 1 instead of 0 for better Accessibility. So, we suggest modifying the code as per the new indexing or if you need to get the cells from 0 index then we suggest the “data-colindex” attribute. Please refer to the screenshot below for more information.




Loader.
Live Chat Icon For mobile
Up arrow icon