This is a migrated thread and some comments may be shown as answers.

Toolbar Error

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Traci
Top achievements
Rank 1
Traci asked on 18 Oct 2013, 04:45 PM
Hello, In my cshtml the Toolbar is having a red underline and shows this error message:kendo.mvc.ui.fluent.gridresizingsettingsBuilder doesn not contain a defination for 'Toolbar' and not extention methiod..  What do I need to get this working ?
I am trying to implement the Grid Custom Editing from the Demo's example
this is how my gridd is defined:

@(Html.Kendo().Grid<SurveyMaintenance.Models.SurveyItem>()
.Name("idComplexGridSurveyItems")
.HtmlAttributes(new { ID = "idComplexGridSurveyItems", Class = "k-grid-header" })

.Columns(columns =>
{
columns.Bound(p => p.UPC).Width(100);
columns.Bound(p => p.Brand).Width(80);
columns.Bound(p => p.ShelfTagDesc).Width(150);
columns.Bound(p => p.CasePack).Width(60);
columns.Bound(p => p.UnitSize).Width(60);
})
.Sortable()
.Scrollable()
.Events(events => events.DataBound("SurveyItemGridDataBound"))
.Resizable(resize => resize.Columns(true)
.ToolBar(toolBar =>
{
toolBar.Create();
toolBar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell))
)
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Events(events => events.Error("grid_error_handler"))
.Read(
read => read.Action("GetSurveyItems", "Survey").Data("SurveyComplexFunctions.additionalData")

)
.Model(model =>
{
model.Id(p => p.ItemId);
model.Field(p => p.ItemId).Editable(false);
})
.Create(create => create.Action("EditingCustom_Create", "idComplexGridSurveyItems"))
.Update(update => update.Action("EditingCustom_Update", "idComplexGridSurveyItems"))
.Destroy(destroy => destroy.Action("EditingCustom_Destroy", "idComplexGridSurveyItems"))
 
)
)

I have scripts included:

<link rel="stylesheet" href="@Url.Content(baseUrl + "/CDN/Kendo_2013.2.918/Content/kendo.common.min.css")">
<link rel="stylesheet" href="@Url.Content(baseUrl + "/CDN/Kendo_2013.2.918/Content/kendo.silver.min.css")">

<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/kendo.modernizr.custom.js"></script>
<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/kendo/2013.2.918/jquery.min.js"></script>
<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/jquery-ui.min.js"></script>

<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/kendo/2013.2.918/kendo.all.min.js"></script>

<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/kendo/2013.2.918/kendo.web.min.js"></script>
<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/kendo/2013.2.918/kendo.aspnetmvc.min.js"></script>

<script type="text/javascript" src="@baseUrl/CDN/Scripts_2013.2.918/knockout-2.2.0.js"> </script>

2 Answers, 1 is accepted

Sort by
0
Traci
Top achievements
Rank 1
answered on 18 Oct 2013, 04:54 PM
Sorry it was such stupid mistable Th
0
Accepted
Traci
Top achievements
Rank 1
answered on 18 Oct 2013, 04:59 PM
Sorry this was my mistake I had missed the closing paranthesis.
Tags
Grid
Asked by
Traci
Top achievements
Rank 1
Answers by
Traci
Top achievements
Rank 1
Share this question
or