But there are usually cases where you have to go a little further and dig a little bit deeper than the standard scenarios.In this article I am going to describe how you can customize the default values (10, 20 and 50) of the drop-down list in the paging element of Rad Grid.For example the command name is "Do Insert" , then Rad Grid will fire Item Command Event and the event argument of the handler function (generally the "e" variable ) will have the same command name , i.e. By default it is fired by image buttons in the header item when Sorting is enabled.The argument for the Sort Command must be the Data Field name for the Data Field to be sorted.When an event bubbles from a child control, Rad Grid will fire Item Command event. Item argument will be a reference to the Item which is the parent of the control raised the bubble event (i.e. Some command names are predefined in Rad Grid and the control will respond to them automatically (like the value of Rad Grid. Page Command Name) and command various arguments for different paging operations like the string "Next","Prev" or "First".
Event bubbling enables events to be raised from a more convenient location in the controls hierarchy and allows event handlers to be attached to the original control as well as to the control that exposes the bubbled event. The integrated paging in Rad Grid is also based on commands, with Command Name "Page" (or Rad Grid. Rebind() End Sub Protected Sub grd Name_Need Data Source(sender As Object, e As Telerik. Grid Need Data Source Event Args) Handles grd Name. Data Source = source ' your datasource type grd Name. You can get a fourth option by specifying a value different than the three standards for the Page Size attribute, ie. The drawback in that case is that it is the initial page size.Certainly, the available choices could be more flexible or even a little bit more intelligent.