OnLoad method not firing.

2 posts, 0 answers
  1. James Daresta
    James Daresta avatar
    62 posts
    Member since:
    Sep 2009

    Posted 17 Jan 2011 Link to this post

    I am trying to use the RadListView OnLoad event to set the page index from session much like I am doing with a RadGrid. However, despite the fact I have the event handler defined the code does not fire. If I remove the code in my code behind, but leave the onload declaration on the tag it balks about it not being present. I finally went to a test project and just did a simply test below of the onload. It still will not execute. Am I missing something in how the list view onload works? Thanks.

    protected void rlvForecastCardView_Item_Load(object sender, EventArgs e)
        Response.Write("Test Text");
  2. Tsvetina
    Tsvetina avatar
    2087 posts

    Posted 18 Jan 2011 Link to this post

    Hi James,

    By design, OnLoad event of RadListView is not accessible for handling. Furthermore, it does not carry any information different from what you can access in Page_Load. That is why I suggest you to try setting the page index in the Page_Load event hander.

    I hope this helps.

    Best wishes,
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top