or
listView = $(options.listview).kendoListView({
editable: true,
dataSource: dataSource,
template: kendo.template($(options.template).html()),
editTemplate: kendo.template($(options.edittemplate).html())
}).delegate(".k-delete", "click", function (e) {
listView.remove($(this).closest(".listViewItem"));
e.preventDefault();
}).data("kendoListView");
<
li
>
@Html.LabelFor(m => m.Country)
@(Html.Kendo().DropDownListFor(m => m.Country)
.DataTextField("Name")
.DataValueField("CountryID")
.DataSource(source =>
{
source.Read(read =>
{
read.Url("/WebUI/API/Countries/");
});
})
.Events(e => e.Change("CountryChange"))
)
</
li
>
<
li
>
@Html.LabelFor(m => m.City)
@(Html.Kendo().DropDownListFor(m => m.City)
.DataTextField("Name")
.DataValueField("CityID")
.DataSource(source =>
{
source.Read(read =>
{
read.Url("/WebUI/API/Cities");
});
})
)
</
li
>
<
script
type
=
"text/javascript"
>
function CountryChange() {
$("#City").data("kendoDropDownList").dataSource = new kendo.data.DataSource({
transport: {
read: {
url:"/WebUI/API/Countries/3/Cities"}},
schema: {
data:"",
total:"",
errors:"Errors"}}
);
$("#City").data("kendoDropDownList").dataSource.read();
$("#City").data("kendoDropDownList").refresh();
alert($("#City").data("kendoDropDownList").dataSource.total());
}
</
script
>
Me
.uiWebBrowser.Navigate(url,
"_blank"
, Encoding.
Default
.GetBytes(postString),
"Content-Type: application/x-www-form-urlencoded"
)