JQGrid How to bind data when the colModel name is different from the column name in Database

StackOverflow https://stackoverflow.com/questions/23426456

  •  14-07-2023
  •  | 
  •  

Question

My Server is returning data with column Names which I am not comfortable with. I want the JQgrid to have colNames differently i.e. I give my own names. How do I map tat with the data.

Était-ce utile?

La solution

Got the answer. In colModel there is a prop XMLMap where we define a function. I assigned XMLMap to each column and inside the function the data was decoded.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top