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

Databound control value issue

2 Answers 78 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.
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
commented on 21 Jul 2022, 04:40 PM

This is pretty old, has this been addressed.  I spent hours trying to figure out why my controls that are databound, would not update/refresh until the page was selected.   
Dess | Tech Support Engineer, Principal
Telerik team
commented on 22 Jul 2022, 04:24 AM

Hi, Mark,

According to the provided brief information, it wouldn't be easy to determine what causes the undesired behavior on your end. I would kindly ask you to submit a support ticket with more detailed information about the precise case . Thus, we would get better understanding of the precise case and think about an appropriate solution. A sample runnable project would be also greatly appreciated. Thank you in advance for your cooperation.

I am looking forward to your reply.

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