Add Input Parameter

2 posts, 0 answers
  1. Antonella
    Antonella avatar
    1 posts
    Member since:
    Mar 2017

    Posted 22 Mar Link to this post

    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

     

     

  2. Stefan
    Admin
    Stefan avatar
    1147 posts

    Posted 24 Mar Link to this post

    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 visualization (charts) and form elements.
Back to Top