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

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

3 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mehedi
Top achievements
Rank 1
Mehedi asked on 25 Oct 2014, 04:24 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 28 Oct 2014, 06:14 PM
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!
 
0
Mehedi
Top achievements
Rank 1
answered on 14 Nov 2014, 07:04 AM
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).


0
Dimo
Telerik team
answered on 17 Nov 2014, 08:27 AM
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!
 
Tags
Grid
Asked by
Mehedi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Mehedi
Top achievements
Rank 1
Share this question
or