This is a migrated thread and some comments may be shown as answers.

Grid not getting refreshed

0 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vidushi
Top achievements
Rank 1
Vidushi asked on 07 Sep 2012, 06:40 AM

Hi ,

When I am updating my server editing gridview from popup , The value which I am getting from other table after JOIN is not getting refreshed.

my grid view code
ResourceGroupTypeName is from other table.

 

@(Html.Kendo().Grid(Model)

.Name(

 

"resourceprop")

 

.Columns(columns =>

{

 

columns.Bound(p => p.ResourceGroupId).HtmlAttributes(

 

new { style = "text-align: left" }).Width(185); ;

 

columns.Bound(p => p.ResourceGroupName).HtmlAttributes(

 

new { style = "text-align: left" }).Width(190); ;

 

columns.Bound(p => p.ResourceGroupTypeName).HtmlAttributes(

 

new { style = "text-align: left" }).Width(230); ;

 

 

 

// columns.Bound(p => p.Description);

 

 

 

 

 

 

columns.Bound(p => p.Status).HtmlAttributes(

 

new { style = "text-align: center" }).Width(80);

 

columns.Bound(p => p.CreationDate).HtmlAttributes(

 

new { style = "text-align: right" }).Width(150).Format("{0:MM/dd/yyyy}");

 

columns.Command(command => { command.Edit(); });

})

 

 

// .ToolBar(toolbar => toolbar.Create())

 

 

 

 

 

 

.Editable(editable => editable.Mode(

 

GridEditMode.PopUp).TemplateName("popupgroup")

 

.Window(w => w.Title(

 

" Edit Resource Group").Name("editWindow")))

 

.Pageable(p => p.PageSizes(

 

true))

 



my dropdown in popup

@(Html.Kendo().DropDownList()

.Name(

 

"ResourceGroupTypeName")

 

.Value(

 

"ResourceGroupTypeId")

 

.OptionLabel(

 

"Select Group Type")

 

.DataTextField(

 

"ResourceGroupTypeName")

 

.DataValueField(

 

"ResourceGroupTypeId")

 

 

.DataSource(source =>

{

source.Read(read =>

{

read.Action(

 

"GetResourcetype", "ManageResource");

 

});

})

)

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Vidushi
Top achievements
Rank 1
Share this question
or