bakes82 167 Posted January 7, 2025 Posted January 7, 2025 The attribute should allow for a delay to be set before the post back. EX if you want to have it on a textbox it triggers on every letter instead of maybe 1second after input/change.
softworkz 5065 Posted January 7, 2025 Posted January 7, 2025 You can implement a delay on the server side: Once you get the postback call, start a timer and return immediately When the timer fires, start your data retrieval and when it's completed, you can raise the update event to update the client UI Or you can also start the data retrieval when you get the postback, but still return from the method and when the data retrieval is complete, you can upate the client side via update event. If you get another postback before the retrieval is ended, you can cancel the current one (without waiting for the cancellation to complete) and start a new retrieval instead, again with delayed UI update when the retrieval is complete. That's pretty easy to do and gives you full control over the behavior.
softworkz 5065 Posted January 7, 2025 Posted January 7, 2025 Updating the UI is demoed in the new Plugin UI Demo project - when you press these buttons:
bakes82 167 Posted January 8, 2025 Author Posted January 8, 2025 I'd rather have the event trigger for "textboxes" be configurable from keyup, to change. That way the events not triggered n times as they continue to type in things. You seem to be thinking this is being used on a button, but its being used on input boxes. So when I say delay, I want the delay before it triggers the change/keyup events. This is where it would be great if we could easily add other packages as part of our plugins.
softworkz 5065 Posted January 8, 2025 Posted January 8, 2025 16 hours ago, bakes82 said: You seem to be thinking this is being used on a button, but its being used on input boxes No, I am talking specifically about input in text boxes with AutoPostback. At the very beginning I had a delay, but this has lead to consistency issues. The way I have described above is working fine and it's being used like that in several of our own cases.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now