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
Shivendra Singh PawarShivendra Singh Pawar 

Inline editing in lightning datatable?

Dear Team,

Greetings !!!

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

After executing this is output


Thanks & Regards
Shinendra
Best Answer chosen by Shivendra Singh Pawar
Ajay K DubediAjay K Dubedi
Hi Shivendra,

You need to add extend force:slds in your application. 
 
<aura:application extends="force:slds">
    <c:Here give your Lighting Component name/>
</aura:application>
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.comtype here

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Shivendra,

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">
    <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
Ajay K DubediAjay K Dubedi
Hi Shivendra,

You need to add extend force:slds in your application. 
 
<aura:application extends="force:slds">
    <c:Here give your Lighting Component name/>
</aura:application>
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.comtype here
This was selected as the best answer