Quantcast
Channel: phpGrid – PHP Datagrid
Browsing all 107 articles
Browse latest View live

Visit Hyperlink Stored in Another Field of The Same Row

This demo is based on Hyperlink to Call JavaScript Function. It triggers a JavaScript event when hyperlink is clicked. To call JavaScript function on hyperlink click, we use “showlink” in...

View Article


Image may be NSFW.
Clik here to view.

Timepicker Only Support

phpGrid now has standalone time-picker support using set_col_time() method. Only the table fields that have TIME type are applicable. For non-TIME types, it will display the regular datetime picker....

View Article


set_col_time()

Set the edit type to be time and enable the time-picker. 1$dg -> set_col_time("time_from"); It is recommended to also use the formatter function so that the time is set in the right value during...

View Article

set_col_datetime()

* Currently only supported in the Enterprise edition  The function is almost identical to set_col_date() except it also has a time picker. Parameters: $col_name: column name $srcformat: source date...

View Article

Image may be NSFW.
Clik here to view.

Complete Date Format Demo (Updated)

The example demonstrates date column formatting using functions set_col_date, set_col_datetime, set_col_property(…formatter”=>”date”,…). If you have trouble with date format, most likely you will...

View Article


Image may be NSFW.
Clik here to view.

Simple Shopping Cart Using the Action Column

In the action column, it is possible to add additional links or buttons beside the CRUD buttons with phpGrid custom JSON property “cust_prop_jsonstr” For example, you can use “cust_prop_jsonstr to...

View Article

Image may be NSFW.
Clik here to view.

Change Master Detail Grids Layout Using CSS

The default master detail grid has the top down layout. The master, the parent datagrid is always on top of the child grid. This is the default layout. Each datagrid is enclosed by a div with a unique...

View Article

Image may be NSFW.
Clik here to view.

Bootstrap Grid Layout

The datagrid can also be displayed and positioned easily in a Bootstrap Grid System layout, uses a series of containers, rows, and columns to the layout that is fully responsive....

View Article


CELL edit with add new and delete buttons

phpGrid has a less known edit feature called “CELL”. It’s similar to INLINE edit, but with only a single editable cell when selected. This is not a fully fledged feature from jqGrid itself, especially...

View Article


enable_dnd_grouping()

* Please note this feature is only available in Enterprise versions. Parameter(s): $dnd_grouping: boolean to enable/disable drag and drop grouping Description: Enable on the fly drag and drop grouping...

View Article

set_grid_style()

* Currently only supported in the commercial licenses  set_grid_style() is a helper function for simple style update for header background, foreground, its font size, and body font size. Parameters:...

View Article

Image may be NSFW.
Clik here to view.

JSON in Plain English

source: json.org JSON is an open standard, lightweight data-interchange format. It stands JavaScript Object Notation. JSON is extremely common and useful in the modern webs for read and write on a...

View Article

Image may be NSFW.
Clik here to view.

Timepicker Only Support

phpGrid now has standalone time-picker support using set_col_time() method. Only the table fields that have TIME type are applicable. For non-TIME types, it will display the regular datetime picker....

View Article


Image may be NSFW.
Clik here to view.

JSON in Plain English

JSON is an open standard, lightweight data-interchange format. It stands JavaScript Object Notation. JSON is extremely common and useful in the modern webs for read and write on a website.  Before...

View Article

Image may be NSFW.
Clik here to view.

My Favorite Browser Debug Hotkey

In today’s modern browsers such as Google Chrome, Firefox, Safari, and Microsoft Edge, there is a lesser-known trick that could 10 X increase your client-side debug skills for AKA javascript and CSS....

View Article


Image may be NSFW.
Clik here to view.

Character Encodings for Beginners

Character encoding governs how characters travel from databases to web browsers and back again. It has a long and winding history behind characters and their encoding. Byte & Character A byte has 8...

View Article

Image may be NSFW.
Clik here to view.

MySQL Character Sets & Collation

In this post, we will focus on a specific type of character set and encoding, MySQL CHARSET & COLLATION. I also recommend checking out the earlier post on character encoding for beginners. Have you...

View Article


Image may be NSFW.
Clik here to view.

AJAX Revolution (Part I)

Image Source: AJAX logo by gengns.svg Intro Ajax is NOT a programming language but a technique for accessing web servers from or send data to a web server without refreshing the page, usually via...

View Article

Image may be NSFW.
Clik here to view.

Data Source: Stored Procedure with IN Paramters

* This feature is only available with a commercial license.   phpGrid now supports stored procedure (version 7.5+). It works with stored proc without parameters; and stored proc with IN parameter(s)....

View Article

Image may be NSFW.
Clik here to view.

JSON Data Source

It’s also possible to use JSON string as a data source with one extra step: use json_decode and set the second parameter to true to return the decoded JSON string to an associative array. Once you have...

View Article
Browsing all 107 articles
Browse latest View live