or
View
var categories = $("#cmbWidgetCat1").kendoComboBox({
dataTextField: "Display",
dataValueField: "Value",
dataSource: {
type: "json",
transport: {
read: wsPath + "/GetTabItems"
}
}
}).data("kendoComboBox");
ASMX
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)]
public WidgetComboItem[] GetTabItems()
{
return new List<
WidgetComboItem
>
{
new WidgetComboItem {Display = "System Info", Value = "1"},
new WidgetComboItem {Display = "Datasets", Value = "2"},
new WidgetComboItem {Display = "Charts", Value = "3"},
}.ToArray();
}
function
regroup() {
if
($(
"#sel"
).data(
"kendoMobileButtonGroup"
).current().index()==1) {
sttDataSource.filter( { field:
"id_wt1"
, operator:
"startswith"
, value:
"1"
});
sttDataSource.sort( { field:
"dtime"
, dir:
"asc"
});
}
else
if
($(
"#sel"
).data(
"kendoMobileButtonGroup"
).current().index()==0) {
sttDataSource.filter( { field:
"wdname"
, operator:
"startswith"
, value:
""
});
sttDataSource.sort( {field:
"dtime"
, dir:
"asc"
});
}
else
if
($(
"#sel"
).data(
"kendoMobileButtonGroup"
).current().index()==2) {
sttDataSource.filter( { field:
"id_wt2"
, operator:
"startswith"
, value:
"2"
});
sttDataSource.sort( { field:
"dtime"
, dir:
"asc"
});
}
sttDataSource.group(
"id_wd"
);
$(
"#listv"
).kendoMobileListView({
dataSource: sttDataSource,
template: $(
"#sttTemplate"
).html()
});
}
Array
(
[callback] => jQuery110007109804890166557_1369760652926
[take] => 5
[skip] => 0
[page] => 1
[pageSize] => 5
[filter] => Array
(
[filters] => Array
(
[0] => Array
(
[field] => cID
[operator] => eq
[value] => 1000
)
)
[logic] => and
)
[_] => 1369760652934
)
jQuery110007109804890166557_1369760652926({"total":0,"data":[]})
Select
cID
from
ticketing_index
WHERE
cID =
'1000'