jQuery UI Widgets Forums Grid How to change selectionmode?

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 7 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • How to change selectionmode? #92877

    Zabelsky
    Participant

    Hello.
    I have a problem.
    Me need choose singlerow except for a few column.
    I use this is code:

    var getGridDispositionSettings = function () {
    return {
    altrows: true,
    width: “100%”,
    height: ‘100%’,
    sortable: true,
    filterable: true,
    groupable: true,
    pageable: true,
    pagesize: 200,
    editable : true,
    editmode : ‘click’,
    selectionmode : ‘singlecell’,
    showtoolbar: true,
    pagesizeoptions: [“20”, “50”, “100”,”200″,”300″],
    columnsresize: true,
    columnsreorder: true,
    localization: getLocalization(“ru”),
    rowsheight: 34,
    autoshowcolumnsmenubutton: false
    };

    $scope.settings.columns = [
    { text: “Блок”, datafield: “_blocksForTractor”, width: 80, selectionmode: ‘singlerow’, type: “string”, filtertype: ‘checkedlist’, cellsrenderer: asColumnRender, editable: false, resizable: false, pinned: true },
    { text: “Напр”, datafield: “_direction”, width: 25, selectionmode: ‘singlerow’, filtertype: ‘checkedlist’, resizable: false, cellsrenderer: asColumnRender, editable: false, type: “string”, pinned: true },
    { text: “Рег.Номер”, datafield: “_RegistrationNumbers”, width: 90, selectionmode: ‘singlerow’, resizable: false, cellsrenderer: asColumnRender, editable: false, type: “string”, pinned: true },
    { text: “Экипаж”, datafield: “_Drivers”, width: 130, selectionmode: ‘singlerow’, cellsrenderer: asColumnRender, resizable: false, editable: false, type: “string”, pinned: true },
    { text: “Вр. прицеп”, datafield: “_TempTrailerNumber”, width: 90, selectionmode: ‘singlerow’, cellsrenderer: asColumnRender, editable: false, type: “string” },
    { text: “Приписка”, datafield: “_Registration”, width: 40, selectionmode: ‘singlerow’, filtertype: ‘checkedlist’, cellsrenderer: asColumnRender, editable: false, type: “string” },
    { text: “Группа”, datafield: “_GroupAvto”, width: 60, selectionmode: ‘singlerow’, filtertype: ‘checkedlist’, cellsrenderer: asColumnRender, editable: false, type: “string” },
    { text: “Тип прицепа”, datafield: “TrailerType”, width: 70, columntype: ‘combobox’, cellsrenderer: asColumnRender, createeditor: createeditorTrailerType, cellendedit: rowEditTrailerType },
    { text: “Разрешения”, datafield: “_GroupPlacement”, width: 100, columntype: ‘combobox’, cellsrenderer: asColumnRender, createeditor: createeditorGroup, cellendedit: rowEditGroup }
    ];

    The problem is that i can choose singlecell,but when i clicked to other row where there is selectionmode: ‘singlerow’, I still choose a cell. How to fix this problem?
    Thx for attention

    };

    How to change selectionmode? #92880

    Peter Stoev
    Keymaster

    You cannot have a mix of selection modes in our

    Grid

    . You have to choose one of the modes we already have and use it if it satisfies your application’s needs. However, it is not possible to have a custom selection mode that is something between two different

    Grid

    selection modes.

    How to change selectionmode? #92883

    Zabelsky
    Participant

    thx for the answer
    have a good day

    How to change selectionmode? #92885

    Peter Stoev
    Keymaster

    Thanks, Alexey. Have a great day.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.