How to get table first row data in jqgrid?
Here I want 2 and 4.0 data from jqgrid how to get this value without click table value?
var rowId = $("#gridtable2").getRowData(0);
var name = rowId['m_tab_p'];
Here gridtable2 is jqgrid id, and m_tab_p is 1st column id..
JSP grid code:
<s:url id="remoteurl2" action="add_act" />
<sjg:grid caption="RECORDS" gridModel="dto_plot_rep" width="250"
height="70" href="%{remoteurl2}" id="gridtable2" rownumbers="true"
viewrecords="true" pager="true" pagerPosition="centar"
navigator="true" navigatorSearch="true"
navigatorSearchOptions="{multipleSearch:true}"
navigatorDelete="false" navigatorEdit="false" loadonce="true"
onCompleteTopics="cal_tot" userDataOnFooter="true"
rowNum="0">
<sjg:gridColumn name="m_tab_p" index="m_tab_plotno"
title="PLOT" width="180" align="left" search="true"
searchoptions="{sopt:['eq','cn']}" sortable="true" />
<sjg:gridColumn name="m_tab_c" index="m_tab_cent" title="CENT"
width="180" align="left" search="true"
searchoptions="{sopt:['eq','cn']}" sortable="true" />
</sjg:grid>