)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use EJ2-Controls in PHP

Platform: JavaScript - EJ 2 |
Control: Common |
Published Date: March 14, 2019 |
Last Revised Date: March 15, 2019

Initializing EJ2 component

 

Step 1: By using CDN, refer to the required control’s script and style in the PHP file.

 

Step 2: Add the control to the application.

 

Step 3: Add the corresponding scripts to the script tag.

 

Refer to the following documentation link for getting started on EJ2 components.

https://ej2.syncfusion.com/javascript/documentation/grid/getting-started/

 

Data binding

Using the getData method, the JSON data will be fetched from the server. Find the following code snippet to bind the data source using the dataManager.

 

Refer to the following documentation link to learn more about databinding.

https://ej2.syncfusion.com/documentation/data/data-binding/

In server-side, the data from database can be retrieved by using the getData()method.

 

Sample link: A sample with EJ2 Grid in PHP can be downloaded from the following link.

http://www.syncfusion.com/downloads/support/directtrac/general/ze/Grid852314441.zip

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon