Tuesday, June 29, 2010

Because I always forget proc names ...

protected void Page_PreInit(object sender, EventArgs e)
string msg = "Fires 1";

protected void Page_Init(object sender, EventArgs e)
string msg = "Fires 2";

protected void Page_Load(object sender, EventArgs e)
string msg = "Fires 3";

protected override void OnPreRender(EventArgs e)
string msg = "Fires last";

Thursday, June 17, 2010

WebDataGrid Numeric Pager Truncates List of Page Numbers

The WebDataGrid Numeric Pager was truncating the list of page numbers after reaching the end of the one line (table width) allocated for the pager display, as shown in the example below. There were scroll bars for the height and width of the data records, but no way to scroll past the end of the line of numbers and see page 21 in this example:

My solution was to create the following Css

<style type="text/css">
.tallPager {
height: 100px;
word-wrap: break-word;

and apply it to the Paging property

<ig:Paging PageSize="25" PagerMode="Numeric" EnableInheritance="True"
PagerCssClass="tallPager" />


The following shows the pager section for a different table, with the PagerCssClass ="tallPager"

Note: Word wraps can occur in the middle of a page number like 108:

Fortunately, I have a higher class of users and they were able to deal with that.