Salesforce Implementation
Salesforce Implementation
jamessteelforth
Posts: 17Questions: 4Answers: 0
Now i have successfully implemented Datatables on my VF page(Hurraay!! DT rocks!!) . But i am faced with a slight problem. The table initialisation says - document('tableID').ready i.e apply datatables' features to the HTMl table whenever page is loaded. But in salesforce we have a very neat option of re-rendering just a part of a page negating the need to reload the page in every scenario. My issue is whenever i simply re-render the table instead of re-loading the page, my table features/jquery ui goes for a toss and all that remains behind is lame HTML table. How can i overcome this? I want datatable features to be applied even when i simply re-render the table and dont re-load the whole page
This discussion has been closed.
Replies
Allan
For those who are from SF background - I have my apex function call in the "action" attribute of the . This is resposible for calling the apex fucntion and getting the result set for my page to display. In addition to this i am calling a javascript function in the "oncomplete" attribute of the . The javascript fn has the code to intialise datatables.
Oncomplete means that the javascript fn will be called only after completion of the action function. i.e. the datatable features will be applied only after the resultset is procured, which is the exact sequence we want.