This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Search function in report


  1. azimd
    Member

    Hello.

    Is there any way to have search function in report ("Entries Grid" widget type)?

    Posted 9 years ago #
  2. redityo

    Hi,

    You can activate column filter function on report Grid.
    To do this, edit, includes/report-functions.php file and go to around line 1016, you will see these code

    $("#mf_grid").kendoGrid({
    		dataSource: dataSource,
    		height: {$chart_height},
    		groupable: {$groupable_status},
    		sortable: true,
    		reorderable: true,
    		columnMenu: true,
    		resizable: true,
    		pageable: {
    			refresh: false,
    			pageSizes: [{$chart_grid_page_sizes}],
    			buttonCount: 5
    		},
    		columns: {$column_data_json}
    	});

    then you can change the code to be like this

    $("#mf_grid").kendoGrid({
    		dataSource: dataSource,
    		height: {$chart_height},
    		groupable: {$groupable_status},
    		sortable: true,
    		reorderable: true,
    		columnMenu: true,
    		resizable: true,
    		ServerFiltering: true,
    		pageable: {
    			refresh: false,
    			pageSizes: [{$chart_grid_page_sizes}],
    			buttonCount: 5
    		},
    		filterable: {
    			mode: "row"
    		},
    		columns: {$column_data_json}
    	});

    MachForm Support

    Posted 9 years ago #
  3. azimd
    Member

    Great! Thank you very much redityo.

    Posted 9 years ago #
  4. azimd
    Member

    I think it might be useful to enable this function by default.

    Posted 9 years ago #

RSS feed for this topic

Reply