CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Create IWCGJQCheckBoxList item with code

by ariopax » 06 Oct 2015 09:55

Hi
I use this code for create IWCGJQCheckBoxList items .
Code: Select all
  for I := 1 to ADOQuery1.RecordCount-1 do
  begin
    with IWCGJQCheckBoxList1.Items.Add do
    begin
      Value:= ADOQuery1.Fields[0].AsString;
      Caption:= ADOQuery1.Fields[1].AsString;
    end;
  end;


On onclick event Button.But IWCGJQCheckBoxList don't show anything.What must be I set?

Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Alexander Bulei » 06 Oct 2015 09:58

Hello,

On onclick event Button


You need call AjaxReRender function, also, you can find a lot of useful information about this function in our forum.

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

by ariopax » 06 Oct 2015 10:48

Hi

I use IWCGJQCheckBoxList1.AjaxReRender(); and solved!

Tank you. :D


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran


Return to JQCheckBoxList

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.