I'm following this link jqGrid and dynamic column binding to generate dynamic columns for JQGrid
In my MVC Controller I have 2 functions one for Column name and another for Colmodel
GetColumnNamesForGrid() // Json Array
GetColumnModelForGrid() // Json Object
Both the functions returning the JSON Data which am planning to assign to the JqGrid ColModel and ColName.
Now I have to call functions and I need to send both the results in a Single call and I'll will fetch in Ajax like
success: function (result) {
colN = result.colname;
colM = result.item.colModel;
Something like this.
How can I do this? I'm stuck here because I'm new to these languages.
Please let me know if there is any better way to do this?