Is there any way to display a static column value ( ex – “ClickHere” will display in the all rows with the “Details” as column header) in Jqgrid? i am using spring MVC Jackson support for populate the jqgrid by using a jsonReader. i just need to have a static string as a column that not comes with the JSON.
Ex –
Student Name | Detail |
XXXX | clickhere
YYYY | clickhere
I need to have ‘clickHere’ string hardcoded in a jqgrid column while i used studentName from the json object. Can this is doable?
Please let me know your thoughts. Thank you in advance
I don’t use spring MVC myself, but to create a column with the static text ‘Click here’ you can define it with respect of the custom formatter:
The definition of the
unformatteris optional. Probably you will not need it. It’s depend on how you read (it you ever do it) the data from grid.It can be that formatter:’showlink’ of some other form of link is what you really want to do. In the case you can find the answer on your question here (see the demo).