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

Binding of Data from Data table(asp.net data control) with grid

13 Answers 531 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chirag
Top achievements
Rank 1
Chirag asked on 28 Nov 2011, 01:05 PM
I am trying to bind data from asp.net data control(data table) to Kendo UI Grid.
but i don't know how to bind data in grid using datasource
& what should i give input parameter to datasource method of Kendo UI Grid.

Does we have any other way to bind data other than JSON ?

Please explain me with example.
 

13 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Nov 2011, 11:13 AM
Hello Chirag,

 Could you please clarify what are you trying to achieve? What do you mean by "data control (data table)"? 

 The Kendo UI grid can be bound to a datasource or to extend an existing <table> element. If bound to a datasource it can get the data from a JavaScript array or from a remote service which returns JSON or XML.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chirag
Top achievements
Rank 1
answered on 29 Nov 2011, 12:06 PM
Thanks for reply,

I’m trying to integrate ASP.Net GridView control with Kendo UI framework (Grid).
How can I integrate ASP.Net GridView Template Columns with Kendo UI framework (Grid) and also, i'm not able to implement sorting functionality into ASP.Net GridView using Kendo UI framework (Grid).

I’m not binding data into GridView using DataSource property of Kendo UI framework (Grid); I’m binding the data into ASP.Net GridView from asp.net code behind. 

In link http://demos.kendoui.com/grid/index.html  given Grid view example with code,
 but I’m not using <table id="grid"> or <div id=”grid”>.
 I’m using <asp:GridView ID="GridV" runat="server"> Asp.Net control.


Please explain with example.
0
Atanas Korchev
Telerik team
answered on 29 Nov 2011, 12:41 PM
Hi Chirag,

If you are creating the kendo grid from existing table element sorting will treat all columns as "strings". This means that sorting numbers will not work properly. We will look into implementing this in a future release.

As for templated columns the grid is currently encoding any HTML found in the existing table cells. We have fixed that and it will work as expected when released officially.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mangesh
Top achievements
Rank 1
answered on 04 Dec 2011, 01:12 PM
hi,

I am also having some doubts regarding datasource. As in ASP.NET we normally binds RadGrid(Or Any other control) from code behind. But in Kendo UI all it happens through Json/xml. Can you please provide example which is similar way to bind control through code behind functions or through web service in C#?

Kind Regards,
Mangesh
0
Chirag
Top achievements
Rank 1
answered on 05 Dec 2011, 01:03 PM
Hi Atanas,

I have attended webinar conducted by Kendo UI.

As per your below comments, problem of column sorting with asp.net gridview in kendo UI grid control will be solved in future releases.
In webinar mentioned next kendo UI releases will be in Q1 2012,the above issue will solved in Q1 2012 release?
Please let us know.

Please let us know the exact release date when the above issue will solved, so we can plan accordingly to purchase kendo UI. 

Thanks.
0
Atanas Korchev
Telerik team
answered on 05 Dec 2011, 01:17 PM
Hi Chirag,

Yes, this issue will be resolved in the Q1 2012 release at the latest. We will probably fix it earlier. There will be a document containing all fixes/changes once we release an update.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chirag
Top achievements
Rank 1
answered on 06 Dec 2011, 07:53 AM
Hi,

I want to implement the below functionality with the use of Kendo UI Grid and Asp.Net GridView.

For an example, I have total 50 records and I want to display first time first 10 records only, but when user click on 2nd (from Paging) needs to display records 11 to 20... same go ahead till 41 to 50.

As per my assumption, Kendo UI Grid will load the all (50) records first time and then it will handle the paging and other functionality by itself ? 

Thanks.

0
Atanas Korchev
Telerik team
answered on 08 Dec 2011, 01:38 PM
Hello Chirag,

 Yes, your assumption is correct. Here is a demo showing how to enable paging for a Kendo grid which is created from a HTML table:


Kind regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chirag
Top achievements
Rank 1
answered on 09 Dec 2011, 07:07 AM
Hi Atanas,

Thanks for your reply,

I have tried to use kendo UI control in  Microsoft .Net framework 3.5 and 4.0, In framework 3.5 it's working fine but with framework 4.0 it's not working.

Can you please tell me does Kendo UI supports Microsoft .Net framework 4.0 and Microsoft visual studio 2010 with it’s all controls?

Thanks in advance.
0
Atanas Korchev
Telerik team
answered on 09 Dec 2011, 09:33 AM
Hello Chirag,

 Kendo UI is an HTML5 framework and does *not* have any .NET or Visual Studio dependency. This means that it would work with any .NET version. Perhaps you have not configured properly Kendo UI. It is hard to tell why because you have not provided any details.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Raveendra
Top achievements
Rank 1
answered on 18 Jan 2012, 04:39 PM
Hi,

            Can u provide sample for dropdown binding from database.

Regards
Raveendra
0
Ravideep
Top achievements
Rank 1
answered on 21 Mar 2013, 01:36 PM
Hi All,

I want to access data from datatable and display it in to Kendo UI grid using server side code. Is any way to solve this problem. if yes then reply asap.




Thanks & Regards
Ravideep Bansal
0
gowtham
Top achievements
Rank 1
answered on 01 Apr 2013, 07:20 AM
Hi All,

I want to access data from datatable and display it in to Kendo UI grid using server side code. Is any way to solve this problem. if yes then reply asap.




Thanks & Regards
vinay
Tags
Data Source
Asked by
Chirag
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Chirag
Top achievements
Rank 1
Mangesh
Top achievements
Rank 1
Raveendra
Top achievements
Rank 1
Ravideep
Top achievements
Rank 1
gowtham
Top achievements
Rank 1
Share this question
or