Hi, I try to use the RadMaskedTextbox, but I run into several issues. Because I use several RadMaskedTextboxes in one user control and this user control is rendered 4 times on my page, I have quit a view of these TextBoxes. But for starters, I try to add a onClientside Blur event. This I do in the codebehind (page_Load event):
tbxWachttijdEind.ClientEvents.OnBlur = "CalcWachtBlokken('" + tbxWachttijdStart.ClientID + "','" + tbxWerkTijdEind.ClientID + "')"; |
Oh, BTW, I use these textboxes to have the user only input a valid time between 0 and 23 and 15,30 or45 minutes. This is working perfectly.
So what I try to do is calculate the time difference between two times. The problem is the onblur event does not fire when I leave the textbox, but i fires on page_load.
An other thing is, I cannot get the values of the controls in my js-code. I tried the get_value() method, but I just get an js-errormessage.
Any suggestions?
Never mind about the get_value issue. I used the $get(objectId) function, where I should use the $find(objectId) function. But the main problem still exists. OnBlur firing when the page load instead of when leaving the textbox.