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?
I suppose that your problem is just where or when you set the
formoptions. Probably you tried to set the settings inside ofbeforeShowForm, but the{formoptions: { elmsuffix: ' *' }setting should be used during constructing of the form.So you should just use beforeInitData to make the changes.