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

[Solved] Changing the style of the Textbox that holds the current page index when using advanced paging

2 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
The Dude
Top achievements
Rank 2
The Dude asked on 28 Feb 2008, 10:23 PM
The textbox seems to have a size of one and i cannot get it to widen or affect the style in any way.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 29 Feb 2008, 08:43 AM
Hi Jeffrey,

You can use ItemCreated to modify this. Here is an example:

 void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridPagerItem)
        {
            RadNumericTextBox RadNumericTextBox1 = (RadNumericTextBox)e.Item.FindControl("ChangePageSizeTextBox");
            RadNumericTextBox1.Width = Unit.Pixel(200);
        }
    }

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
The Dude
Top achievements
Rank 2
answered on 29 Feb 2008, 04:16 PM
Thanks that worked perfectly
Tags
Grid
Asked by
The Dude
Top achievements
Rank 2
Answers by
Vlad
Telerik team
The Dude
Top achievements
Rank 2
Share this question
or