CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Panel order in ResponsiveList

by c.schwoerer » 23 Sep 2020 16:21

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.
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09

by c.schwoerer » 25 Sep 2020 08:43

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..
c.schwoerer
 
Posts: 18
Joined: 25 Jan 2018 11:09


Return to General

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.