or
<
div
id
=
"scrollview-container"
>
<
div
data-role
=
"scrollview"
id
=
"feed-scrollview"
>
<
div
data-role
=
"page"
class
=
"feed-item"
>
<
h2
>header 1</
h2
>
<
p
data-role
=
"scroller"
>text to be scrolled</
p
>
</
div
>
<
div
data-role
=
"page"
class
=
"feed-item"
>
<
h2
>header 2</
h2
>
<
p
data-role
=
"scroller"
>other text</
p
>
</
div
>
more pages...
</
div
>
</
div
>
function
treeview_databound(e) {
var
treeview = e.sender;
var
item = treeview.dataSource.get (id_root_node); // How do I determine root node?
if
(item) {
var
node = treeview.findByUid (item.uid);
treeview.select (node);
}
}
$(
"#splitted_tree_window_left"
).
kendoTreeView({
// ...
dataBound : treeview_databound,
});
$(document).ready(
function
($) {
kendo.bind($(
"#view"
), viewModel);
});
loadExtPage:
function
(path) {
//Use jQuery Ajax to fetch the template file
var
tmplLoader = $.get(path)
.success(
function
(result) {
//On success, Add page to DOM
var
index =
new
kendo.View($(
'<div />'
).html(result));
layout.showIn(
"#content"
, index);
})
}
Contains properties to be displayed in the grid
public class ApplicationListVMhi
i have a dataSource that spits out data like this:
after feb - the 'budget' MDetail falls off to 0
and before jun - i dont know what the 'projected' MDetail does
its drawing a bunch of stuff
what im trying to achieve here is:
if there are no records for anything after feb
then dont draw anything - just cut it off
ie dont descend to 0
and likewise if there are no records for the beginning
then dont draw anything until theres a record for the category
ie it iwll be blank until jun and then the 'projected' numbers start drawing
how do i do this?
thanksa!
[{
Amount: "2140402000"
MDetail: "Budget"
Month: "Jan"
Monthnum: "1"
Year: "2013"
},
{
Amount: "2146823206"
MDetail: "Budget"
Month: "Feb"
Monthnum: "2"
Year: "2013"
},
{
Amount: "2257798847"
MDetail: "Projected"
Month: "Jun"
Monthnum: "6"
Year: "2013"
},
{
Amount: "2272474540"
MDetail: "Projected"
Month: "Jul"
Monthnum: "7"
Year: "2013"
}]
$J("#chart").kendoChart({
dataSource: {
data:source,
group: {
field: "MDetail",
dir: "asc"
},
sort: [
{field: "Year", dir: "asc"},
{field: "Monthnum", dir: "asc"}
]
},
theme: "blueOpal",
title: {
text: "Total Cost of Workforce for " + year
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "area",
format: "${0:0,000}"
},
series: [{
field: "Amount",
groupNameTemplate: "#= group.value # "
}],
valueAxis: {
labels: {
template: "#= kendo.format('$ {0:N0}', value / 1000000) # M"
},
majorUnit: 100000000,
line: {
visible: false
},
axisCrossingValue: -10
},
categoryAxis: {
field: "Month",
majorGridLines: {
visible: false
}
},
tooltip: {
visible: true,
format: "$ {0:0,000}"
}
});
@model <
BaseFormModel
>
@{
Model.Demographics = Model.GetFormDemographics(Model.PlanActivityId, Model.Id, 0);
}
<
div
class
=
"modalContent"
>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<
fieldset
>
<
legend
>Edit Events</
legend
>
<
div
>
<
label
>Month</
label
>
@Html.TextBoxFor(model => model.StartMonth, new { @placeholder = "mm" })/@Html.TextBoxFor(model => model.StartYear, new { @placeholder = "yyyy" })
</
div
>
<
div
>
<
label
>Event Name</
label
>
@Html.TextBoxFor(m => m.FormName)
</
div
>
<
div
>
<
label
>Number of brochures distributed(if applicable)</
label
>
@Html.TextBoxFor(m => m.Count2, new { @maxlength = 3 })
</
div
>
<
div
>
<
label
>Number of attendees</
label
>
@Html.TextBoxFor(m => m.Count, new { @id = "txtNumberOfAttendees" })
</
div
>
<
a
id
=
"autoPopulate"
>Populate based on my county census and number of attendees.</
a
>
<
h2
>Target Demographics</
h2
>
@*@{
Html.RenderAction("GetFormDemographics", "Form", new { planActivityId = ViewBag.PlanActivityId, formId = Model.Id, spUserId = 0 });
}*@
@{
Html.RenderPartial("_PartialDemographicsEditor",model: Model.Demographics);
}
</
fieldset
>
}
</
div
>