Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Individual column search-exclude columns
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Individual column search-exclude columns
#40423
Individual column search-exclude columns 11 Years, 2 Months ago Karma: 0
Hi,
I'm using ARI Data Tables which is a great extension, but I needed individual column search so I implemented ColumnFilterWidgets (following instructions I found in one of the previous topics on this forum - thank you!).
Everything works fine, but I have a lot of columns (meaning two rows of search boxes now) so I would like to keep only the most important and exclude the others. I looked for the code to activate this feature, but I could find only the initialisation code for HTML pages, and I'm not professional so I don't know how to modify ARI Tables or Joomla scripts for that purpose. If you could help me with this, I would really appreciate it very much.
The code they give is
Code:

$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'W<"clear">lfrtip',
"oColumnFilterWidgets": {
"aiExclude": [ 1 ]
}
} );
} );



Thanks, branka
The administrator has disabled public write access.
 
#40452
Re:Individual column search-exclude columns 11 Years, 2 Months ago Karma: 748
Hello,

You can add necessary code in <joomla_directory>\modules\mod_aridatatables\includes\kernel\DataTables\Models\class.DataTablesWidgetDatatableModel.php file. See "initClientInstance" method.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#40483
Re:Individual column search-exclude columns 11 Years, 2 Months ago Karma: 0
Thank you, I've tried to put the code in different ways in initClientInstance method (I suppose it should go somewhere in $dtCode?) but I'm getting either errors or no change at all.
I'm afraid I need more help, so could you please write how exactly should my code look like because now I'm stuck.

Thank you very much, branka
The administrator has disabled public write access.
 
#40548
Re:Individual column search-exclude columns 11 Years, 2 Months ago Karma: 748
Use the following code:

Code:


'if (typeof(AriDataTables) != "undefined") AriDataTables.hideLoadingPane("#%1$s_wrapper");var options = %2$s;options["fnDrawCallback"] = function(oSettings) { adt_DataTable_DrawCallback(oSettings) };options["oColumnFilterWidgets"] = {"aiExclude": [1]};$("#%1$s").addClass("display dataTable").dataTable(options);'



instead of:

Code:


'if (typeof(AriDataTables) != "undefined") AriDataTables.hideLoadingPane("#%1$s_wrapper");var options = %2$s;options["fnDrawCallback"] = function(oSettings) { adt_DataTable_DrawCallback(oSettings) };$("#%1$s").addClass("display dataTable").dataTable(options);'



Regards,
ARI Soft
The administrator has disabled public write access.
 
#40562
Re:Individual column search-exclude columns 11 Years, 2 Months ago Karma: 0
It works now, just what I needed!

Thank you so much, I really appreciate your help. Going to put my five stars for you on Joomla extensions site right now!

Thanks once more and regards, branka
The administrator has disabled public write access.
 
Go to topPage: 1