How to change div id such as (grid1, grid2) dynamically by Kendo UI PHP Wrappers

4 posts, 1 answers
  1. Mehedi
    Mehedi avatar
    3 posts
    Member since:
    Oct 2014

    Posted 24 Oct 2014 Link to this post

    Hello,

    I want to add multiple grid in same page using tabstrip. its worked but when i add multiple grid, because of same div id ("grid") its not working now. is there any option to change div id in PHP Wrappers. Or any other ways to load multiple grid using tabstrip ajax loading option. Please inform me as early as possible. 

    Thank you
  2. Answer
    Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 28 Oct 2014 Link to this post

    Hi Mehedi,

    The described issue represents a general web development task, which is not related to Kendo UI. Imagine that you have the same problem with simple <input> elements with the same ID. How would you resolve it?

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. UI for ASP.NET AJAX banner
  4. Mehedi
    Mehedi avatar
    3 posts
    Member since:
    Oct 2014

    Posted 14 Nov 2014 Link to this post

    Thank Dimo (Admin) for your replay.

    Its really simple. just change
    new \Kendo\UI\Grid('grid'); 
     grid whatever you want like
    new \Kendo\UI\Grid('grid1');
    new \Kendo\UI\Grid('grid2');
    new \Kendo\UI\Grid('another');

    And kendo UI is super great UI ever and its really makes programmer life so easy. Thank telerik.

    N.B: A lot new feature isn't included in Kendo UI PHP wrappers. it will be so better for php programmer if terelik consider to update PHP Wrappers with all latest feature such (Work offline, Filter now etc).


  5. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 17 Nov 2014 Link to this post

    Hello Mehedi,

    Both the features, which you mentioned, are supported by the PHP wrapper of the Grid.

    http://demos.telerik.com/php-ui/grid/filter-row

    For offline support, set the offlineStorage property of the DataSource.

    $dataSource = new \Kendo\Data\DataSource();
    $dataSource->offlineStorage('foo');

    More information is available at:

    http://docs.telerik.com/kendo-ui/framework/datasource/offline

    Regards,
    Dimo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
UI for ASP.NET AJAX banner