Solved

Finding a control inside listview

Posted on 2012-12-30
1
398 Views
Last Modified: 2012-12-31
I have a listview like this:

<asp:ListView ID="lvSubscription" 
 ....
    <ItemTemplate>
         <td style="text-align:center" width="295" >
             [b] <telerik:RadTreeView ID="RadTreeView1"  runat="server">
               
              </telerik:RadTreeView>[/b]
          </td>
    </ItemTemplate>
</asp:ListView>

Open in new window


How can I find that listview when in page_load? This gives me null. Is this because when the page loads, the listview is not created yet??

  if (!Page.IsPostBack)
     RadTreeView tv = (RadTreeView)lvSubscription.FindControl("RadTreeView1");

Open in new window

0
Comment
Question by:Camillia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 38731944
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question