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