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
435
Multiple StartEditTriggers in Razor Code?
posted

How can we do this?

features.Updating().StartEditTriggers(GridStartEditTriggers.F2)

I'd like to use F2 and Enter I tried chaining them with | but it doesn't work

Parents
No Data
Reply
  • 24497
    posted

    Hi qnal,

    The F2 and Enter triggers should work, however, they may have effect only when grid has focus at the time when the F2/Enter keys are pressed. The focus is controlled by the Selection feature, so, application should enable that as well. To verify if grid has focus, you may press arrow down/up key. If selected row/cell is not changed, then grid/selection does not have focus and F2/Enter will probably fail as well.

    Below is example:

    $("#grid").igGrid({
     
    features: [{
        name: 'Selection'
     
    }, {
        name: "Updating",
       
    startEditTriggers: 'f2,enter'
     
    }],
      ...
    });

Children