RadGrid for ASP.NET

RadGrid Send comments on this topic.
PageSizeChanged Event
See Also 
Telerik.WebControls Namespace > RadGrid Class : PageSizeChanged Event


Fires when PageSize property value has been changed.   
 

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Event PageSizeChanged() As GridPageSizeChangedEventHandler
Visual Basic (Usage)Copy Code
Dim instance As RadGrid
Dim handler As GridPageSizeChangedEventHandler
 
AddHandler instance.PageSizeChanged, handler
C# 
public event GridPageSizeChangedEventHandler PageSizeChanged()
 

Remarks

The PageSizeChanged event is rised when the value of the property PageSize is changed. You can cancel the event if the new PageSize value is invalid and it will not be saved. For example:

            protected void RadGrid1_PageSizeChanged(object source, GridPageSizeChangedEventArgs e)
{
if(e.NewPageSize < 1)
e.Canceled = true;
}

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also