CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

When click on IWCGJQCheckBoxList,close after a few second

by ariopax » 07 Oct 2015 13:05

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.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by ariopax » 07 Oct 2015 15:56

Hi

This is my testcase

Best Regards.
You do not have the required permissions to view the files attached to this post.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by assapan » 07 Oct 2015 16:26

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
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by ariopax » 07 Oct 2015 16:39

Hi

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

Thank you. :D
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.