hi ..

I want to know how to add my function to the corresponding function and do it.

Are you using Radzen Studio? If yes - use the Load event of the page to add statements executed during OnInitializedAsync.

radzen studio .. program is in use

Then my answer is adequate. Use the Load event of the desired page.