|
-
Jun 1st, 2011, 10:54 AM
#4
Re: Simple - Take action when user types in TextBox
Hi Gary,
Sorry for not posting this but I figured out a solution that seems to work ok for me, at least for now... I ended up using the onkeydown (client side) event and setting the focus to a button, then back to the textbox again. It feels like a hack, and probably is, but it works. Put the whole thing in an UpdatePanel and you dont notice the postback; the grid filters as you would expect (just not as fast as I had hoped, but I can live with that, I think the only way to get it 'real-time' is to filter the grid using javascript, which I'm not planning to do...). The only thing is that you need to set focus to the TextBox in the Page_Load (or in my case everything is in a UserControl so I just handle it in there), otherwise something strange happens (I didn't quite figure out what but it seems like the textbox doesn't get its focus back after typing).
I'll try the onblur if I have some time later, maybe that works better. Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|