Announcement
Collapse
No announcement yet.
X
-
In brief testing, we can't reproduce this using a shift-click if the shift-click lands within a grid. You can get a native selection of various elements if you click in a canSelectText widget, but that's what this property is intended to do. Let us know if you can show a minimal, ready-to-run test case that shows an unexpected behavior.
-
-
Standard behavior for shift-click is to select all intervening rows between the existing selection and the clicked row. Ctrl-click selects individual additional rows.
Leave a comment:
-
Shift+click selection in grid is not working properly
Hi Team,
I am having a grid in which i can select multiple rows.When i select rows using shift+click instead of ony row getting selected , my whole page is selected.I have not used canSelectText(true) in whole application.
For grid code is:
setDataSource(DataSource.get(DSConst.OpeningTest.DATASOURCE, getReqestTransformer(), getResponseTransformer()));
setWidth100();
setCanEdit(true);
setCanExpandRecords(true);
setFields(getGridFields());
setSortField(DSConst.OpeningTest.MARK);
setExpansionFieldFalseImage(ComponentStyle.EXPAND_ALL_ICON);
setExpansionFieldTrueImage(ComponentStyle.COLLAPSE_UP_ICON);
setCanExpandMultipleRecords(true);
setCanExpandRecords(true);
setID(ComponentId.TITAN_OPENING_GRID_ID);
setCanAutoFitFields(false);
setSelectionType(SelectionStyle.MULTIPLE);
setSelectionAppearance(SelectionAppearance.CHECKBOX);
setMinWidth(ComponentStyle.INT_120);
setWidth(ComponentStyle.PERCENT_100);
setHeight(ComponentStyle.PERCENT_100);
setCellHeight(ComponentStyle.INT_20);
setHeaderHeight(ComponentStyle.INT_45);
setMinHeight(ComponentStyle.INT_92);
setBaseStyle(CssNameConstant.ALTERNATE_LIST_GRID_CELL);
setCellPadding(ComponentStyle.INT_5);
setAlign(Alignment.LEFT);
// Adding the properties back
// Default value is null
setListEndEditAction(RowEndEditAction.STOP);
setShowRecordComponents(true);
setShowRecordComponentsByCell(true);
setShowRowNumbers(false);
setCanEdit(true);
setCanSelectAll(true);
setCanDragSelect(true);
setAutoConfirmSaveEdits(false);
setAutoSaveEdits(true);
setConfirmDiscardEdits(false);
setEditByCell(false);
setCanAutoFitFields(false);
setVirtualScrolling(false);
setShowHeader(true);
setSaveByCell(false);
setLeaveScrollbarGap(false);
setAutoFetchData(true);
setFilterEditorHeight(ComponentStyle.INT_24);
setFilterOnKeypress(true);
setShowHover(true);
setShowHoverComponents(true);
setHoverWidth(ComponentStyle.INT_100);
setHoverAutoFitMaxWidth(ComponentStyle.INT_350);
setHoverAutoFitWidth(false);
setHoverWrap(false);
setHoverStyle("gridHover" + CssNameConstant.SPACE + "gridHoverWrap");
setCriteria(new Criteria(DSConst.OpeningTest.PROJECT, String.valueOf(ProtechSession.getValue(SessionConstants.PROJECT_ID))));
setEditorCustomizer(getEditorCustomizer());
How can i prevent this whole page selection.Can you help me in this?
Thanks in advanceLast edited by preeti_kanyal; 4 Dec 2019, 02:24.Tags: None
Leave a comment: