Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kendo ui 将剑道工具栏放置在网格底部_Kendo Ui_Kendo Grid - Fatal编程技术网

Kendo ui 将剑道工具栏放置在网格底部

Kendo ui 将剑道工具栏放置在网格底部,kendo-ui,kendo-grid,Kendo Ui,Kendo Grid,我有一个带工具栏的剑道网格,如何将其放置在网格之后 我快速搜索并在堆栈中找到了,但我的命令栏仍然显示在网格上方 我不知道这里出了什么问题,谁能给我指出正确的方向吗? 代码: @if(型号IsDependentGridEnabled) { @(Html.Kendo().Grid(Model.DependentDetailsList) .Name(“DependentGrid”) .Events(e=>e.SaveChanges(“DependentGridSave”) ) .列(列=> { co

我有一个带工具栏的剑道网格,如何将其放置在网格之后

我快速搜索并在堆栈中找到了,但我的命令栏仍然显示在网格上方

我不知道这里出了什么问题,谁能给我指出正确的方向吗? 代码:


@if(型号IsDependentGridEnabled)
{
@(Html.Kendo().Grid(Model.DependentDetailsList)
.Name(“DependentGrid”)
.Events(e=>e.SaveChanges(“DependentGridSave”)
)
.列(列=>
{
columns.ForeignKey(p=>p.TitleCode,Model.TitleList,“TitleCode”,“TitleDescription”).Title(“Title”);
columns.Bound(p=>p.FirstName).Title(“FirstName”);
columns.Bound(p=>p.MiddleName).Title(“中间名”);
columns.Bound(p=>p.LastName).Title(“LastName”);
columns.ForeignKey(p=>p.Gender,Model.GenderList,“TitleCode”,“TitleDescription”)。Title(“Gender”);
columns.ForeignKey(p=>p.RelationShipCode,Model.RelationShipList,“RelationShipCode”,“RelationShipName”).Title(“关系”);
columns.Bound(p=>p.DepDOB).Format(“{0:dd-MMM-yyyy}”).Title(“出生日期”);
columns.Bound(p=>p.RelationShipStartDate).Format(“{0:dd-MMM-yyyy}”).Title(“关系开始日期”);
columns.Bound(p=>p.RelationShipEndDate).Format(“{0:dd-MMM-yyyy}”).Title(“关系结束日期”);
columns.Bound(p=>p.EmailAddress).Title(“Email”);
columns.Bound(p=>p.DepPassportNumber).Title(“PassportNumber”);
columns.Bound(p=>p.DepPassportExpDate).Format(“{0:dd-MMM-yyyy}”).Title(“护照到期”);
Command(Command=>Command.Destroy());
})
.ToolBar(ToolBar=>
{
toolBar.Create().Text(“添加”);
toolBar.Save().SaveText(“提交”).CancelText(“重置”);
})
.Editable(Editable=>Editable.Mode(GridEditMode.InCell))
.Sortable()
.resize可调整大小(resize=>resize.Columns(true))
.可过滤()
.DataSource(DataSource=>DataSource
.Ajax()
.Batch(真)
.ServerOperation(错误)
.Model(Model=>
{
Id(m=>m.dependentedialid);
})
.Update(Update=>Update.Action(“DependentDetails\u Update”,“EmployeeSelfService”)
)
.Create(Create=>Create.Action(“DependentDetails\u Create”,“EmployeeSelfService”)
)
.Destroy(delete=>delete.Action(“DependentDetails\u Destroy”,“EmployeeSelfService”)
)
.Events(e=>e.RequestEnd(“DependentGrid_onComplete”)
)
)
)
}
$(“#DependentGrid”).find(“.k-grid-toolbar”).insertAfter($(“#DependentGrid.k-grid-content”);

我明白了。。。在浏览了呈现的HTML之后,我发现里面没有“.k-grid-content”,只有“.k-grid”,而且效果很好

<script>

// $("#DependentGrid").find(".k-grid-toolbar").insertAfter($("#DependentGrid .k-grid-content"));  --- not working

// Working Line 

$("#DependentGrid").find(".k-grid-toolbar").insertAfter($("#divDependentDetails .k-grid"));
</script>

//$(“#DependentGrid”).find(“.k-grid-toolbar”).insertAfter($(“#DependentGrid.k-grid-content”);--不起作用
//工作线
$(“#DependentGrid”).find(“.k-grid-toolbar”).insertAfter($(“#divDependentDetails.k-grid”);

剑道ui论坛是一个问这个问题的好地方。@MohammandSepahvand谢谢,我的公司有剑道许可证,但我还没有链接到这一点。。所以我不能以剑道的形式发布。
<script>

// $("#DependentGrid").find(".k-grid-toolbar").insertAfter($("#DependentGrid .k-grid-content"));  --- not working

// Working Line 

$("#DependentGrid").find(".k-grid-toolbar").insertAfter($("#divDependentDetails .k-grid"));
</script>