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

OnLoad method not firing.

1 Answer 130 Views
ListView
This is a migrated thread and some comments may be shown as answers.
James Daresta
Top achievements
Rank 1
James Daresta asked on 17 Jan 2011, 04:56 PM

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");
}

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Jan 2011, 05:13 PM
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,
Tsvetina
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.
Tags
ListView
Asked by
James Daresta
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or