CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Populate items to JQSortableList at runtime

by fcoalvarado » 30 Oct 2013 07:08

delphi code
procedure TForm3.bAuthSelectJQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
alItem: TIWCGJQSelectableItem;
begin
while not ADOQuery1.Eof do
alItem := IWCGJQSortableList1.Items.Add;
alItem.Caption := ADOQuery1.FieldByName('Name').AsString;
alItem.DisplayName := ADOQuery1.FieldByName('Name').AsString;
IWCGJQSortableList1.Update;
ADOQuery1.Next;
end;
end;

is not working, what I'm doing wrong?
Best Regards
Francisco Alvarado
fcoalvarado
 
Posts: 12
Joined: 14 Aug 2013 01:57

by Alexander Bulei » 30 Oct 2013 10:18

Hi Francisco Alvarado,

You should use AjaxReRender :

delphi code
procedure TForm3.bAuthSelectJQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
alItem: TIWCGJQSelectableItem;
begin
while not ADOQuery1.Eof do
alItem := IWCGJQSortableList1.Items.Add;
alItem.Caption := ADOQuery1.FieldByName('Name').AsString;
alItem.DisplayName := ADOQuery1.FieldByName('Name').AsString;
ADOQuery1.Next;
end;
IWCGJQSortableList1.AjaxReRender; // <-
end;


Best Regards
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQTreeView

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.