@model IEnumerable<
EquipmentsSummary
>
<
div
class
=
"info-row"
>
@(Html.Kendo().Grid(Model)
.Name("EquipmentGrid")
.Columns(columns =>
{
columns.Bound(e => e.EquipName).Title("Item Name");
columns.Bound(e => e.SerialNo).Title("Serial #");
columns.Bound(e => e.AssetStatus).Title("Status");
columns.Bound(e => e.AssetStatusDate).Title("Date");
})
.HtmlAttributes(new { style = "height: 390px;" })
.Pageable(pageable => pageable
.PageSizes(true).PageSizes(new int[] { 20, 50, 100 })
.ButtonCount(5))
.Sortable()
.Filterable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(false))
.ClientDetailTemplateId("template")
.Events(events => events.DetailInit("initDetail"))
)
<
script
id
=
"template"
type
=
"text/kendo-tmpl"
>
@(Html.Kendo().Grid<
EquipmentSettingsSummary
>()
.Name(string.Format("SettingGrid_#=ID#"))
.Columns(columns =>
{
columns.Bound(e => e.EffectiveDate).Title("Date");
columns.Bound(e => e.AssetStatus).Title("Status");
})
.HtmlAttributes(new { style = "height: 390px;" })
.Pageable(pageable => pageable
.PageSizes(true).PageSizes(new int[] { 20, 50, 100 })
.ButtonCount(5))
.Sortable()
.Filterable()
.Scrollable()
.ToClientTemplate()
)
</
script
>
<
script
>
function initDetail(e) {
alert("ID is " + e.data.ID);
var grid = $("#SettingGrid_" + e.data.ID).data("kendoGrid");
grid.dataSource.data(e.data.SettingItems);
}
</
script
>
</
div
>
Hello all,
I have grid which displays a group of records. Then some custom actions to perform on this records. One of the custom actions will open a popup window which displays another grid with child information about the original table. I'm doing this by passing a custom query string with the parent key.
In this child table, when I try to create a new record, the foreign key that is passing to the controller is 0 event though when editing, the binding will show the correct value. Through jquery I'm able to read the parentID and put it in a hidden field in the child screen, but when submitting, is goes as 0 again even though it has a number on it. The only way I'm able to solve the issue is by passing a value directly to the model in the child window in the OnEdit event like this:
e.model.set("GroupID", $("#txtGroupID").val());
Anyone knows why is passing a 0 value although I'm assigning a value for it: $("#GroupID").val($("#txtGroupID").val());
Any recommendations?
Hello,
I'm new using the Telerik components and I've been looking for a thread related to this feature (year view in the scheduler), but I only found it into the Ajax scheduler component, and not in MVC. Do you guys have any plans to implement this feature for MVC Scheduler ? if not can you send me any sample or guide lines to implement it as custom view?
Thank you.
Hi,
Can you show me an example where a ListView or a Multiselect is inside an form. This form is called from a "grid" on next way .Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("ProductorEdit"))
Thanks in advance
Xavier de la Rubia.
Starting with the Q3 release we've seen the following behavior for enum attributes that are bound to a dropdownlist.
I did some testing and found when I bound the dropdownlist to the integer that the enum represented, the dropdownlist worked as expected. It seems that the control is no longer binding to enums as it did before (binding the value to the integer the enum represents). Did something change that was undocumented in the Q3 release that caused this behavior?
Hello,
Tested on IE 10, Chrome and FF (latest version).
Write value in cell A1
Write formula in cell B1 as "=A1"
Clear value in cell A1 (focus on cell and press Delete)
Formula value remains the same.
Best Regards