or
@(Html.Kendo().Grid<
Models.AgentLeaderData
>()
.Name("AgentLeaderData")
.Columns(col =>
{
col.Bound(p => p.AgentName);
col.Bound(p => p.Revenue).HtmlAttributes(new { style = "text-align:right" });
})
.BindTo(Model.AgentLeaderData)
)
@(Html.Kendo().TreeView()
.Name("OrganisationTreeview")
.ExpandAll(true)
.BindTo(Model, mapping => mapping
.For<
Organisation
>(binding => binding
.Children(organisation => organisation.ChildOrganisations)
.ItemDataBound((item, organisation) =>
{
item.Text = organisation.organisation_unit_name;
item.Id = organisation.organisation_unit_id.ToString();
if (organisation.organisation_type_id == 1)
{
item.HtmlAttributes.Add("style", "font-size: 18px;font-weight:bold;");
}
else if (organisation.organisation_type_id == 3)
{
item.HtmlAttributes.Add("style", "font-size: 14px;font-weight:bold");
}
else if (organisation.organisation_type_id == 2)
{
item.HtmlAttributes.Add("style", "font-size: 12px;font-weight:normal");
}
})))
)
$(
"*[data-add-team]"
).click(
function
() {
var
win = $(
"#teamWindow"
)
win.show().data(
"kendoWindow"
).open().center().toFront();
})
<
div
data-menu-item
=
"teams"
>
@code
Dim TeamCreateWindows As Kendo.Mvc.UI.Window = Html.Kendo.Window() _
.Name("teamWindow") _
.Title("Create Team") _
.Actions(Sub(actions)
actions.Custom("custom")
actions.Minimize()
actions.Maximize()
actions.Close()
End Sub) _
.LoadContentFrom("create", "team", New With {.area = "contractor"}).Animation(True) _
.Content(Sub()
@<
text
>
Loading.......
</
text
>
End Sub) _
.Draggable().Resizable().Width(500)
TeamCreateWindows.Render()
End Code
@Html.Button("addTeam", "Add Team", BO.Enumerators.ButtonType.Button, BO.Enumerators.ButtonStyle.LoLight, New With {.data_add_team = True})
@Html.Partial("_Teams", Model.Contractor)
</
div
>
@(Html.Kendo().Chart<CMS_2013.Models.Temp_Data_Summary>()
.Name(
"Chart"
)
.Legend(
false
)
.Title(
"Data in Temporary Pricing Table"
)
.DataSource(dataSource => dataSource
.Read(read => read.Action(
"GetSummaryChartData"
,
"Pricing"
))
)
.Series(series => {
series.Column(d => d.Records).Tooltip(
true
) ;
})
.CategoryAxis(axis => axis
.Categories(model => model.Class)
)
.HtmlAttributes(
new
{ style =
"width:350px; height:250px;"
})
)
var
grid = $("#Grid").data("kendoGrid"); => error
Did I miss something ?