or
seriesDefaults: { overlay: {gradient: null} }
$('.autocomplete').css('width', width);
$('.autocomplete).css('background-color', '#eeeeee');
field :
"class"
title :
"Class"
width : 250
template :
"<div class=\\"FieldValueLink\\" onclick=\\"(function(e,obj){ /* do stuff */ })(event, this)\\" >#=class#</div>"
@(Html.Kendo().Grid<
gpas.Models.ContractBillingCycleRollUpGridView
>().Name("ContractBillingCycleGrid")
.Columns(c =>
{
c.Bound(t => t.Name);
c.Bound(t => t.LineItemCount).Title("Line Item Count").Width(125).HtmlAttributes(new { name = "lineItemCount" });
c.Bound(t => t.Total).Format("{0:c}").Title("Total Budget").Width(150).HtmlAttributes(new { name = "lineItemTotal" });
c.Bound(t => t.OrganizationId).Hidden().HtmlAttributes(new { name="orgId" });
c.Bound(t => t.SubcontractorId).Hidden().HtmlAttributes(new { name = "subconId" });
})
.DataSource(ds => ds
.Ajax().Read(read => read.Action("GridBinding_ContractBillingCycleRollUp", "Contract", new { id = Model.ContractBillingCycle.Id, organizationId = Model.OrganizationId }))
)
.Sortable()
.Pageable()
.Filterable()
.ClientDetailTemplateId("contractLineItemsTemplate")
.Events(events => events.DataBound("onDataBound"))
)
<
script
id
=
"contractLineItemsTemplate"
type
=
"text/kendo-tmpl"
>
@(Html.Kendo().Grid<
gpas.Models.ContractLineItemGridView
>().Name("childgrid_#=Id#_#=OrganizationId#_#=SubcontractorId#")
.Columns(c =>
{
c.ForeignKey(l => l.ExpenseCategoryId, Model.ExpenseCatagories).Title("Expense Category");
c.Bound(l => l.Description);
c.Bound(l => l.Justification);
c.Bound(l => l.Amount).Format("{0:c}").Width(200);
c.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.Sortable()
.Filterable()
.Scrollable()
.ToolBar(t => t.Create())
.Editable(edit => edit.Mode(GridEditMode.InLine))
.DataSource(ds => ds
.Ajax()
.Events(events => events.Error("error_handler").RequestEnd("gridLineItem_onRequestEnds"))
.Model(model =>
{
{
model.Id(o => o.Id);
}
})
.Read(read => read.Action("GridBinding_ContractLineItems", "Contract", new { id = "#=Id#", organizationId = "#=OrganizationId#", subcontractorId = "#=SubcontractorId#" }))
.Update(update => update.Action("GridAction_UpdateLineItem", "Contract"))
.Destroy(destroy => destroy.Action("GridAction_DeleteLineItem", "Contract"))
.Create(create => create.Action("GridAction_CreateLineItem", "Contract"))
)
.Events(events => events.Save("gridLineItem_OnSave"))
.ToClientTemplate()
)
</
script
>
async: {
saveUrl: "saveHandler.php",-------------------- ->> here what happens in this php file
removeUrl: "removeHandler.php",------------------>>here what happens in this php file
removeField: "fileNames[]"
}