tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

loadPageState check my ActiveCheck but I've unchecked it before #440

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I check a TActiveCheckBox
2.I uncheck this TActiveCheckBox
3.I do an action who call the loadPageState method form TPage, but this method 
checked this TActiveCheckBox ???

What is the expected output? What do you see instead?
TActiveCheckBox must do unchecked but it is checked

What version of the product are you using? On what operating system?
Prado Version 3.1.10 Jul 17, 2011 on Windows

Please provide any additional information below.

Original issue reported on code.google.com by sebast...@prodhomme.org on 13 Feb 2013 at 3:26

GoogleCodeExporter commented 9 years ago
Have a look at 
http://www.pradosoft.com/demos/quickstart/?page=Fundamentals.Pages
TPage's loadPageState step occurs before the processing of the received POST 
data.
It basically fills the empty TPage skeleton with the "last known data", getting 
it ready in order to apply the modifications received from the clientside 
request.
If you call loadPageState() again on TPage after the post data processing has 
finished, you will discard any change coming from the clientside request.
If you have further doubts, please attach a php file exposing your problem so 
that we can test it.

Original comment by ctrlal...@gmail.com on 13 Feb 2013 at 5:39

GoogleCodeExporter commented 9 years ago
The problem was resolved by adding AutoPostBack="false" on my TActiveCheckBox, 
I don't know how ?

Original comment by sebast...@prodhomme.org on 14 Feb 2013 at 8:23

GoogleCodeExporter commented 9 years ago
This seems more an user support session than a bug report. Please use the forum 
for that.

Original comment by ctrlal...@gmail.com on 14 Feb 2013 at 5:03