Page 1 of 1

Dynamically change Enabled on Left / Right header button

PostPosted: 20 Jul 2014 05:10
by JohnFSklavounos
Hi All,

When changing the enabled property in code, I'm not able to change the visibility of either button.

I have the following properties set
JQMPageHeader.LoadHidden := true;
JQMPageHeader.RenderInvisibleControls := true;
JQMPageHeader.StyleRenderOptions.RenderVisibility := true;
JQMPageHeader.StyleRenderOptions.UseDisplay := true;

When a value is found in the back end database, I set JQMPageHeader.JQMPageHeaderOptions.LeftButton.Enable := true but nothing happens on the screen, even when I perform .Refresh or .AjaxReRender() or .AjaxReRender(false, true);

Any ideas?

Thanks!
John

Re: Dynamically change Enabled on Left / Right header button

PostPosted: 21 Jul 2014 11:15
by Alexander Bulei
Hi JohnFSklavounos,

Property Enable - Enable/Disable button to be rendered.
Unfortunately, the header and footer components doesn't support the ajaxrerender because of jquery mobile framework,
so we have implemented the two new properties to manage the layout:

  • Display
  • Visible

Difference Display vs Visible

Will be available in next build.

Best Regards.