Recreating the datatable header

Recreating the datatable header

sonofspmsonofspm Posts: 4Questions: 0Answers: 0
edited September 2012 in General
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"

Replies

  • sonofspmsonofspm Posts: 4Questions: 0Answers: 0
    I could have dig into the problem and found one interesting fact. On every time search button click, the datatable is loosing the columns from beginning. Initially the table headers are 8 and on every search button click 2 -2 columns gets deleted from header.

    I tried a lot to find the solution but yet not successful.

    -Abhishek Maitrey "Shubh"
This discussion has been closed.