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

Detailed Editable Grid : Unable to get data from Servlet to model

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nagaraju
Top achievements
Rank 1
Nagaraju asked on 02 May 2016, 09:14 AM

Hi,

   Thanks in advance.

I am working on Detailed Editable Grid. The Inner Grid is editable.

The outer  grid has a column with  total value of one of the child grid's field.
SO, whenever a child grid row is updated, It will call the servlet and update the database table and return the row with "totalPercentage" field added to the row,

I want to set this field to parent grid. But , I am getting the "totalPercentage" as undefined. I am attaching the code.

Is there any way we can refresh only one row of the parent grid when child grid is updated ?

or

capture the values returned from servlet.

 

I am very new to Kendo. Can you please suggest any alternative way if it is better ?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 04 May 2016, 06:53 AM

Hello Nagaraju,

Both Grids are disconnected from one another. Thus when you make changes in one of them the other doesn't know about it.

A possible way to communicate child-parent is to handle sync event of the child/detail data source, and force read of the master data source.

This however will cause repaint of the master Grid and all expanded items will be lost. The following how-to article demonstrates a technique to preserve expanded state upon refresh, if you need that.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Nagaraju
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or