I was trying to set right/left align to columns and set Max/Min width. But as a result only right align is working. Left working only for header. While examining the elements, I found that only the right style appeared.
Hi Eugene Alekseev,
Sorry for the inconvenience caused.
Query: Some columns style don't work (MinWidth, MaxWidth, TextAlign(TextAlign.Left))
We could reproduce the reported issue “Some columns style don't work (MinWidth, MaxWidth, TextAlign(TextAlign.Left))” and We are currently validating this at our end. So, we will update the further details on Sep 7th, 2022.
Until then we appreciate your patience.
Regards,
Anbumani Rajendracholan
Hello, any new details?
Hi Eugene,
Sorry for the late reply.
Based on your query, when you set the textAlign to left the content of the grid is not aligned properly. We have created a sample and tried to reproduce the reported issue from our side, but we were not able to reproduce the issue. Please share a issue reproducible sample or try to reproduce the issue in the sample below.
Please get back to us for further details.
Regards,
Joseph I.
Attached zip where you can see this problem. I think it can be fixed if this styles will appear as element styles like right allign
Hi Eugene,
Thanks for the information.
Currently, we are checking your query with the provided information and we will update further details on or before 21st September 2022.
Until then, we appreciate your patience.
Regards,
Nithya Sivaprakasam.
Hello, any new details?
Hi Eugene,
Sorry for the inconvenience caused.
On inspecting the provided, sample we have found that, when you are using the CSS class `text-center`, which is why you are facing the reported behaviour. We suggest you to add the style for the cells, using the queryCellInfo event of the EJ2 Grid.
Please refer the below code example.
|
function queryCellInfo(args) { if (args.column.field == 'Value') { args.cell.style.textAlign = "left" } }
|
Please get back to us for further details.
Regards,
Joseph I.
Hello, yes i can use workarounds for this problem, but it looks like a bug, when i specified column style, i expected to see element style in the result html.
Are you planning to do something about it?
Hi Eugene,
Thanks for your update.
By default in a html table, the default Text align of a td is ‘left’, hence we have not added the style attribute to the cell element, hence this cannot be considered as a bug. We also recommend you to use the not css class which will also skip the cells with the class ‘.e-rowcell’.
Please refer the below url for more details on not css class.
URl: https://developer.mozilla.org/en-US/docs/Web/CSS/:not
Please get back to us for further details.
Regards,
Joseph I.
Hello, by you answer looks like
TextAlign(TextAlign.Left) not working, this is strange.
I can set
TextAlign(TextAlign.Left), but that doesn't affect anything, right?
Hi Eugene,
Thanks for your update.
We have confirmed the reported scenario as a bug our side and logged a defect report for the same as “Need to add proper style to cell element when text align is set to Left”. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and will include the defect fix in our patch release scheduled to be rolled out on 26th October, 2022. We appreciate your patience until then.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the below link
Regards,
Joseph I.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
We are glad to announce that our Essential Studio 2022 Volume 3 SP Release V20.3.0.56 is rolled out and is available for download under the following link.
In that release, we have added
the fix of “Need to add proper style to cell element when text align is set
to Left” issue. So, please update your Syncfusion packages to the current
version to get this.
Release Notes: https://ej2.syncfusion.com/aspnetmvc/documentation/release-notes/20.3.56?type=all#grid
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.