Posted 21 October 2018, 10:22 pm EST
HI Deepak,
I have passed X and Y coordinates of filterButton but its not work, properly every time its open from (0,0) index and filter item not showing inside dialog box.
Demo Code:
var cellRect = activeSheet.getCellRect(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex());
console.log(“X coordinate:” + cellRect.x);
console.log(“Y coordinate:” + cellRect.y);
//console.log(“Cell width:” + cellRect.width);
//console.log(“Cell height:” + cellRect.height);
//console.log(spread.hitTest(cellRect.x, cellRect.y));
//var cellrange = new GC.Spread.Sheets.Range(rowStartIndex, colStartIndex, (rowEndIndex - rowStartIndex) + 1, (colSEndIndex - colStartIndex) + 1);
var cellrange = new GC.Spread.Sheets.Range(rowStartIndex, activeSheet.getActiveColumnIndex(), (rowEndIndex - rowStartIndex) + 1, 1);
var hideRowFilter = new GC.Spread.Sheets.Filter.HideRowFilter(cellrange);
activeSheet.rowFilter(hideRowFilter);
//activeSheet.rowFilter(new GC.Spread.Sheets.Filter.HideRowFilter(new GC.Spread.Sheets.Range(15, 5, 10, 1)));
// activeSheet.rowFilter().openFilterDialog(cellRect.x, cellRect.y, cellRect.x, cellRect.y);
activeSheet.rowFilter().openFilterDialog(spread.hitTest(cellRect.x, cellRect.y));
Thanks.