Javascript/Sencha
AUIGrid 선택된 row 및 cell 정보 가져오기
바리새인
2025. 1. 11. 01:48
// Assuming 'myGrid' is your AUIGrid instance
let selectedItems = AUIGrid.getSelectedItems(myGrid);
if (selectedItems.length > 0) {
// Get the first selected item
let selectedItem = selectedItems[0];
// Access the dataField of the selected column
let dataField = selectedItem.dataField; // Column's dataField
console.log("Selected Column's dataField:", dataField);
}