Hi Kapil very nice video. 2 question I have. 1. Do you use any formatter extension to format the lwc code in vs studio ? 2. Reg this my concern is when we millions of record for server side sorting , where server side pagination also in place, I want to know how the sort will apply ? I mean is sorting work only at current page record list or entire record?
Hi Santanu, Please check my response below 1. I am using prettier extension in vs code. 2. In case of millions of records you will need a dynamic SOQL to fetch required limited data only on click of pagination controls.
Hi very informative session. in my case , whenever I am clicking on column , always showing asc sorting, even multiple clicks on same column, why its happening?
Lightning data table sorting arrow always shows upwards, even after click it is not changing to downwards. please let me know if you have any idea on this?
@@SalesforceBolt some code has to be changed then only the ascending and descending should work you have to change asc to desc and viceverce after calling the onsort()
@@SalesforceBolt Even I am facing the same issue here, after clicking for the 2nd time it fetches the data for asc again and the arrow remains in upward direction.
Hi Kapil, which one you suggested for scenario : i am fetching records to data table based on contact search name with cached approach Whenever search key changes the data in data table changes, based on search key the number of records may vary So which approach client or server?
I am expecting a good volume here. But still the overall solution design matters, if there is a button which needs to be clicked after the search key, a server side approach would be better. If the expected total volume is low or medium level you can query all at once and filter out the data on search key text change. It will give you a seamless user experience!
Thank you so much for a very useful video
Glad it was helpful!
Hi Kapil very nice video. 2 question I have.
1. Do you use any formatter extension to format the lwc code in vs studio ?
2. Reg this my concern is when we millions of record for server side sorting , where server side pagination also in place, I want to know how the sort will apply ? I mean is sorting work only at current page record list or entire record?
Hi Santanu,
Please check my response below
1. I am using prettier extension in vs code.
2. In case of millions of records you will need a dynamic SOQL to fetch required limited data only on click of pagination controls.
Hi very informative session. in my case , whenever I am clicking on column , always showing asc sorting, even multiple clicks on same column, why its happening?
Nice
Thanks :)
Thanks for the video, I have a question that How can we achieve sorting in custom table in lwc?
Ah got it, I will share the tutorial shortly!
Lightning data table sorting arrow always shows upwards, even after click it is not changing to downwards. please let me know if you have any idea on this?
Hi Jyothi, what is happening when you are clicking on it for the 2nd time?
@@SalesforceBolt some code has to be changed then only the ascending and descending should work you have to change asc to desc and viceverce after calling the onsort()
@@SalesforceBolt Even I am facing the same issue here, after clicking for the 2nd time it fetches the data for asc again and the arrow remains in upward direction.
I got same problem
Hi Kapil, which one you suggested for scenario : i am fetching records to data table based on contact search name with cached approach
Whenever search key changes the data in data table changes, based on search key the number of records may vary
So which approach client or server?
I am expecting a good volume here. But still the overall solution design matters, if there is a button which needs to be clicked after the search key, a server side approach would be better.
If the expected total volume is low or medium level you can query all at once and filter out the data on search key text change. It will give you a seamless user experience!
Please upload more on LWC
Sure, I am on it :)
I want to control sorting on whole data not page by page? How I can do it?
On client side or server side?