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

Read a grid using Jquery

1 Answer 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Preeti
Top achievements
Rank 1
Preeti asked on 22 Jul 2014, 08:37 AM
Hello Team,

I have a grid with name like RoleDetailsGrid_#=NumberedId# .Now using jquery I want to read the data data of this grid.
I am doing like this.

                    var inum;
                    inum=0;

                    var gridname = "RoleDetailsGrid_" + inum.toString();
                    $(gridname).data('kendoGrid').dataSource.read();

But it is not working.Cab you please look into this issue and let me know the best possible solution.

Urgently required.

Thanks in Advance.

Preeti Singh

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 23 Jul 2014, 02:12 PM
Hi Preeti,


If you would like to access the Grid wrapper by id, you should also include the # symbol in the jQuery selector.
E.g.
$("#" + gridname).data('kendoGrid')

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Preeti
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or