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