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 advance
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 advance
Comment