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

[Solved] Cannot edit grid after deploy the project on server

2 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 17 Oct 2014, 07:50 AM
Hello,

I have a gird, that works normally while I'm working locally, but when I deploy the code on a server I cannot edit anymore the grid. 
If I'm looking with FireBug, for example, I see that the input for editing cell is not created. Does anyone know why this behavior?

I attached also a picture to illustrate this behavior.

Thank you!
This is my code:

@(Html.Kendo().Grid<BussinessUnitDto>()
.Name("FunctionsGrid")
.AutoBind(true)
.Scrollable()
.ToolBar(toolBar =>
{
toolBar.Create();
toolBar.Save();
})
.Editable(editable => editable.Mode(GridEditMode.InCell).DisplayDeleteConfirmation(false))
.DataSource(ds=>ds.Ajax().Batch(true).ServerOperation(false)
.Read("GetDeliveryUnits","DeliveryUnits")
.Create("Editing_Create", "DeliveryUnits")
.Update("Editing_Update", "DeliveryUnits")
.Destroy("Editing_Destroy", "DeliveryUnits")
.Model(model =>
{
model.Id(m => m.UnitID);
})
)
.Columns(c =>
{
c.Bound(e => e.UnitName);
c.Command(com => com.Destroy());
}
))



2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 21 Oct 2014, 07:38 AM
Hi Vlad,

I am not sure what exactly is causing this behavior, so I would ask you to check the browser's console for any error messages. You can also make sure that the default editor templates exist on the server where the application is deployed (they reside in the Views\Shared\EditorTemplates\ folder).

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Vlad
Top achievements
Rank 1
answered on 22 Oct 2014, 06:37 AM
Hi Alexander,

I checked the Editor Template folder and I saw that there were an unused custom editor for string (Somebody put it there). After I removed it everything works fine.

Thank you for your reply.
Tags
Grid
Asked by
Vlad
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Vlad
Top achievements
Rank 1
Share this question
or