Featured post
JQGrid button in Master grid each row to load Detail grid -
i testing example @ url : http://trirand.com/blog/jqgrid/jqgrid.html . right detail grid loading default id @ page load.
requested functionality:
i want detail button in each row when clicked should load detail grid. please tell me how. struggling that.
you can use custom formatter or instert <botton type='button' ....>
(or <input type='button' ...>
) respect of 'setrowdata' inside of loadcomplete
or gridcomplete
event handler. can find example if @ jqgrid demo , choose "row editing" / "custom edit". binding of onclick
event can either in "row editing" / "custom edit" example or in unobtrusive way (see example here not same problem, hope understand mean) using jquery.click or jquery.bind. way instead of button can consider use link (<a>
or showlink
).
inside of "click" handle can force loading of detail grid typically inside of onselectrow
.
updated: here see how 1 can place static texts links in jqgrid:
it needed fill empty string '' in "details" column in json respond server. in cases depends data format , jsonreader
used not required.
in case of master/detail scenario can display (set url or postdata , trigger gridreload) detail grid on place "clicked row ..." texts displayed in demo example.
- Get link
- X
- Other Apps
Comments
Post a Comment