Some columns style don't work (MinWidth, MaxWidth, TextAlign(TextAlign.Left))

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.








12 Replies 1 reply marked as answer

AR Anbumani Rajendracholan Syncfusion Team September 5, 2022 06:25 PM UTC

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



EA Eugene Alekseev replied to Anbumani Rajendracholan September 13, 2022 10:58 AM UTC

Hello, any new details?



JC Joseph Christ Nithin Issack Syncfusion Team September 14, 2022 07:19 PM UTC

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.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/mvc-url-adaptor-textalign-1296747036


Please get back to us for further details.


Regards,

Joseph I.



EA Eugene Alekseev September 15, 2022 12:17 PM UTC

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


Attachment: mvc_ej2_53437d30.zip


NS Nithya Sivaprakasam Syncfusion Team September 19, 2022 03:50 PM UTC

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.



EA Eugene Alekseev September 28, 2022 12:08 PM UTC

Hello, any new details?



JC Joseph Christ Nithin Issack Syncfusion Team September 29, 2022 06:08 PM UTC

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.



EA Eugene Alekseev October 4, 2022 02:36 PM UTC

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?



JC Joseph Christ Nithin Issack Syncfusion Team October 5, 2022 04:59 PM UTC

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.



EA Eugene Alekseev October 10, 2022 09:59 AM UTC

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? 



JC Joseph Christ Nithin Issack Syncfusion Team October 11, 2022 11:48 AM UTC

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


Feedback: https://www.syncfusion.com/feedback/38336/need-to-add-proper-style-to-cell-element-when-text-align-is-set-to-left


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.


Marked as answer

JC Joseph Christ Nithin Issack Syncfusion Team November 9, 2022 04:21 PM UTC

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.


https://www.syncfusion.com/forums/178709/essential-studio-2022-volume-3-service-pack-release-v20-3-0-56-is-available-for-download


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.


Loader.
Up arrow icon