New to Telerik UI for Blazor? Download Free 30-day trial

Grid - Events

Mountain-100 Silver, 38$3,399.997/1/2018
Mountain-100 Silver, 42$3,399.997/1/2018
Mountain-100 Silver, 44$3,399.997/1/2018
Mountain-100 Silver, 48$3,399.997/1/2018
Mountain-100 Black, 38$3,374.997/1/2018
Mountain-100 Black, 42$3,374.997/1/2018
Mountain-100 Black, 44$3,374.997/1/2018
CONSOLE Clear log
Select event fired. The following products have been selected:
    On State Init event fired.
    • Events.razor
    • ProductService.cs
    • ProductBindingModel.cs
    Loading the demo source code...please wait.

    Description

    The Grid exposes a wide range of events which you can use to provide some custom logic. This online demo shows a Grid with its most commonly used events set up and an event log where you can see their firing order and how they interact with each other. When the page is loaded you can see that the OnStateInit is fired. This means that the state of the component is initialized. You can also you that event to provide a custom initial state where the Grid is sorted and filtered. When you click on a row a few events are fired - the OnRowClick, the SelectedItemsChanged and the OnStateChanged in that succession. You can use the OnStateChanged event handler to save the state of the component in the LocalStorage, for example.

    Support & Learning Resources

    An error has occurred. This application may no longer respond until reloaded.
    Reload