Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Enable updating on single click instead of double click
posted

Hello,

I am implementing the igGrid in a web application. I have enabled the Updating feature, which works fine, except for how the edit mode is entered. I need the edit mode to be initiated when the cell is clicked, however at the moment I need to click in the cell in order to focus it, then click again in order to start the edit mode.

That's how the feature is configured:
{
    name: 'Updating',
    enableAddRow: false,
    editMode: 'cell',
    enableDeleteRow: false,
    rowEditDialogContainment: 'owner',
    showReadonlyEditors: false,
    enableDataDirtyException: false,
    startEditTriggers: 'click',
    columnSettings: [
        {columnKey: "Details", readOnly: true},
        { columnKey: 'Auflage', editorType: 'numeric', editorOptions: { button: 'spin', minValue: 0, required: true } },
        { columnKey: 'kategorie1', editorType: 'combo', editorOptions: { dataSource: kategorienJson, textKex: 'Name', valueKey: 'Name', autoComplete: true } },
        { columnKey: 'Tags', editorType: 'combo', editorOptions: { dataSource: tagsJson, textKex: 'Name', valueKey: 'Name', multiSelection: 'onWithCheckBoxes', autoComplete: true } },
        { columnKey: 'Bewertung', editorType: 'numeric' }
    ]
}

is there anything wrong in the configuration? Do I need to solve that using the grid's events?

  • 11095
    Offline posted

    Hello,

    Please do not hesitate to contact me If I can assist you with anything else.

  • 11095
    Offline posted

    Hello,

    I have reviewed your issue. There is nothing wrong with configuration just the behavior of the control is like that. When you are enabling both the edit and the selection modes, the igGrid cannot guess what the user wants to do on click - to edit the row or to select. Because of that when you use the both modes double click handles the edition and single click handles the selection.
    If you have any addition questions feel free to ask.