Page 1 of 1

When click on IWCGJQCheckBoxList,close after a few second

PostPosted: 07 Oct 2015 13:05
by ariopax
Hi
Image

In the above picture I use on the onbefore event this code

Code: Select all
  for I := 1 to 10 do
  begin
    with IWCGJQCheckBoxList1.Items.Add do
    begin
      Value:=  IntToStr(i);
      Caption:= IntToStr(i);
    end;
  end;
  IWCGJQCheckBoxList1.AjaxReRender();


But when click on it,close after a few second.what is problem?

Best Regards.

Re: When click on IWCGJQCheckBoxList,close after a few secon

PostPosted: 07 Oct 2015 15:56
by ariopax
Hi

This is my testcase

Best Regards.

Re: When click on IWCGJQCheckBoxList,close after a few secon

PostPosted: 07 Oct 2015 16:26
by assapan
Hi ariopax,
You are populating the checkbox when it tries to open so your call to ajaxReRender will recreate it and of course close it !

You have to move the procedure in the onCreate of your page

Re: When click on IWCGJQCheckBoxList,close after a few secon

PostPosted: 07 Oct 2015 16:39
by ariopax
Hi

I call it on oncreate of IWCGJQDialog,and solved.!

Thank you. :D