Blazor Tutorial : Event Handling - EP23

preview_player
Показать описание
Hey Coders,

In this #Blazor tutorial, I am showing how you map global HTML #Event attributes to #CSharp function #Razor code. And explaining the razor page cycle to populate values on the components.
Also explaining how lambda expressions could be used in order to handle dynamically generated controls.

Content -
1. @on{event} attributes
2. KeyboardEventArgs
3. preventDefault
4. ChangeEventArgs
5. Lambda Expressions

#CuriousDrive #WeLoveCoding
Рекомендации по теме
Комментарии
Автор

Thanks for watching, please share with your friends :)

CuriousDrive
Автор

couldn't find any video which explained so many events ..thanks for this video

sultanatrangari
Автор

Great lesson. Can I reqeust a lesson regarding Input Select with binding? I'm having problems using @bind + @onchange event. I read I can't use @onchange even because by default @bind already use @onchange. I just don't know how to fire the event. I have two input select. Example: When I click the first Input Select I want the @onchange event to fire and run my async function that loads the data to the 2nd Input Select. I managed to load my async function but using @onblur instead. The issue with @onblur it will only fire when it loses focus. Is there an elegant way to fire @onchange event? Anyway thank you very much for the free lessons. Learned a lot from you. 👍🙏

coolwaterdvr
Автор

Hi Thanks for your very clear explaination of event handling.

I have one questing, after entering data into text field, i want to press enterkey/tabkey to load data from db based on the textbox data.

Thanks for your help

faridulhuk
Автор

in my case preventdefault not working with condition like tab or enter is preventedfault in input

trungngo
Автор

Very excellent, and very helpful.
Thank you very much.

talkathiriify
Автор

Hello, your videos are being a great learning experience for me, thank you very much !!!
It would be like you to make a video with the explanation about masks in inputs, masks for money would be very interesting.

Sorry for my bad English...

CHACAL
Автор

Very nice video, but could you make one on DragEvents? Thank you

Alexandrecapelas
Автор

These videos are really good, however, you need to cut out the background noise from your keyboard and mouse, when listening on head-phones it booms through and is very distracting.

markharby
Автор


I'm going crazy ... can you prove if they work in your project?

Example:
@ontimeupdate on the <video> tag

Thanks so much!

MrDaaka