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

Databound control value issue

2 Answers 27 Views
PageView
This is a migrated thread and some comments may be shown as answers.
David A.
Top achievements
Rank 1
David A. asked on 26 Mar 2011, 06:30 PM
Hi,

I have a pageview with several tabs that have databound controls (textboxes).  When the user closes the form, I am validating these textbox values.  The problem is if a tab is not selected the textboxes are showing an empty text value (not the databound value) in code (validation fails).  As soon as I select the tab on the form the textboxes are populated and the validation succeeds.  Is there a way to "force" the textboxes in unselected tabs to populate their underlying values?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 26 Mar 2011, 08:50 PM
Hello David,

The problem is not just that the textboxes do not hold the right value, the problem is that the handles for the page are created just when you first select a page, so before you select that page nothing will be created (initialized) for that page.

So if you really would like to force this, then i would suggest on page load to select each page. It should work like this.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
David A.
Top achievements
Rank 1
answered on 27 Mar 2011, 04:41 PM
Thank you.  That sounds like it is a great performance benefit.
Tags
PageView
Asked by
David A.
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
David A.
Top achievements
Rank 1
Share this question
or