Hello there.
I have one problem.
I created grid with subgrid.
All i fine.I recive data for master grid, and when I click on + to display subgrid I also recive data but always is missing first row.
I checked in database and when I use same select statment in sql management studio I recive all item and first one also.
If I change ordering, same thing.Always missing first item...
<script type="text/javascript">
$(function()
{
$('#grdSysKorisnik').datagrid(
{
view: detailview,
detailFormatter:function(index,row)
{
return '<div style="padding:2px"><table class="ddv"></table></div>';
},
onExpandRow: function(index,row)
{
var ddv = $(this).datagrid('getRowDetail',index).find('table.ddv');
ddv.datagrid(
{
url:'dsrSysKorisnikDetalj.php?SysKorisnikIDX='+row.SysKorisnikID,
fitColumns:true,
singleSelect:true,
rownumbers:true,
loadMsg:'Učitavanje',
height:'auto',
columns:[[
{field:'NazivX',title:'Naziv',width:100},
{field:'DatumOtvaranjaX',title:'Datum otvaranja',width:100,align:'left'},
{field:'DatumKrajaX',title:'Datum kraja',width:100,align:'left'}
]],
onResize:function()
{
$('#grdSysKorisnik').datagrid('fixDetailRowHeight',index);
},
onLoadSuccess:function()
{
setTimeout(function()
{
$('#grdSysKorisnik').datagrid('fixDetailRowHeight',index);
},0);
}
});
$('#grdSysKorisnik').datagrid('fixDetailRowHeight',index);
}
});
});
</script>
<table id="grdSysKorisnik" title="" class="easyui-datagrid" style="auto;height:600px"
url="dsrSysKorisnikMaster.php"
toolbar="#toolbar" pagination="true"
rownumbers="true" fitColumns="true" singleSelect="true" >
<thead>
<tr>
<th field="SysKorisnikID" width="5">Šifra</th>
<th field="ImeX" width="20">Ime</th>
<th field="PrezimeX" width="20">Prezime</th>
<th field="EMail" width="20">Email</th>
<th field="AktivanTekst" width="20">Aktivan</th>
</tr>
</thead>
</table>
<?php
include 'Konekcija/Konekcija.php';
$SysKorisnikID = $_REQUEST['SysKorisnikIDX'];
$parametri = array(
array($SysKorisnikID, SQLSRV_PARAM_IN)
);
$msqSysKorisnikSRadnaGrupa = "{call SifEZ.spSysKorisnikSRadnaGrupa (?)}";
$msqSysKorisnikSRadnaGrupaPolja = sqlsrv_query( $konekcija, $msqSysKorisnikSRadnaGrupa, $parametri);
$row = sqlsrv_fetch_array($msqSysKorisnikSRadnaGrupaPolja);
$items = array();
while($row = sqlsrv_fetch_object($msqSysKorisnikSRadnaGrupaPolja))
{
array_push($items, $row);
}
echo json_encode($items);
?>
When I exec this storage procedure SifEZ.spSysKorisnikSRadnaGrupa with param in sql I recive all data but there is no first row in subgrid.


NOTE: I double check php, java, params, storageprocedure and others, but only and always missing first row in subgrid but not in sql management studio.
If I have one result with params in sql, in subgrid there is no results.
Any idea?