"fnSetColumnVis" method is not working with the server side proccessing of datatable
"fnSetColumnVis" method is not working with the server side proccessing of datatable
Vineeth
Posts: 11Questions: 3Answers: 0
Hi,
I had generated grid with datatable server side processing enabled.When i use this method "fnSetColumnVis" to hide some columns after the datatable is generated it making a post to ajax request.Is there any other way to acheive the functionality,
please let me know
This discussion has been closed.
Answers
Per the forum rules, please link to a test case showing the issue.
Allan
Hi,
while executing this oTable.fnSetColumnVis(iCol, false); it is again posting the ajax url "Home/GetDatat".how i can i acheive the hide functionality on the above scenario?
Thanks,
Vineeth
Use the new API -
column().visible()
rather than the legacy API to achieve what you want.Allan
hi allan,
I had downloaded the latest datatable js (1.10.7) and then used as you guided,
but it is throwing error as follows,
TypeError: oTable.column is not a function
See the second top FAQ.
Allan
hi allan,
i had checked with the minium and full version of the latest datable.js
But still i am not able to call this method.Error as follows,
"TypeError: oTable.column is not a function
Initalization part as follows,
I'd suggest reading that FAQ again :-)
Change:
To:
Note the capital
D
.Allan
Hi allan,
Thats worked now i am able to use this new api method.Thanks :)