<
xml_api_reply
version
=
"1"
>
<
weather
module_id
=
"0"
tab_id
=
"0"
mobile_row
=
"0"
mobile_zipped
=
"1"
row
=
"0"
section
=
"0"
>
<
forecast_information
>
<
city
data
=
"Hamilton, ON"
></
city
>
<
postal_code
data
=
"Hamilton,ON"
></
postal_code
>
<
latitude_e6
data
=
""
></
latitude_e6
>
<
longitude_e6
data
=
""
></
longitude_e6
>
<
forecast_date
data
=
"2011-11-21"
></
forecast_date
>
<
current_date_time
data
=
"2011-11-21 13:00:00 +0000"
></
current_date_time
>
<
unit_system
data
=
"US"
></
unit_system
>
</
forecast_information
>
<
current_conditions
>
<
condition
data
=
"Mostly Cloudy"
></
condition
>
<
temp_f
data
=
"30"
></
temp_f
>
<
temp_c
data
=
"-1"
></
temp_c
>
<
humidity
data
=
"Humidity: 69%"
></
humidity
>
<
icon
data
=
"/ig/images/weather/mostly_cloudy.gif"
></
icon
>
<
wind_condition
data
=
"Wind: N at 10 mph"
></
wind_condition
>
</
current_conditions
>
<
forecast_conditions
>
<
day_of_week
data
=
"Mon"
></
day_of_week
>
<
low
data
=
"28"
></
low
>
<
high
data
=
"41"
></
high
>
<
icon
data
=
"/ig/images/weather/sunny.gif"
></
icon
>
<
condition
data
=
"Clear"
></
condition
>
</
forecast_conditions
>
<
forecast_conditions
>
<
day_of_week
data
=
"Tue"
></
day_of_week
>
<
low
data
=
"37"
></
low
>
<
high
data
=
"46"
></
high
>
<
icon
data
=
"/ig/images/weather/chance_of_rain.gif"
></
icon
>
<
condition
data
=
"Chance of Rain"
></
condition
>
</
forecast_conditions
>
<
forecast_conditions
>
<
day_of_week
data
=
"Wed"
></
day_of_week
>
<
low
data
=
"32"
></
low
>
<
high
data
=
"50"
></
high
>
<
icon
data
=
"/ig/images/weather/mostly_sunny.gif"
></
icon
>
<
condition
data
=
"Mostly Sunny"
></
condition
>
</
forecast_conditions
>
<
forecast_conditions
>
<
day_of_week
data
=
"Thu"
></
day_of_week
>
<
low
data
=
"43"
></
low
>
<
high
data
=
"50"
></
high
>
<
icon
data
=
"/ig/images/weather/sunny.gif"
></
icon
>
<
condition
data
=
"Clear"
></
condition
>
</
forecast_conditions
>
</
weather
>
</
xml_api_reply
>
schema: {
// specify the the schema is XML
type:
"xml"
,
// the XML element which represents a single data record
data:
"/xml_api_reply/weather/forecast_conditions"
,
// define the model - the object which will represent a single data record
model: {
fields: {
day_of_week:
"day_of_week@data"
,
high:
"low@data"
,
low:
"high@data"
,
icon:
"icon@data"
,
condition:
"condition@data"
}
}
},
<
ul
id
=
"weather-container"
>
</
ul
>
<
script
id
=
"dashwidget-weather-template"
type
=
"text/x-kendo-template"
>
<
li
>
<
div
>#= day_of_week #</
div
>
<
div
>#= condition #</
div
>
<
div
>High: #= high #</
div
>
<
div
>Low: #= low #</
div
>
</
li
>
</
script
>
<
div
>
<
div
>CURRENT WEATHER</
div
>
<
ul
>
#repeater
<
li
>DAILY WEATHER</
li
>
#endrepeater
</
ul
>
</
div
>
The bold line above: I'm not sure what files or folders need to be brought over.
thanks for any help.
I’m trying to integrate ASP.Net GridView control with Kendo UI Grid control.
Please let me know how I can integrate ASP.Net GridView Template Columns with Kendo UI Grid control and how can I make Sorting functionality into Gridview with the use of Kendo UI control.
Thanks.
$("#datepickerF").kendoDatePicker({
// defines the start view
startView: "year",
// defines when the calendar should return date
depth: "year",
// display month and year in the input
format: "MMMM yyyy",
});
$("#datepickerT").kendoDatePicker({
// defines the start view
startView: "year",
// defines when the calendar should return date
depth: "year",
// display month and year in the input
format: "MMMM yyyy",
});
});
Marcus
I'm trying to filter a data source with the data bound to a remote source as per the Grid/Remote-data.html sample.
I've made some mods and nothing seems to happen. I'm trying to filters the results by ShipName.
<script>
$(document).ready(
function
() {
var
sharableDataSource =
new
kendo.data.DataSource({
type:
"odata"
,
transport: {
},
pageSize: 10,
serverFiltering:
true
,
serverPaging:
true
,
serverSorting:
true
,
});
$(
"#grid"
).kendoGrid({
dataSource: sharableDataSource,
height: 250,
scrollable:
true
,
sortable:
true
,
pageable:
true
,
columns: [
"OrderID"
,
"CustomerID"
,
"Freight"
,
"ShipName"
,
"ShipCity"
]
});
$(
"#apply"
).live(
"click"
,
function
() {
sharableDataSource.filter({ field:
"ShipCity"
, operation:
"eq"
, value:
"Reims"
});
});
});
</script>