Hi,
I'm in the process of upgrading one of our web projects from 7.1 to 9.2... I'm having various issues, but one of them I'm having real difficulty with.
We use the infragistics web toolbar component on the majority of pages on our web app. Previously, if we wanted one or more toolbar buttons to be right-aligned we would add a blank TBCustom object, populated with a blank Label object. This worked perfectly, but the behaviour seems to have changed between versions.
Looking at the HTML and source, if tb.Width != Unit.Empty, then an additional element <col style="width:auto;"/> is added inside the end of the <colgroup> at the end of the existing columns required. This means that our button is no longer right-aligned and instead, sits in the middle of the toolbar. I have changed the code such that the with now equals Unit.Empty - this removes the <col> element, but the same width logic is used to emit "table-layout: fixed". This is required in order for the element to right align.
So... without writing some JS to remove the <col> or add "table-layout:fixed" - there appears to be no way of getting this functionality back.
Does anyone have any ideas? I haven't yet submitted this to dev support, but will if I can't get it fixed soon!
Thanks
Simon
Simon,
Can you please try setting the Width = Unit.Empty (as you have done), and then adding a CSS style rule to your page or (better yet) CSS stylesheet that will apply table-layout: fixed on the wayward <table>?
<style type='text/css'> div#UltraWebToolbar1 table { table-layout: fixed !important; }</style>
HTH,
Hi Derek,
I ended up doing exactly this eventually which did indeed resolve the issue... however it would be good if this could be addressed within the standard Infragistics product, as to me it would seem to be a bug... or at the very least an undocumented breaking change - is there a process for submitting this as a bug?
Hi Simon,
I've looked at why this source code was changed. The code change was made to version 8.1 and later, and was needed to fix a broader issue related to default button widths. I'm sorry that your use case wasn't anticipated in its regression testing. You can submit a support case with Developer Support to have a developer investigate if there might be an alternative fix to the original issue that also satisfies your use case.
https://es.infragistics.com/my-account/submit-support-request/
If you could please cite this forum thread and "TFS 10229" in your support case with Developer Support as being the breaking change, that should help expedite your investigation.
Thank you,