Hello friends,
After modifying some field values, click on Save button to save the changes. If it is a successful one, it is fine. However, if the update fails, the grid is frozen (or disabled). One can not edit the field values anymore.
Any ideas? Any property to set to enable the grid after a failed update? Thank you!
Warm regards.
Andrew
Hello friend,
We are using Kendo grid for our web application.
Most of the times it displays Date/Time fields correct. However, sometimes the Date/Time columns display in wrong format. Please see the image below.
This wrong display doesn't happen consistently. Any ideas?
Warm regards.
Andrew
Given a grid, GridFilterMode.Row, with 3 columns (First Name, Surname, Nick Name) with 100 rows.
Given I have filtered the Surname column and now the grid is displaying 10 rows based on the applied filter on the Surname column.
If type one or more letters in the "First Name" field filter it will suggest all corresponding values to the dataSource even the ones that are not being displayed in the grid due to the applied filter in the column Surname.
Is there any way to suggest only values in the "view()" data (only values displayed in the grid)?
I haven't found any additional information on the documentation.
Any help is welcome.
Example:
Hi,
I have a kendo grid, user wants to enter html data in one of the column.
user clicks edit button on the grid row then an edit form opens as popup. This edit form is a model.cshtml with all the fields of the model on it. This edit cshtml does not have any button on it. "Update" button is created on fly.
User enters html data (tags etc) and clicks Update button then it return 401 error. Which I think is because its taking the tags as an injection attack. If user enters normal text then it works fine.
what can do to make the edit form allow submit html tags data? can you please help me?
Thanks
CNS
My Grid has the following code
.DataSource(dataSource => dataSource
.Ajax()
.AutoSync(false)
.Model(model => model.Id(p => p.No))
.Destroy(update => update.Action("DeleteData", "DataController"))
.Events(evt => evt.Error("cancelDelete"))
Following is the controller
[HttpPost]
I see data has null when it call the controller function
What could be the reason for data is null and the No is not passed.
Thanks
@(Html.Kendo().Grid(Model)
.Name("XXXXDataGrid")
.Columns(columns =>
{
columns.Command(command => { command.Custom("View").Click("ViewMap").Text(" ").IconClass("k-icon k-i-search"); }).Width(50).Title("View");
})
I am using above syntax to display the grid column with search icon but the icon is not displayed properly as shown.
Using
Note sure the reason or how to debug this
Thanks
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns => {
columns.Bound(p => p.ItemId).Visible(false);
columns.Bound(p => p.ItemName).HeaderTemplate("ItemID")
.Template(@<text><a href="@Url.Action("ItemDetail", "Storage", new { ItemId = item.ItemId })">@item.UnNumber</a></text>);
columns.Bound(p => p.UnNumber).HeaderTemplate("UN Number").Filterable(false);
columns.Bound(p => p.PackingInstructions).HeaderTemplate("Packing Instructions");
columns.Bound(p => p.IsCargo).HeaderTemplate("Cargo Only");
columns.Bound(p => p.SdsSheetFileName).HeaderTemplate("SDS #1")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.SdsSheetFileName })" target="_blank">@item.SdsSheetFileName</a></text>);
columns.Bound(p => p.GroundShipmentFileName).HeaderTemplate("Example Shipment Ground (Fully Regulated)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.GroundShipmentFileName })" target="_blank">@item.GroundShipmentFileName</a></text>);
columns.Bound(p => p.NextDayShipmentFileName).HeaderTemplate("Example Shipment Next Day (Fully Regulated)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.NextDayShipmentFileName })" target="_blank">@item.NextDayShipmentFileName</a></text>);
columns.Bound(p => p.FreightShipmentFileName).HeaderTemplate("Example Shipment Freight (Fully Regulated)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.FreightShipmentFileName })" target="_blank">@item.FreightShipmentFileName</a></text>);
columns.Bound(p => p.GroundShipmentLimitedFileName).HeaderTemplate("Example Shipment Ground (Limited Quantity)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.GroundShipmentLimitedFileName })" target="_blank">@item.GroundShipmentLimitedFileName</a></text>);
columns.Bound(p => p.NextDayShipmentLimitedFileName).HeaderTemplate("Example Shipment Next Day (Limited Quantity)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.NextDayShipmentLimitedFileName })" target="_blank">@item.NextDayShipmentLimitedFileName</a></text>);
columns.Bound(p => p.FreightShipmentLimitedFileName).HeaderTemplate("Example Shipment Freight (Limited Quantity)")
.Template(@<text><a href="@Url.Action("GetReport", "Storage", new { fileName = item.FreightShipmentLimitedFileName })" target="_blank">@item.FreightShipmentLimitedFileName</a></text>);
})
.Pageable()
.Sortable()
.Filterable()
.Navigatable()
.Size(ComponentSize.Small)
.HtmlAttributes(new { style = "height: 550px;width:500px;" })
)
Hi,
Is it possible to use the MVC scheduler like a daily rostering system with locations down the left then times along the top and resources can be assigned to these locations and times?
When I look at examples, the times are always down the left and days along the top.
Thanks,
Ian
We are having an issue when a column gets filtered out via the column menu, the filtered state of the gird doesn't persist if the grid gets reloaded or user moved to another area that has the same grid.
i.e. if user filters out customer column, navigates elsewhere, comes back then the customer column will reappear.
Using v2023. 1. 117