문제

I'm using jqgrids contextmenu plugin as descriped in this forum post.

My question is: How can I get all selected rows, when the grid paramter 'multiselect' is 'true? Background: I would like to apply a context menu action for all select rows.

Thanks for your anwsers, Paul

도움이 되었습니까?

해결책

To get the selected rows on jqGrid, you can use this code:

$('#yourGrid').jqGrid("getGridParam", "selarrrow");

This will return an array containing the ids of your selected rows.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top