Welcome Guest, Not a member yet? Register   Sign In
Search with Pagignation
#11

(01-31-2015, 02:54 AM)code_help Wrote: Thanks Dbui for sharing this link.
Just have two question before using this awesome plugin, :
My search result is not table formatted so then is it worked? And my result will show in another page after submitted submit button.
And i have 3 join sql for search result.

Thanks again.

Hi

In order to use DataTables, it needs table id in which you can very easily make it happen, create a simple template for table and
make sure you have a table ID then it solves your problem

Refer to CI manual for html table helpers, this should help
$tmpl = array ( 'table_open' => '<table border="1" cellpadding="2" cellspacing="1" class="mytable" id="datatable">' );

$this->table->set_template($tmpl);

Regards
Reply


Messages In This Thread
Search with Pagignation - by code_help - 01-28-2015, 01:34 AM
RE: Search with Pagignation - by advoor - 01-28-2015, 02:29 AM
RE: Search with Pagignation - by code_help - 01-28-2015, 02:49 AM
RE: Search with Pagignation - by code_help - 01-29-2015, 12:10 PM
RE: Search with Pagignation - by advoor - 01-30-2015, 08:10 AM
RE: Search with Pagignation - by code_help - 01-30-2015, 08:22 AM
RE: Search with Pagignation - by advoor - 01-30-2015, 08:41 AM
RE: Search with Pagignation - by code_help - 01-30-2015, 03:33 PM
RE: Search with Pagignation - by dbui - 01-30-2015, 10:40 PM
RE: Search with Pagignation - by code_help - 01-31-2015, 02:54 AM
RE: Search with Pagignation - by dbui - 02-01-2015, 12:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB