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

LoadOnDemand Issues

4 Answers 149 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
David Bows
Top achievements
Rank 1
David Bows asked on 21 Aug 2007, 10:50 PM
Hello,

I am having a strange issue.  I have used the LoadOnDemand example as a base to create a simple user control that loads when I hover over a grid element.  The issue I have is that if I try and set the .Text property of a TextBox it does not work after the first instance.  However if I change the TextBox to a Label then it works on each instance???  What could be the issue?

You can change the LoadOnDemand to show the ProductID in a TextBox and duplicate the issue.

Any help would be great.

Thanks,
David

4 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 22 Aug 2007, 07:16 AM
Hi David Bows,
I modified the mentioned example to use an ASP TextBox control, however, I could not reproduce the problem you describe. Could you please prepare and send us a simple running project, demonstrating this issue?

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anthony
Top achievements
Rank 1
answered on 27 Feb 2008, 02:03 AM
I am having the same issue. Was there ever a resolution on this?
0
Tervel
Telerik team
answered on 27 Feb 2008, 07:56 AM
Hello Anthony,

We did receive a sample project and were able to reproduce the issue.
Here is what we answered:

============================================================
The problem comes from the fact that you set  the values for the TextBox in the Page_Load handler, however, in this case, you will have to do it at a later stage in the page lifecycle - for example, in the OnPreRender handler:

protected void Page_Load(object sender, EventArgs e)  
{  
    //this.ShowCurrentDetails();  
}  
 
protected override void OnPreRender(EventArgs e)  
{  
    base.OnPreRender(e);  
    this.ShowCurrentDetails();  

============================================================

Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anthony
Top achievements
Rank 1
answered on 27 Feb 2008, 11:56 AM
That worked great! Thanks for posting the resolution.
Tags
ToolTip
Asked by
David Bows
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Anthony
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or