Hello,
1 - We use this code to Expand /Collapse Raw Widget
while not qrySrv.Eof do
begin
with grdSrv, JSInterface do
begin
JSCall('getPlugin().toggleRow',[qrySrv.RecNo-1, JSStatement(JSName+'.getStore().data.items['+IntToStr(qrySrv.RecNo-1)+']')])
end;
qrySrv.Next;
end;
But this code will Expand a collapsed row and Collapse expanded row !!!
How I can Expand all rows / Collapse all rows , I mean how I can check the if the row is Expanded/Collapsed
Like
while not qrySrv.Eof do
begin
with grdSrv, JSInterface do
begin
if (RowIsExpand and OpIsCollapse***) or (RowIsCollapse and OpIsExpand***) then
JSCall('getPlugin().toggleRow',[qrySrv.RecNo-1, JSStatement(JSName+'.getStore().data.items['+IntToStr(qrySrv.RecNo-1)+']')])
end;
qrySrv.Next;
end;
TAHNX