Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
UPDATED: Look at this this and this this answers. Probably the approach is what you need from the dynamic columns.
You can take a look in the answer the answer in case if you will need to use custom formatters.
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
UPDATED: Look at this and this answers. Probably the approach is what you need from the dynamic columns.
You can take a look in the answer in case if you will need to use custom formatters.
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
UPDATED: Look at this and this answers. Probably the approach is what you need from the dynamic columns.
You can take a look in the answer in case if you will need to use custom formatters.
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
UPDATED: Look at this and this answers. Probably the approach is what you need from the dynamic columns.
You can take a look in the answer in case if you will need to use custom formatters .
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.
UPDATED: Look at this and this answers. Probably the approach is what you need from the dynamic columns.
You can take a look in the answer in case if you will need to use custom formatters .
Small recommendations:
- It seems to me that you can remove
async: false
parameter for the$.ajax
call. - You can remove
result.data
from the data returned by the ajax call. (After that you should and the line withvar colD = result.data
). The data will be not really used because you calltrigger('reloadGrid');
immediately. - On the other side the values for
sortname
andsortorder
parameters should be included in the data model (as the properties ofresult
). - You can use
url: secondFetchURL, datatype: 'json', mtype: 'POST'
parameters directly in the jqGrid definition ( in$("#myGrid").jqGrid({/*here*/});
. Notrigger('reloadGrid')
will be needed.