Recreating the datatable header
Recreating the datatable header
Hi Group,
I'm using DataTables version 1.5.4. There is a problem in populating the datatable on a "Search" button click. The actual scenario is as follows:
There are some search criteria controls on my web page and "Search" is an action button which is html button control. On click to "Search" button, I'm calling a "ExcecuteSearch()" javascript method. This method is populating the datatable. There is no problem in populating the datatable for first time but as I click second time on Search button irrespective to giving search criteria or not, it throws me an error 'parentNode' is null or not an object and redraw the additional header.
I even tried dt.fnDesstroy() but have not helped me. Could anyone has solution of this problem?
P.S: I think this problem is occurring because of populating the datatable by clicking the button control. Hope someone would help.
Thanks in advance
-Abhishek Maitrey "Shubh"
I'm using DataTables version 1.5.4. There is a problem in populating the datatable on a "Search" button click. The actual scenario is as follows:
There are some search criteria controls on my web page and "Search" is an action button which is html button control. On click to "Search" button, I'm calling a "ExcecuteSearch()" javascript method. This method is populating the datatable. There is no problem in populating the datatable for first time but as I click second time on Search button irrespective to giving search criteria or not, it throws me an error 'parentNode' is null or not an object and redraw the additional header.
I even tried dt.fnDesstroy() but have not helped me. Could anyone has solution of this problem?
P.S: I think this problem is occurring because of populating the datatable by clicking the button control. Hope someone would help.
Thanks in advance
-Abhishek Maitrey "Shubh"
This discussion has been closed.
Replies
I tried a lot to find the solution but yet not successful.
-Abhishek Maitrey "Shubh"