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
Hello,
I have a Label control which i want to update wih other intersoft controls. But it seems that the Non-intersoft controls are not getting updated after Flypostback. Can you please tell me how can i achive this??
Thanks,
Huzefa Katwarawala
Please see my attached sample. Sometimes, it requires more settings for non-inetrsoft controls such as ASP.Net control.
Regards,Handy
Hello Handy,
Can you please explain me what you are doing in this sample you provided?
Sure. I write back (update) the label after choose an Item in WebCombo. It works well by using WebFlyPostBackManager. If you have a trouble, please provide a simple runable sample that replicates the issue. I will try to modify and make it work for you.
Hi handy,
This method does not seem to work when we're on WebGrid UpdateRow event.
I have attached a modified sample for you to look at. Real-life situation is I need to update a total when users update a value in the grid. I cannot use the Grid's total/aggregate feature. They are not suitable for the purpose I am trying to achieve.
Hi,
You will need to have additional code before set the text label. Hope this helps.
WebGrid1.ClientAction.RefreshModifiedControls(); WebGrid1.ClientAction.RenderControl(Label1);
Thank you. It does help.
I tried removing WebFlyPostbackManager and the listener, and this code piece that you gave for the earlier example and it still worked.
With WebGrid1 '.AspNetAjaxSettings.CreatedAtRuntime = True '.AspNetAjaxSettings.UpdateControlScripts = True '.AspNetAjaxSettings.UpdateControlStyles = True .ClientAction.RefreshModifiedControls() .ClientAction.RenderControl(Label1) End With
Can you tell me what is the role of WebFlyPostbackManager and the aspnetajaxsettings here? Do I need them?
Hello Rudy,
WebGrid has Ajax mechanism itself. Please remember that WebFlyPostBackManager has similiar functionality with AjaxUpdatePanel. One of its function is to prevent the page FullPostBack in UI and persist all the updates with it.However, in WebGrid, if you only use FlyPostBack process in the WebGrid, using WebGrid ClientAction might be enough. In this scenario, the page also does not require FullPostBack at all.You also don't need AspNetAjaxSettings all the time. This only additional settings to ensure missing styles and scripts during the update. It also would help some update states.If the changes can persist well without those settings, you can comment out the code.
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