The first of the new features that we added for this release is an option to specify a new Conditional load more for the hierarchy in RadGrid. Currently the grid has three load modes: Server, ServerOnDemand and Client. With Server load mode all child table views are initially databound when the parent table view databinds respectively. ServerOnDemand load mode only binds the child table views when they are expanded on the server and the Client load mode initially binds all table views but subsequent expand / collapse operation happen only on the client. The new Conditional load mode is combination of ServerOnDemand and Client load modes behavior. It works in the following way: when you initially try to expand and item that has never been expanded before, the grid performs a postback and databinds the respective child table view. Subsequent expand / collapse operations happen only exclusively on the client-side without the need to postback again to the server. This improves performance and provides better scalability for large number of records. This state is of course preserved in the ViewState of the control so any operation that recreates the structure of the grid on postback will reset this behavior to its initial state and a postback will be required again when initially expanding an item.
You can set the new load mode from the MasterTableView’s HierarchyLoadMode property:
More information of the new load mode can be found in the following online demo and help topic.
Let us know what you think of the new feature and whether it will improve the overall responsiveness and performance of your applications.
Yet another great improvement in the RadGrid is related to the MultiColumn headers feature of the control. This has been a big hit since its initial release and now the multicolumn headers got extended support for almost all operations and actions that a user can perform on the client-side. By adding support for client-side show / hide operations and header context menu in the grid, the MultiColumn headers provide even more options for user interactions with control.
Simply enable the header context menu of the grid with options to show and hide the columns and the MultiColumn headers cells will gracefully scale to accommodate the showing or hiding of the columns in the control.
Feel free to give this feature a try in the following online demo.
One more feature in release is the GridAutoCompleteColumn of RadGrid. It is based on our RadAutoCompleteBox control, which helps users with entering their values by providing list of preset data. The column also uses this control for its filter editor, for making the filtering even more convenient.
The GridAutoCompleteColumn uses the provided DataSource to populate all values in a dropdown that are shown when the user starts typing, it has all the settings that are already available in the RadAutoCompleteBox.
To illustrate the usage of this new column I will be using a sample grid that contains two columns declared as:
Marin Georgiev is a software developer in one of Telerik's ASP.NET AJAX Teams. Since he joined the company in 2010 he's been working on different client-side features and extending the mobile support of the controls. His interests include mobile and web development as well as integration with Sharepoint 2010.
Subscribe to be the first to get our expert-written articles and tutorials for developers!