<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
script
type
=
"text/javascript"
charset
=
"utf-8"
src
=
"jquery.min.js"
></
script
>
<
script
type
=
"text/javascript"
charset
=
"utf-8"
src
=
"kendo.mobile.min.js"
></
script
>
<
link
href
=
"kendo.mobile.all.min.css"
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
div
data-role
=
"view"
id
=
"settings"
data-layout
=
"commonLayout"
>
Login
</
div
>
<
div
data-role
=
"view"
id
=
"favorites"
data-layout
=
"commonLayout"
data-init
=
"favoritesPageInit"
>
Featured
</
div
>
<
div
data-role
=
"layout"
data-id
=
"commonLayout"
>
<
footer
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
>
<
a
href
=
"#favorites"
data-icon
=
"favorites"
>Favorites</
a
>
<
a
href
=
"#settings"
data-icon
=
"settings"
>Setting</
a
>
</
div
>
</
footer
>
</
div
>
<
script
type
=
"text/javascript"
charset
=
"utf-8"
>
var app = new kendo.mobile.Application($(document.body), { initial: "settings" });
function favoritesPageInit(e){
app.navigate("#settings");
}
</
script
>
</
body
>
</
html
>
var
dataSource =
new
kendo.data.DataSource({
xpto =
"3"
, <---
transport: {
read: {
// the remote service url
// JSONP is required for cross-domain AJAX
dataType:
"jsonp"
,
// additional parameters sent to the remote service
data: {
q:
"html5"
}
}
},
// describe the result format
schema: {
// the data which the data source will be bound to is in the "results" field
data:
"results"
}
});
{"GetClientListResult":[{"Client_ContactNumber":"333333","Client_EmailId":"smith@123.com","Client_Id":3,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/3.jpg","Client_Name":"Mr. SMITH","ReplyErrorMessage":null},{"Client_ContactNumber":"444444","Client_EmailId":"williams@123.com","Client_Id":4,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/4.jpg","Client_Name":"Mr. WILLIAMS","ReplyErrorMessage":null},{"Client_ContactNumber":"555555","Client_EmailId":"rohan@123.com","Client_Id":5,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/5.jpg","Client_Name":"Mr. ROHAN","ReplyErrorMessage":null},{"Client_ContactNumber":"666666","Client_EmailId":"rishab@123.com","Client_Id":6,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/6.jpg","Client_Name":"Mr.RISHAB","ReplyErrorMessage":null},{"Client_ContactNumber":"777777","Client_EmailId":"jonathan@123.com","Client_Id":7,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/7.jpg","Client_Name":"Mr. JONATHAN","ReplyErrorMessage":null},{"Client_ContactNumber":"111111","Client_EmailId":"jeff_devis@123.com","Client_Id":1,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/1.bmp","Client_Name":"Mr. JEFF DEVIS","ReplyErrorMessage":null},{"Client_ContactNumber":"222222","Client_EmailId":"wilson@123.com","Client_Id":2,"Client_Image":"http:\/\/122.170.2.155:9092\/TR_Service\/Image\/2.jpg","Client_Name":"Mr. WILSON","ReplyErrorMessage":null}]}
<div id="container">
<select data-role="dropdownlist"></select>
</div>
<script>
kendo.init($("#contianer"));
</script>
Hi,
I am trying to implement Kendo UI Treeview control with ASP.Net TreeView control. But its not working as it should be. Please suggest me your views.
What I have done till now as per below.
(1) As per Kendo UI, Its working fine.
<ul id="treeview">
<li>Item 1
<ul>
<li>Item 1.1</li>
<li>Item 1.1</li>
<li>Item 1.1</li>
<li>Item 1.1</li>
</ul>
</li>
<li>Item 2
<ul>
<li>Item 2.1</li>
<li>Item 2.2</li>
<li>Item 2.3</li>
<li>Item 2.4</li>
<li>Item 2.5</li>
</ul>
</li>
</ul>
JQuery Code:
$("#treeview").kendoTreeView({
dragAndDrop: true
});
(2) I am trying to implement the same with ASP.Net Treeview control but it’s not working. Please check the below code.
<asp:TreeView ID="ASPTreeView" runat="server" ImageSet="BulletedList">
<Nodes>
<asp:TreeNode Text="Table of Contents"></asp:TreeNode>
<asp:TreeNode Text="Chapter One">
<asp:TreeNode Text="Section 1.0">
<asp:TreeNode Text="Topic 1.0.1" />
<asp:TreeNode Text="Topic 1.0.2" />
<asp:TreeNode Text="Topic 1.0.3" />
</asp:TreeNode>
<asp:TreeNode Text="Section 1.1">
<asp:TreeNode Text="Topic 1.1.1" />
<asp:TreeNode Text="Topic 1.1.2" />
<asp:TreeNode Text="Topic 1.1.3" />
<asp:TreeNode Text="Topic 1.1.4" />
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Chapter Two">
<asp:TreeNode Text="Section 2.0">
<asp:TreeNode Text="Topic 2.0.1">
<asp:TreeNode Text="Subtopic 1" />
<asp:TreeNode Text="Subtopic 2" />
</asp:TreeNode>
<asp:TreeNode Text="Topic 2.0.2" />
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
JQuery Code:
$("#ASPTreeView ").kendoTreeView({
dragAndDrop: true
});
Thanks.