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 ArticleTimepicker 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 Articleset_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 Articleset_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 ArticleComplete 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 ArticleSimple 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 ArticleChange 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 ArticleBootstrap 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 ArticleCELL 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 Articleenable_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 Articleset_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 ArticleJSON 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 ArticleTimepicker 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 ArticleJSON 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 ArticleMy 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 ArticleCharacter 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 ArticleMySQL 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 ArticleAJAX 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 ArticleData 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 ArticleJSON 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