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

How to find control in RadDataPager

1 Answer 79 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
shemein
Top achievements
Rank 1
shemein asked on 23 May 2014, 05:14 AM
I am trying to use RadDataPaged as a seprated control  in the role of the navigation of my web pages so I just have the RadDataPager and its fields and a label that in Paer template. I need to find that table text but the problem is when I am using Label lbl=RadDatapager1.FindControl("Label1") as Label in Page_load  codes it returns null. I don't  know what should I do? Please help...

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 23 May 2014, 08:38 AM
Hi zahra,

Please try the below C# code snippet to access the Label inside the PagerTemplate of RadDataPager.

C#:
Label labelControl = (Label)RadDataPager1.Controls[0].FindControl("Label1");

Thanks,
Princy.

Tags
DataPager
Asked by
shemein
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or