how-to-insert-table-on-ajax

Questionshow-to-insert-table-on-ajax
Bogdan Chirukin asked 10 months ago

Hi i\’m write js code and think that get table data, it wrong how change code to load table on ajax? thnx $(\’table#forms\’).on(\’click\’, \’tr\’, async function () { let id = $(this).attr(\’id\’) // $(\’iframe\’).attr(\’src\’, \'{{route(\’fields\’)}}?rowid=\’ + $(id).data(\’id\’)).css(\’display\’, \’block\’) let table = await $.get(\'{{route(\’fields\’)}}?rowid=\’ + $(id).data(\’id\’)) + \’&grid_id=forms&_search=false&nd=1707725095760&rows=20&jqgrid_page=1&sidx=1&sord=asc\’ $(\’#forms\’).jqGrid(table) })

1 Answers
Abu Ghufran Staff answered 9 months ago

Hello,

Please refer this code for loading grid with ajax call.

https://gist.github.com/gridphp/c85ee8db525ae46de40b118718fca241#file-master-detail-ajax-php-L36

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Bogdan Chirukin replied 9 months ago

Does this code have a working demo? because it doesn’t work for me – I don’t understand why

Abu Ghufran Staff replied 9 months ago

This is just for idea. Master-detail feature is supported in the full version.
You can use similar ajax call and try loading your grid page.

Your Answer

15 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?