Alireza Fattahi
Alireza Fattahi

Reputation: 45475

jqGrid set the attribute of inline edit input box

We are using jqGrid free version 4.13.5, the inline edit is enabled.

I want to set the input attribute dir to auto and also set a class for the input.

According to http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules I find that the grid has edittype:'custom' that custom_element and custom_valuefunctions should be implemented,

I wonder if new version of jqGrid has a better way ( without the need of a custom edit type)

Upvotes: 0

Views: 833

Answers (1)

Oleg
Oleg

Reputation: 221997

If I correctly understand your question then you need just use editoptions with attributes, which you need to set on the <input> of inline editing:

editoptions: { dir: "auto", "class": "someClassName" }

Upvotes: 1

Related Questions