0

I set the required option to my password field dynamically:

$("#name").jqGrid('setColProp', 'password', {
    editrules: {
        required: true
    }
});

And it work 's fine. But I can't set the elmsuffix:

$("#name").jqGrid('setColProp', 'password', {
    formoptions: {
        elmsuffix: ' *'
    }
});

What am I doing wrong?

Justin Ethier
  • 131,333
  • 52
  • 229
  • 284
degressor
  • 358
  • 4
  • 16

1 Answers1

2

I suppose that your problem is just where or when you set the formoptions. Probably you tried to set the settings inside of beforeShowForm, but the {formoptions: { elmsuffix: ' *' } setting should be used during constructing of the form.

So you should just use beforeInitData to make the changes.

Oleg
  • 220,925
  • 34
  • 403
  • 798