LoadOnDemand Issues

5 posts, 0 answers
  1. David Bows
    David Bows avatar
    50 posts
    Member since:
    Dec 2005

    Posted 21 Aug 2007 Link to this post

    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
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 22 Aug 2007 Link to this post

    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
  3. Anthony
    Anthony avatar
    4 posts
    Member since:
    Dec 2007

    Posted 26 Feb 2008 Link to this post

    I am having the same issue. Was there ever a resolution on this?
  4. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 27 Feb 2008 Link to this post

    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
  5. Anthony
    Anthony avatar
    4 posts
    Member since:
    Dec 2007

    Posted 27 Feb 2008 Link to this post

    That worked great! Thanks for posting the resolution.
Back to Top