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
  •  | 
  •  

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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top