CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Where must be change in JQueryDemoV2?

by ariopax » 23 Jul 2015 09:23

Hi

If I want change SubHeader to TRUE for items that is shown (new) in IWCGPanelList , Where must be change in JQueryDemoV2 ?

I change BuildComponentsMenu procedure and they are show by SubHeader,But after I clicking on it SubHeader don't show .


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

by Alexander Bulei » 23 Jul 2015 09:37

Hi ariopax,

What do you mean?
Why are you need change our demo?
I suggest you to create simple testcase project, and try in that project.

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 » 23 Jul 2015 10:04

I create a testcase,and in it use your demo code and procedures,I explain my problem by your demo because you see it,and when solve it , i use in my testcase,and other people can use it.

Please tell me the solution.

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

by Alexander Bulei » 23 Jul 2015 10:26

Hi ariopax,

I don't understand your problem.
Our demo have some calls of ResetProps (just for demo).

If you try in new testcase project, you can check that behavior.

Btw, please provide me your client id? We need update some detail info here(cgforum).

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 » 23 Jul 2015 10:36

Hi

What you need for answer my question?
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Alexander Bulei » 23 Jul 2015 10:46

Hi ariopax,

What you need for answer my question?


testcase and your client ID ;)

T.I.A

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 » 23 Jul 2015 11:12

Hi

This is my testcase.And i dont see any client ID ,Because I use trail version.(I want write a project for my Object Oriented course !)


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 Alexander Bulei » 27 Jul 2015 17:12

Hi ariopax,

As I said, we use ResetProps function in our demo project.

This function will reset all properties to default, so you need change to something like this:

delphi code
procedure TIWForm1.CGPanelItemClick(Sender: TObject; AParams: TStringList);
var
PanelListItem: TIWCGPanelListItem;
IsSubHeader: boolean; //CGDEVTOOLS 27-07-2015
begin

PanelListItem:= Sender as TIWCGPanelListItem;

if Assigned(FPrevPanelItem) then // REMOVE ICON FROM LAST ITEM
begin
IsSubHeader:= FPrevPanelItem.SubHeader; //CGDEVTOOLS 27-07-2015
FPrevPanelItem.ResetProps;
FPrevPanelItem.SubHeader:= IsSubHeader; //CGDEVTOOLS 27-07-2015
FPrevPanelItem.UpdateHTML;
end;

PanelListItem.PictureOptions.Icon:= 'ui-icon-triangle-1-e';
PanelListItem.PictureOptions.Align:= cgplpaRight;
PanelListItem.ItemCss:= DefItemCss + ' cgdev-left-menu-li-clicked';
PanelListItem.UpdateHTML;
FPrevPanelItem:= PanelListItem;

ShowFrame(PanelListItem,nil);
end;
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 » 27 Jul 2015 20:36

Hi

Thank you,I test it in my testcase,and my problem solved.

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


Return to CGPanelList

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.