iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I need to be able to cancel a fly post back action on the client side. In our case, we have a WebCombo and when the user clears the text box, i.e., deletes what's in there (causing a load data fly post), we'd like to cancel the native fly post back so we can send our own post back to indicate a data cleared event.
Adding a custom request does not work for us as it's wrapped within the "LoadData" request and we don't want that. Additionally, we return false in this case from the OnBeforeRequest but that doesn't impact the fly request. It's still submitted. I would think returning false would cancel the request to fly post.
This is an urgent need for us and need to get this working ASAP please. Thank you.
[EDIT] I forgot to mention that a custom request works, i.e., the post back works, however, our custom server-side handler is invoked but does not affect any UpdatePanel objects on the form. This is the main issue. If the custom request via fly post back can update the update panels then we'd be fine.
[EDIT] I tried these settings yesterday and they still didn't help. My update panels did not update.
In my test, in order to update the object in the UpdatePanel, you will need to utilize the GetClientAction().RenderControl() during FlyPostBack event handler.
However, in the attached sample using all the latest assembly from WebUI 2010 R1, I could abort the flypostback event in the OnBeforeRequest event handler by returning false.
Attached is the test page I am using to test the scenario.
Hi Glenn,
Well 2010 isn't going to help right now since we haven't upgraded yet. Should be doing that next week. We just couldn't get the update done in time for our first release and we also have the grid issue to fix as you know.
For now, I wound up doing a straight __doPostBack actually in the OnBeforeRequest which is working. I made sure to format the posted id and event argument like the WebCombo and that works great. We derive our customized combo box from WebCombo, so I just overrode the post back handler and processed the request.
Would be a great feature to add to the combo, so if you can add it to the "wish list" please that would be great. Basically have an OnTextDataCleared handler and the event would occur when the user deletes/cuts the data from the edit box. It would only fire when there was a selection made already.
By the way, do you guys know if the Delete item from the context menu has an event that fires? I've searched and searched and even posted on Microsoft's forums with no answer. If you right click the combo box you get the (see attached) context menu which has the Delete item on it. The user can use this to delete the selection but there's no way to trap this event or disable it. For now we've disabled the context menu completely. I thought you guys might be able to help. Thanks Glenn.
Good to hear you could find a workaround for the build you are using.
Thank you for the feedback, I will create a feature request for the event handler. Regarding the context menu, my research could not found any event handler associated with the delete option as well.
Thanks for looking into the context menu issue. I appreciate that. Now I know I'm not nuts trying to find this info. ;)
Has the data cleared event handler request been added to 2011 R1?
Hi Yousif,
I am not sure if this handler request has been added to WebUI2011R1, I will try to collaborate with Glenn and follow up the status with our developer teams.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname