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

Kendo Grid and Java Servlet

2 Answers 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
StevenDom
Top achievements
Rank 1
StevenDom asked on 30 Sep 2014, 02:19 PM
I am attempting to implement the Kendo Grid with a Java Servlet on the backend.

---------------
I have set up the grid to have a Create Row button.

I can see the grid calling my java code using printlkn statements. But I get that code called multiple times.It is called when:
1) the create popup window starts
2) each time I tab to a new textbox on the create popup window
3) when I press the Update button on the create popup window.

Also, when I press the update button the create popup window is not dismissed.

Does anyone know what I an doing wrong?

2 Answers, 1 is accepted

Sort by
0
StevenDom
Top achievements
Rank 1
answered on 30 Sep 2014, 02:29 PM
I got it so that I only get the Java code called once by setting autoSync to false.

Now for the next problem. In the case of both create and update the popup window is not closed unless press the cancel button. How do I get it to close like in the online demos?
0
StevenDom
Top achievements
Rank 1
answered on 30 Sep 2014, 03:27 PM
The key to getting the popup window to go away is to return the object that was modified (or created or destroyed) back to the grid as a json string. This is not obvious in the samples or documentation.Anyway, I got it to work.
Tags
Grid
Asked by
StevenDom
Top achievements
Rank 1
Answers by
StevenDom
Top achievements
Rank 1
Share this question
or