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 have a WebTreeView that may or may not be using LoadOnDemand. I need a way to refresh the WebTreeView with different content after the a WebButton has been clicked.
The problem is that the WebTreeView doesn't seem to update itself even though the logic adds different nodes. How do you force the WebTreeView to rerender?
Hi,We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue (WebTreeView 1.0.1500.219, WebCombo 4.0.7200.219, WebUIFramework 3.0.5000.705 are required).Please click here to read the official press release.
You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".
Btw, I attached a simple sample scenario which used AJAX panel. Hope it helps.
Regards,Handy
Hi Shawn,
I don't suggest you to use button for your scenario. But maybe use some options control such as DropDownList. Also it could not do in client side/flypostback. You will need to do this in FullPostBack.
Attached is my simple sample to show you how i bind it with another node. Hope this helps.
Hi Shawn,I don't suggest you to use button for your scenario. But maybe use some options control such as DropDownList. Also it could not do in client side/flypostback. You will need to do this in FullPostBack.Attached is my simple sample to show you how i bind it with another node. Hope this helps.Regards,Handy
I need to use a button. Why can't I use a WebButton or any other control that calls a POSTBACK and/or AJAX callback? I tried using FullPostback and the TreeView didn't update. I also tried using a standard ASP button but got the same result.
However, I can use a WebButton with FullPostback and update a WebTreeview if it is not integrated with a WebCombo. Can you please confirm?
I don't understand about your last words. If you can make it works by using WebButton, why asp button could not work. Here is my saimple sample by using button. In fact, My dropdownlist also use FullPostback. It was only a suggestion for you. But you should be have no problem when modifying it into button.
I don't understand about your last words. If you can make it works by using WebButton, why asp button could not work. Here is my saimple sample by using button. In fact, My dropdownlist also use FullPostback. It was only a suggestion for you. But you should be have no problem when modifying it into button.Regards,Handy
The problem is that the WebTreeView when integrated with a WebCombo does not update. It does not matter if you use a WebButton, ASP Button, or the DropDownList (as you suggested). Furthermore, I am not sure why you said "don't suggest you to use button for your scenario". It shouldn't matter which control is doing the AJAX callback or a full postback.
Regardless, I worked around this bug by making a custom combo box that shows/hides the WebTreeView in a DIV. I will switch back to the WebTreeView/WebCombo after this bug has been resolved. Can you confirm that you can reproduce this bug?
Thanks for your help.
-Shawn
Ok, forgive me for what I said before.
Here, I attached my sample again. I integrated WebTreeView inside WebCombo just as you said. If it is FullPostback, it works fine. I don't get any issue at all. The content also get updated. Please let me know if you are using inside AjaxUpdatePanel or not. I tried to place them inside AjaxUpdatePanel. Then, the layout became mess up and the content would not get updated.>> Is this what you mean? (I have submitted this to our developer. They would investigate this issue)
For now, I suggest you to use our WebFlyPostBackManager. It looks like AjaxUpdatePanel. I tested it and worked fine in here. You can see my sample. Hope this helps.
Hi Shawn,Ok, forgive me for what I said before.Here, I attached my sample again. I integrated WebTreeView inside WebCombo just as you said. If it is FullPostback, it works fine. I don't get any issue at all. The content also get updated. Please let me know if you are using inside AjaxUpdatePanel or not. I tried to place them inside AjaxUpdatePanel. Then, the layout became mess up and the content would not get updated.>> Is this what you mean? (I have submitted this to our developer. They would investigate this issue)For now, I suggest you to use our WebFlyPostBackManager. It looks like AjaxUpdatePanel. I tested it and worked fine in here. You can see my sample. Hope this helps.
I missed this reply. Sorry.
Yes, the AJAX UpdatePanel leaves the WebTreeView with a weird looking layout. Please forward that to the developer. Thank you.
This sample works but will not work when placed within a user control (ASCX) which is what I need. Basically, this is exactly the functionality but I also need a loading text indicator which it appears that the WebFlyPostBackManager supports. I also need the ability to execute some JavaScript via the server-side after the callback. I assume I could use the ClientScript.Invoke method.
Are you able to make this work within a user control? I think we are close to getting a work-around.
Hi,
Here is my sample which working under UserControl. I am not sure if this is what you are really want or not. I placed WebCombo and WebTreeView inside a WebUserControl while WebFlyPostBackManager and Button are inside .aspx files. Hope this helps.
Hi,Here is my sample which working under UserControl. I am not sure if this is what you are really want or not. I placed WebCombo and WebTreeView inside a WebUserControl while WebFlyPostBackManager and Button are inside .aspx files. Hope this helps.Regards,Handy
I need the WebFlyPostBackManager in the .ASCX file so it is 100% self contained. I can't seem to get that to work.
Merry Chrismas and Happy New Year.
Here. I put WebFlyPostBackManager in .Ascx file itself. Please let me know if there is something i am missing.
Merry Chrismas and Happy New Year.Here. I put WebFlyPostBackManager in .Ascx file itself. Please let me know if there is something i am missing.Regards,Handy
Happy New Year to you as well.
Nice. At first, this seems to work but I am running into problems that's making it unusable. In your example, the ServerURL is set to the ASPX page. The user controls are reusable so they should not know anything about the parent page so I removed the ServerURL reference and it does seem to work but with issues:
1) At various times I seem to get the following message as I navigate from page-to-page after implementing the WebFlyPostBackManager with no explaination: "There is no content returned from server side. Most likely cause is server time out."
2) Another WebTreeView/WebCombo on the page does not function as expected after a flyback is performed. I click on the WebCombo and it now longer displays the underlying TreeView. However, the WebTreeView/WebCombo within the user control that was updated works as expected.
3) Using the WebFlyPostBackManager seems to be much slower than when using an UpdatePanel. Is this normal?
WebFlyPostBackListener listener = null; protected void Page_Load(object sender, EventArgs e) { listener = new WebFlyPostBackListener(this); }
Have you set correctly the WebFlyPostBackManager settings? Besides ServerURL, you also need to declare WebFlyPostBack object at the server page (.cs). e.g Please take at look on my sample. You should be able to find it.
Have you set correctly the WebFlyPostBackManager settings? Besides ServerURL, you also need to declare WebFlyPostBack object at the server page (.cs).
e.g
Please take at look on my sample. You should be able to find it.
Yes, an instance of the WebFlyPostbackListener was added to the UserControl. I didn't set the ServerURL because the control is reuseable so this reference will change from page-to-page. I tried setting it to the *.ascx but I kept getting the "There is no content returned from server side. Most likely cause is server time out." message. I do not get the message if I do not set the ServerURL property. Moreover, it does seem to work, however, the other WebTreeView/WebControl on the page doesn't open when clicked.To summarize, I have a user control with a WebTreeView and a WebFlyPostBackManager that refreshes it self after a button click. These user control is used on other pages that also contains a WebTreeView/WebCombo control as well as other controls. Aside from being very slow, it does function as expected. The issues are that I tomtimes get the "There is no content ..." message and the WebTreeView/WebCombo control does not open when clicked.
Yes, an instance of the WebFlyPostbackListener was added to the UserControl. I didn't set the ServerURL because the control is reuseable so this reference will change from page-to-page. I tried setting it to the *.ascx but I kept getting the "There is no content returned from server side. Most likely cause is server time out." message. I do not get the message if I do not set the ServerURL property. Moreover, it does seem to work, however, the other WebTreeView/WebControl on the page doesn't open when clicked.
To summarize, I have a user control with a WebTreeView and a WebFlyPostBackManager that refreshes it self after a button click. These user control is used on other pages that also contains a WebTreeView/WebCombo control as well as other controls. Aside from being very slow, it does function as expected. The issues are that I tomtimes get the "There is no content ..." message and the WebTreeView/WebCombo control does not open when clicked.
Code within User Control: <ISWebDesktop:WebFlyPostBackManager runat="server" ID="wfpbmPortNav" EnableUIMode="True"><FlyPostBackSettings PostControlState="True" PostHiddenFields="True" PostInputControls="True" PostViewState="True"> </FlyPostBackSettings> </ISWebDesktop:WebFlyPostBackManager> private WebFlyPostBackListener _listener = null; // WebFlyPostBack Listener WebFlyPostBackListener _listener = null; // WebFlyPostBack Listener /// <summary> <summary>/// Handles the page's Init event /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments</param> protected void Page_Load(object sender, EventArgs e){// Initialize WebFlyPostBackListener this._listener = new WebFlyPostBackListener(this.Page);}I already showed both of my samples with using UserControl or without it but no issues. Maybe you are missing something. It would be easier if you can send me your simple working sample for me to investigate it.
<ISWebDesktop:WebFlyPostBackManager runat="server" ID="wfpbmPortNav" EnableUIMode="True">
private WebFlyPostBackListener _listener = null; // WebFlyPostBack Listener WebFlyPostBackListener _listener = null; // WebFlyPostBack Listener /// <summary> <summary>/// Handles the page's Init event /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments</param> protected void Page_Load(object sender, EventArgs e){// Initialize WebFlyPostBackListener this._listener = new WebFlyPostBackListener(this.Page);}
private WebFlyPostBackListener _listener = null; // WebFlyPostBack Listener
/// <summary>
{
I already showed both of my samples with using UserControl or without it but no issues. Maybe you are missing something. It would be easier if you can send me your simple working sample for me to investigate it.
Your example does not duplicate my scenario. It's two user controls with the WebTreeView/WebCombo in one and the WebFlyPostBackManager in the other. Also, the ASPX page is setting various WebTreeView/WebCombo properties. In my scenario, everything is self contained within a user control. Furthermore, ANOTHER WebTreeView/WebCombo exists within the ASPX page. That is the control that does not work as expected (i.e. does not open when clicked). It depends on the context. But it would be better if you can show us the prove so we can analyze it for you. It would be nearly impossible for to give an example for various reasons. It would be easier if the WebTreeView/WebCombo was updated via an UPDATE PANEL without issues. You confirmed in this thread that it is an issue. Is this currently being fixed?
Your example does not duplicate my scenario. It's two user controls with the WebTreeView/WebCombo in one and the WebFlyPostBackManager in the other. Also, the ASPX page is setting various WebTreeView/WebCombo properties. In my scenario, everything is self contained within a user control. Furthermore, ANOTHER WebTreeView/WebCombo exists within the ASPX page. That is the control that does not work as expected (i.e. does not open when clicked).
It depends on the context. But it would be better if you can show us the prove so we can analyze it for you.
I used the UpdateControls property to just update the WebTreeView control within the WebFlyPostBackManager control and this didn't resolve the issue where the WebTreeView/WebCombo control wasn't functioning as expected. Given this, I am still afraid of what other side effects exist.=
I also noticed that other ASP controls on the page don't function as expected any more. I have other buttons that use an UPDATE PANEL to update various forms of UI. With the WebFlyPostBackManager used within the user control described above, the ASP controls that should use an UPDATE PANEL to make an AJAX Call now do a full postback. This is not an issue if the WebFlyPostBackManager is removed.
Is there an issue with using a WebFlyPostBackManager and an UPDATE PANEL in the same page? The WebFlyPostBackManager is set to just update the WebTreeView being updated. I don't see how they would conflict. It would be nice if the WebTreeView not being updated within an UPDATE PANEL bug is fixed to avoid these conflicts.
EDIT:
I replaced the WebFlyPostBackManager with an UPDATE PANEL and the performance increase is tremendous. Also, the issue with the WebTreeView/WebCombo control is resolved. Unfortunately, there is a rendering issue with the "Loading" text. This seems to be the way to go given it's much more stable and the performance is acceptable. What rendering issues did you notice in your previous test of using an UpdatePanel to update the WebTreeView?
Hello Shawn,
Yes, it seems all you conclusion is true. UpdatePanel is the best for your scenario. I will try to push our developer teams about the fix.
Hello Shawn,Yes, it seems all you conclusion is true. UpdatePanel is the best for your scenario. I will try to push our developer teams about the fix.Regards,Handy
Thank you. Can you advise on if this will make the next release?
TTT
Sorry for the late reply. Our developer has not give me the news yet. I will send him an email and will notify you again tommorow the latest.
Updates?
Sorry for the late response. Our internet connection was broken for several days. I have got news from our developer. They will try to list this fix in our next release.
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