Hello,
We are currently trying to implement a form containing a datagrid using this tutorial : http://www.kendoui.com/code-library/mvc/grid/submit-form-containing-grid-along-with-other-input-elements.aspx.
So far, we managed to configure the grid but we are facing a major drawback using IE8 which is the browser we are targeting. Actually, insertion and deletion of lines work flawlessly but we can edit the data only once right after creation. However, this doesn’t happen using Google Chrome, so we wanted to know if it was a known bug and if there is a workaround to make it work under IE8.
Thanks in advance,
Yours sincerely,
5 Answers, 1 is accepted
Could you elaborate a little more on the issue? What is the problem when trying to edit an already created item? Are there any JavaScript errors? It would be helpful if you could provide a runnable sample that reproduces the problem so I can investigate what exactly goes wrong?
Kind regards,Daniel
the Telerik team
Hello,
Thanks for your quick reply.
The exact problem is that it is impossible to get the input working as expected. When clicking to edit a cell, we see that the input field is activated but is immediately disabled. There are no javascript errors, it seems like the field loses focus every time we try to edit it.
The tutorial behaves also like that when following this procedure (under IE8) :
- Insert a new line
- Edit the line
- Insert a new line
- Edit the line
- Try to edit the first line (not working)
Hope these details would be helpful to investigate further,
Best regards,
Thank you for clarifying. I reproduced the problem on my side. This seem like some weird focus issue with the hidden input. At least on my side moving the cell text after the input resolves the problem:
columns.Bound(p => p.Name).ClientTemplate(
"<input type='hidden' name='Products[#= index(data)#].Name' value='#= Name #' />#= Name #"
);
Daniel
the Telerik team
HI
Is there have any new/simple/official/built-in functionailty for <a href="http://www.kendoui.com/code-library/mvc/grid/submit-form-containing-grid-along-with-other-input-elements.aspx" target="_blank">this </a> in Telerik ASP.NET MVC 2016 ?
ClientTemplate and data("kendoGrid").dataSource.data() just a little complex/unformal.
Best regards
Chris
I am afraid there isn't an alternative solution. Nevertheless, you can create a new feedback item in our Feedback portal and vote for it. This way our developers can consider a possible implementation in future.
Regards,
Kostadin
Telerik by Progress