flex-datagrid

Flex: Database driven DataGrid: arrows disappearing

房东的猫 提交于 2020-02-05 05:35:51
问题 In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside). private function headerReleaseHandler(event:DataGridEvent):void { var column:DataGridColumn = DataGridColumn(event.currentTarget.columns[event.columnIndex]); if(this.count>0) { if(this.query.SortField == column.dataField) { this.query.SortAscending = !this.query.SortAscending; } else { this.query.SortField = column.dataField; this.query.SortAscending = true; } this.fill(); } event

Flex datagrid not updated properly

こ雲淡風輕ζ 提交于 2019-12-13 05:36:53
问题 I have two tables: Person {pID, pName, deptID} and Departments {deptID,deptName} An SQL statement like this gets me the name of a person and the department name: SELECT pName, departments.deptName FROM people INNER JOIN people.deptID = departments.deptID; The above works fine. I have a Flex DropDownList that is populated with deptNames. When I click the submit button, I am able to obtain the ID of the selected department without problem: protected function button_clickHandler(event:MouseEvent