This is a migrated thread and some comments may be shown as answers.

Add Input Parameter

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antonella
Top achievements
Rank 1
Antonella asked on 22 Mar 2017, 09:26 AM

Hello,

i have many iusse with to add parameters to a gris that read from json file

<?php

require_once 'lib/DataSourceResult.php';
require_once 'lib/Kendo/Autoload.php';

$transport = new \Kendo\Data\DataSourceTransport();

$read = new \Kendo\Data\DataSourceTransportRead();

// Specify the url of the PHP page which will act as the remote service
$read->url('data\products.php')
     ->type('POST');

$transport->read($read);

// Configure the model
$model = new \Kendo\Data\DataSourceSchemaModel();

$productNameField = new \Kendo\Data\DataSourceSchemaModelField('SPECIFIC_NAME');
$productNameField->type('string');

..

?>

i wanto to add to file product.php ($read->url('data\products.php') ) a parameter that return from a function

 

can oyu help me?

 

thanks you so much

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Mar 2017, 07:08 AM
Hello Antonella,

In this scenario, I can suggest checking the following article from our documentation:

http://docs.telerik.com/kendo-ui/php/widgets/grid/remote-binding#bind-to-pdo-returned-arrays

Also, the following forum thread may prove useful in this scenario:

http://www.telerik.com/forums/binding-json-data-fetched-from-php-file-to-a-grid

Additionally, all of the demos available on our demo page can be examine in the offline examples:

http://demos.telerik.com/php-ui/grid/index

http://docs.telerik.com/kendo-ui/php/introduction#sample-application-setup

I hope this will help to achieve the desired result.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Grid
Asked by
Antonella
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or