When i am trying to update the value through the join it updated the database but not updating the gridview.
But after refreshing the page it is showing the updated value.
Here is my code.
@(Html.Kendo().Grid(Model)
.Name(
"Grid")
.Columns(columns =>
{
columns.Bound(p => p.RoleTypeName).HtmlAttributes(
new { style = "text-align: left" }).Width(90);
columns.Bound(p => p.Name).HtmlAttributes(
new { style = "text-align: left" }).Width(100);
columns.Bound(p => p.Status).HtmlAttributes(
new { style = "text-align: center" }).Width(80);
columns.Command(command => { command.Edit(); }).HtmlAttributes(
new { style = "text-align: center" }).Width(100);
})
.Editable(editable => editable.Mode(
GridEditMode.PopUp).TemplateName("PopUpTemplate").Window(w => w.Title("Manage Role").Name("editWindow").Width(400).Height(200)))
.Pageable(p => p.PageSizes(
true))
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
//.Server()
.Ajax()
.ServerOperation(
false)
.Model(model => model.Id(p => p.RoleID))
.Read(read => read.Action(
"ManageRole", "ManageRole"))
.Update(update => update.Action(
"Update", "ManageRole"))
)
)
and my editor template contains dropdownlist
@(Html.Kendo().DropDownListFor(model => model.StatusName)
.Name(
"StatusName")
.DataTextField(
"StatusName")
.DataValueField(
"StatusName")
.DataSource(source =>
{
source.Read(read =>
{
read.Action(
"GetStatus", "ManageRole");
});
})
)
When i update the status from the dropdownlist updates in data but not show in grid, it appear when refreshing the page.How can i remove this problem please help me out.