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

Popup editor not setting dirty flag when value changed.

5 Answers 380 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 25 Jan 2013, 01:51 AM
When I change a value in the popup editor the dirty flag is not set, hence the data is not posted back.

Run the attached project:
Click Edit on the grid item
Within the popup dialog
Click into the Customer field and Add '5' to the 'Sage 1234' data(Notice the grid dirty(changed) indicator not present)
Click save.(Notice the grid not updated)

Another issue I'm having is the checkboxes in the Subscriptions grid (also on the Edit popup) do not set the dirty flag either. Hence, if I check or uncheck them and then enter subscription text the checkboxes revert back to their original state.

Any help is appreciated.

5 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 28 Jan 2013, 05:20 PM
Hi Richard,

 
I tried to reproduce the problem locally but to no avail – everything is working as expected on our side (yu can check this screencast). Please provide the following details - they would help us pinpoint the exact reason for this behavior::

  • What is the exact browser version that you are using?
  • Could you please send us a short screen capture that shows the exact steps you take?


Thank you in advance for your patience and cooperation.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 28 Jan 2013, 06:30 PM
I have attached a Word document showing screen shots with some explanation.
0
Vladimir Iliev
Telerik team
answered on 30 Jan 2013, 04:00 PM
Hi Richard,


Thank you for the clarification.

I was able to reproduce the issue with the "CustomerName" field, however it seems that it's already fixed in KendoUI 2012 Q3 SP1 release (v.2012.3.1315). Also I found several issues in current configuration which should be updated:

After updating the project with the above changes it will work as expected.

Also I notice that the second grid is bind to nested field of the main grid - please note that currently the grid does not support complex models and you should flatter the current main grid model. In current scenario you should remove the "Apps" property from the grid model and get the popup grid data from another data source by current model ID.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Richard
Top achievements
Rank 1
answered on 31 Jan 2013, 05:45 PM
Hi Vladimir, Are you implying that if I bind to a completely separate datasource the grid will start correctly setting the dirty flag? Also, why would you include the script files within a shared page such as Layout when only a few pages may use the specific script. Seems only the pages that need the specific script should include them. This used to be common programming practice, i.e. c++ include files only included where needed.
0
Petur Subev
Telerik team
answered on 04 Feb 2013, 10:34 AM
Hello Richard,

Vladimir mentioned in his post that you are referencing the script multiple times (once in the Layout and once in the index view) which is not good idea, since all widgets registered to jQuery are cleared from the memory if it is reloaded.
Regarding the separate dataSource, if you want to edit child collection - yes you need to use separate dataSource, because if you modify record from the nested collection the change event will bubble and the whole master Grid will react to this change and redraw. This will cause it to loose its current state - popup will be closed change made in the popup will be neglected etc.

Hierarchy of Grids with separate dataSources is covered in this demo.

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