Home - Forums-.NET - FlyTreeView (ASP.NET) - UpdatePanel + FlyTreeview + Chrome

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

UpdatePanel + FlyTreeview + Chrome
Link Posted: 29-Jan-2010 02:58
I have my treeview inside an update panel.  It works fine within most browsers except for Chrome.
Chrome only reacts the first time I click a node.  After the first click (i.e. after the first updatePanel postback), nothing happens anymore... (no reaction on expand, node click, ...).

After some investigation, I found out that it works fine when I place the treeview directly under the ContentTemplate of the updatePanel.  When surrounding the treeview with another html element (a span, a table column, a div, ...), the treeview stops responding after the first updatePanel postback.

Does anybody has the same problem ?  And how can this be solved ?
I have a table with 1 row and 2 columns.  The first column is for the treeview, the second for a gridview.  I have to keep my table.
Link Posted: 29-Jan-2010 03:39
Try to set FlyTreeView.ForceAjaxRenderer to true.
See if it helps.
Link Posted: 29-Jan-2010 05:36
Tried that already and tried it again, but it doesn't help.
Link Posted: 03-Feb-2010 03:51
How can this problem be solved ?
Waiting for an answer...
Thx
Link Posted: 10-Mar-2010 05:18
Can someone help us with this problem ?
We posted op January 29th and didn't receive a solution yet.
Link Posted: 16-Mar-2010 11:55
Yes, sorry for keeping you waiting.
This is a known issue with Chrome, we're preparing a possible fix right now.
Link Posted: 16-Mar-2010 16:04
Fixed version is available for download:
http://www.9rays.net/Downloads.aspx?CategoryID=62
Link Posted: 17-Mar-2010 01:10
We have bought a developer license some time ago.  As we have developed a lot ourselves, we can not just install the new fixed version.
Please show us the lines that have to be modified to fix the Google Chrome bug.
Thanks
Link Posted: 17-Mar-2010 02:45
Do you have source code of the control?
This is a change to FlyControlCommon.cs.
Find and replace the following method:
        
public void Render(HtmlTextWriter writer)
{
    FlyDebug.Assert(finalsPreRegistered, 38102);
    if (RenderAJAX)
    {
        using (TextWriter tempWiter = new StringWriter())
        {
            // render styles to tempWriter (Google Chrome issue workaround)
            _stylesRegistrator.RenderStyles(tempWiter);

            // render js data
            JavascriptBuilder jsBuilder = new JavascriptBuilder();
            _stylesRegistrator.RenderEqualsJavascript(jsBuilder);
            _control.RenderStartupScript(jsBuilder);
            ClientRuntimeLoadRenderer.RenderAJAX(writer, _control.Page.ClientScript, jsBuilder.ToString(), _context);

            // redner style to actual writer
            writer.Write(@"<style type=""text/css"">");
            writer.Write(tempWiter.ToString());
            writer.Write("</style>");
        }
    }
}
Link Posted: 17-Mar-2010 03:04
Yes, we have the source code and the fix works perfect!  Great!!
Thanks a lot.

Remark: we have one remaining question open on the licensing forum.