User Profile & Activity

Shawn August Member
Page
of 19

What is the link to the installer? I can't use the R2 yet until we upgrade and I need to install the previous version on my machine.

Posted: January 5, 2010 10:17 AM

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?

Posted: January 5, 2010 9:00 AM

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.

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.

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?
Posted: January 4, 2010 10:38 AM

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?

Posted: December 29, 2009 9:53 AM

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.

Posted: December 15, 2009 5:27 PM

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,

Great to hear that the problem solved :)

Best Regards,

Gordon Tumewu

 

Yes, thank you.

Hi,

Could you inform me the 2 installer size? I am affraid that the download process isn't complete.

Best Regards,

Gordon Tumewu

 

The Intersoft WebUI Studio 2009 R1 SP1 Web.exe file is 3,158,016 bytes on disc.

However, this finally worked and I was able to install so I assume something was fixed.

Posted: December 9, 2009 1:35 PM

This behavior is designed in WebTreeView for performance concern. WebTreeView will not populate the Nodes object recusively during onload. It will populate the Nodes object during certain event such as expand. Or you could manually trigger it using Get("Nodes") or GetArrayNodes.

 

Thank you. As a workarond, I call the GetArrayNodes method to force the loading of the Nodes collection. This allows me to use the Nodes collection like other TreeView implementations. The documentation should be updated to reflect that this collection isn't loaded for performance reasons.

 

Thanks for the help!

Posted: December 9, 2009 1:33 PM

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

All times are GMT -5. The time now is 7:48 AM.
Previous Next