function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sachin Bhalerao 17Sachin Bhalerao 17 

Output of lightning datatable not in correct format?

Dear Team,

Greetings !!!

I am using inline editing using lightning datatable , everything is working fine but output is appearing in disturb format . Kindly have a look on attached image . Plz suggest me some solution.

Thanks & Regards
Sachin Bhalerao


Data Table incorrect outpur
Best Answer chosen by Sachin Bhalerao 17
Khan AnasKhan Anas (Salesforce Developers) 
I’m glad I was able to help!

Kindly mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue. *(After you choose the best answer the question is marked as “resolved”)*

Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Sachin,

Greetings to you!

You need to extend force:slds in the application. The Salesforce Lightning Design System provides a look and feel that’s consistent with Lightning Experience. Your application automatically gets Lightning Design System styles and design tokens if it extends force:slds. 

To extend force:slds:
<aura:application extends="force:slds">
&nbsp; &nbsp; <c:Your_Component_Name />
</aura:application>

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Sachin Bhalerao 17Sachin Bhalerao 17
Thank you Anas now it is working fine .

 
Khan AnasKhan Anas (Salesforce Developers) 
I’m glad I was able to help!

Kindly mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue. *(After you choose the best answer the question is marked as “resolved”)*

Regards,
Khan Anas
This was selected as the best answer