When working on large or small-scale projects on CS-CART, managing CRUD operations on the admin panel can take time.
That’s where CS-CART DATAGRID Enter – Special Solutions designed for drastically reduce development time and give faster project with minimal effort.
What is CS-Cart Datagrid?
CS-CART DATAGRID is a component of a multipurpose CRUD and can be reused specifically built for CS-CART and ADMIN panels. Moreover, This simplifies CRUD operations, making CS-CART development faster and easier.
How to save time and save money for your project?
Datagrids help save time by handling general tasks such as filtering, sorting, exports, and bulk measures. Besides that, Easy to manage and use, which makes manage faster and smoother.
In the CS-CART project, Basic tasks such as making or renewing notes can be done in a few hours, not days. As a result, This means faster shipping, lower costs, and happier clients.
The main features of Datagrid
Datagrid is built using a CS-CART core tool, so it functions smoothly and performs well. These are the features
- Pagination
- Sorting
- Filtering
- Look for
- Mass action (delete mass, renewal, etc.)
- Data Export (CSV, XML)
- Can be edited in the field
- Save the search
How developers easily develop A Crud uses datagrid
How Datagrid works
To use Datagrid in the CS-CART project, CS-CART developers only create Datagrid, View, and Route Handler files. After that, adjust the datagrid as needed, and the CRUD interface is ready
Example of Datagrid
<?php namespace DataGrid; use Tygh\Addons\Wkdatagrid\DataGrid\src\DataGrid; class EmployeeDataGrid extends DataGrid { public function prepareQueryBuilder() { // sql queries } public function prepareColumns(): void { $this->addColumn([ 'index' => 'e.name', //table column name 'label' => __('name'), 'type' => 'string', //Boolean, Date, Integer, Text, Datetime 'sortable' => true, 'searchable' => true, 'filterable' => true, 'closure' => function($row) { return ($row->status) ? 'Active' : 'Disabled'; } //customization to the value. ]); } public function prepareActions() { $this->addAction([ 'icon' => 'ty-icon-delete', 'title' => __('delete'), 'class' => 'cm-ajax cm-confirm', 'method' => 'POST', 'type' => 'delete', 'url' => function ($row) { return fn_url("wk_erp_saved.delete?id=$row->id", 'A'); }, ]); } }
The route hand over
<?php namespace EmployeeController; use Tygh\Tygh; use Tygh\Registry; use DataGrid\EmployeeDataGrid; require_once(Registry::get('config.dir.addons') . 'wk_datagrid/src/DataGrid/src/Http/helpers.php'); class Employee extends BaseController { public function __construct($mode) { parent::__construct($mode); $this->setRunMode(['m_delete', 'm_update', 'update', 'delete', 'manage']); if (in_array($this->mode, $this->runMode)) { $this->$mode(); } } public function manage() { list($lists, $search) = fn_datagrid(EmployeeDataGrid::class)->process(); Tygh::$app['view']->assign('lists', $lists); Tygh::$app['view']->assign('search', $search); } }
Datagrid rendering
{include file="addons/wk_datagrid/data-grid.tpl" search_form_dispatch="emp.manage" saved_search_name="emp" export=true is_editable="emp.m_update" page_title=__('emp.erp_templates') search_form_prefix="emp" content_id="content_emp" name="emp" search_label="Search Templates" data=$lists hook="emp" column_width=[10,10,25,30,10] }
Why use Datagrid?
- Fast settings: No need to handle sorting, pagination, exporting data manually, or filtering logic.
- Reused architecture: Determine columns, filters, actions, and questions in clean and organized structures.
- Fully expanded: Easily integrated with add-on or special admin modules.
- Performance oriented: Built to handle large data sets efficiently using optimized SQL.
- Clean UI Integration: The grids are given using the original smarty template or can be adjusted.
Support:
Still have a question, don’t hesitate to ask by making a ticket
In addition, you can explore our CS-CART development services and quality CS-CART add-ons.
The current product version – 1.0
Game Center
Game News
Review Film
Rumus Matematika
Anime Batch
Berita Terkini
Berita Terkini
Berita Terkini
Berita Terkini
review anime