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

When using AlwaysVisible in radgrid i can´t access controls in pager

0 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sergio
Top achievements
Rank 1
Sergio asked on 19 May 2017, 08:48 AM

When i use AlwaysVisible in PagerStyle for a RadGrid i canĀ“t Access controls of the pager in databound.

 

<MastertableView  PagerStyle-AlwaysVisible="true">

protected void grdListing_ItemDataBound( object sender, GridItemEventArgs e )

{

    if (e.Item is GridPagerItem)
            {
                GridPagerItem pager = (GridPagerItem)e.Item;
                Label lblGoToPageLabel = (Label)pager.FindControl("GoToPageLabel");
                lblGoToPageLabel.Text = "mytext";

     }

}

FindControls returns null.

 

if AlwaysVisible is false FindControl returns a value.

How can i Access controls if AlwaysVisible es true?

 

Thanks

Sergio Saiz

 

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Sergio
Top achievements
Rank 1
Share this question
or