Page 1 of 1

Panel order in ResponsiveList

PostPosted: 23 Sep 2020 16:21
by c.schwoerer
Hi guys,
the panel order starts with panel item 1. Expected is Item 0
Like 0,1,2,3...
You can see it in the jquery demo too.

In my Project I have the sam problem
My panels are create in th same way.
My order is:
1,0,2,4,3....

Is there a way to sort the panels?

I wrote this issue here in "general". There is no ResponsiveList entry under "components".
Thank you in advance.

Re: Panel order in ResponsiveList

PostPosted: 25 Sep 2020 08:43
by c.schwoerer
Hi again,
if the panels created in design mode, the panels are in order. Also after rendering.
Its issue comes up only, if the panels created at the runtime.
Code: Select all
procedure TIWForm1.IWCGJQButton2JQButtonOptionsClick(Sender: TObject;
  AParams: TStringList);
begin
  IWCGJQResponsiveList1.ClearPanels;

  With IWCGJQResponsiveList1.AddNewPanel do begin
    Color:=clRed;
    AjaxReRender;
  end;
  With IWCGJQResponsiveList1.AddNewPanel do begin
    Color:=clYellow;
    AjaxReRender;
  end;
  With IWCGJQResponsiveList1.AddNewPanel do begin
    Color:=clGreen;
    AjaxReRender;
  end;
  With IWCGJQResponsiveList1.AddNewPanel do begin
    Color:=clBlue;
    AjaxReRender;
  end;
  // [b]Until here the Item are in order. but the layout is not a grid. Its a list.[/b]


  RenderRegionAsync(IWCGJQRegion1,rramOldMethod);
  //IWCGJQRegion1.AjaxReRender;
  //IWCGJQResponsiveList1.AjaxReRender;
  // [b]After render the Items not longer in order[/b].
end;

Thanks in advance..