CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

CheckBoxes styling lost

by magosk » 07 May 2015 10:41

Hi!

I discovered a bug in 2.5.0.48 (it worked in 2.5.0.8): if you uncheck the items of a TIWCGJQMCheckButtons in an ajax event handler, they loose their JQM styling. I have not made a full investigation if this relates just to unchecking, or to changing the value etc.

Code: Select all
procedure TMyMobileDialog.FooterIWCGJQMPageFooterToolbarItems1JQMButtonOptionsEventsVClick(
  Sender: TObject; AParams: TStringList);
var
  i: Integer;
begin
  MyCheckButtons.CheckButtons.BeginUpdate;
  for i := 0 to MyCheckButtons.CheckButtons.Count - 1 do
    MyCheckButtons.CheckButtons[i].Checked := False;
  MyCheckButtons.CheckButtons.EndUpdate;
  MyCheckButtons.AjaxReRender;
end;


Best regards

Magnus Oskarsson
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41

by Alexander Bulei » 07 May 2015 14:33

Hi magosk,

Since the property Item.Checked already supports the async change, you don't need call the AjaxReRender.

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 magosk » 07 May 2015 15:08

Hi Alexander and thanks for your quick response! I removed the AjaxReRender call and the visual bug the disappears. When you dynamically delete and add items, should you still use AjaxReRender then?

Best regards

Magnus Oskarsson
magosk
 
Posts: 181
Joined: 07 Oct 2013 08:41


Return to JQMCheckButtons

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.