Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Right-aligned toolbar buttons in 9.2
posted

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

Parents Reply Children
No Data