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

Changed field left by clicking window close X does not register as change.

1 Answer 17 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 2
Rick asked on 04 Nov 2015, 03:30 PM

A function bound to 'set' on a viewModel is not called unless focus is lost to some other field, the window background, or a button if it is enabled. Clicking the X to close the window does not register as a change in focus. This leads to awkward behavior. Update one text field and click X and the window closes without having a chance to save the value. Update more than one field and the last field edit can be lost.

The attached Dojo snippet shows the problem. A lot of other stuff works and I will be using it a lot in my app.

Rick

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 09 Nov 2015, 08:09 AM

Hello Rick,

 

http://screencast.com/t/sCNShojk

 

I'm not able to replicate describe behaivor. I've recorded the screen cast of my tests. Changing a field and click on the X button of the window seems to trigger set event of the view model. Am I missing something?

 

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
Window
Asked by
Rick
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Share this question
or