Closed riazsfclouds closed 7 years ago
you have two options to do it,
Simple option is to add a text box with search button to data table component and append search string as where clause filter to {!v.whereclause} (test your SOQL in workbench before making this change) and call helper.queryRows in controller to re-render datatable
Complex one If you want to make search box as a separate component, you need to create an event and include it datatable component for it to listen and fire your helper.queryrows again. (same as #1). refer event handling in documentation for help.
Hi Ramanathan ,
Thanks for the reply i will try it out and really it was an amazing blog.
Regards, Riaz
On Sun, Jun 11, 2017 at 8:27 PM, ramanathan notifications@github.com wrote:
you have two options to do it,
1.
Simple option is to add a text box with search button to data table component and append search string as where clause filter to {!v.whereclause} (test your SOQL in workbench before making this change) and call helper.queryRows in controller to re-render datatable 2.
Complex one If you want to make search box as a separate component, you need to create an event and include it datatable component for it to listen and fire your helper.queryrows again. (same as #1 https://github.com/ramanathansj/salesforce-lightning-datatable/issues/1). refer event handling in documentation for help.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ramanathansj/salesforce-lightning-datatable/issues/1#issuecomment-307643809, or mute the thread https://github.com/notifications/unsubscribe-auth/AbcdwnTkuY4XkjCfT1qhI6pD47ZiPCgXks5sDCNugaJpZM4Nweo- .
Thanks for the feedback and glad to hear its useful.
I was trying to create a Seach panel at top of the Page to search the Records Can you please help on this