This is a migrated thread and some comments may be shown as answers.

Working with RadTreeView under proxy

8 Answers 160 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yuval Dagai
Top achievements
Rank 1
Yuval Dagai asked on 20 Jun 2010, 05:47 PM
HI,

We are using the RadTreeView in our web applicastion.
When our customers use our web application under proxy server (wich change our web application path to be a sub domain of the proxy - i.e. http://WebApp.com -> http://proxy.com/WebApp/) web resources and script resources fail to download to client.
The RadTreeView is calling web resources and script resource in root reltaive manner (i.e. src="/WebResource.axd?querystring_Information").
Because of the proxy the root is interperted by the client to be the proxy and not the web application.
Therefore, the web resources or scripts are not downloaded to client and the application breaks.

We tried to handle this using an HttpModule which adds a Filter to the Response and fix all places with root relative paths using regex.
This works good and we get the resources downloaded to client correctly.
But now we encounter a problem that the tree doesn't respond to expand click.
When debugging the click scenario we see that an Ajax request is sent to server and get back to client with an error message like this:
"Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled."

Is there a way we can use the Ajax Rad controls under proxy without the need for HttpModule rewrite procedure?
Can we tell the Rad Controls to resolve to client url so all web resources will be downloaded from the web app root and not the proxy root?

8 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 23 Jun 2010, 03:53 PM
Hi Yuval,

This scenario is not possible without URL rewriting of some kind - RadControls can only know about the URL of their server. You are on the right track with the URL rewriting, but you may need to rewrite part of the content of the files if they contain URLs.

If you record the browser traffic with FiddlerCap (with and without the proxy) and send the recorded sessions, we'll try to point you to what is causing the problem.

All the best,
Dimitar Milushev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Yuval Dagai
Top achievements
Rank 1
answered on 29 Jun 2010, 02:22 PM
Hi Dimitar,

Thanks for the answer.
We have made some tests to see what is going on and we have 2 main issues that we need your guidance:

1. There are some cases that there are calls for WebResource found using Fiddler that were skipped our Response.Filter that we set in our HttpModule. I guess those are webResources that are injected using a Response.Filter that is somehow been called after our filter. Is this may be a good guess? and if yes what can we do about it to ensure our filter is the last to be called?

2. As you said our solution should be based on Response.Filter and HttpModule but our error stems from this - the error message states clearly that the AJAX call fails due to the use of Filter or HttpModule. It seems that we are in catch 22 situation... :-(

Is there a way to get past this?
Thanks,
Yuval
0
Dimitar Milushev
Telerik team
answered on 01 Jul 2010, 03:47 PM
Hi Yuval,

The error is not caused 'directly' by the Filter - the problem is that the server response cannot be read by client-side code of ASP.NET AJAX and this can often happen if the response has been improperly modified. Sometimes there are other reasons - the server returns an error page instead of the AJAX response which results in the same ParserErrorException. You should inspect the content of the response to see if it's an error message or if you could spot what is wrong with the AJAX response (you can compare it to a response to the same request with the Filters turned off).

As for the WebResource requests - keep in mind that some of the CSS files of the controls (served as WebResources) may contain URLs pointing to other WebResources (images) so you should be rewriting those too.

Regards,
Dimitar Milushev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Yuval Dagai
Top achievements
Rank 1
answered on 07 Jul 2010, 04:14 PM
Hi Dimitar,

Following are Fiddler recorded sessions made for both conditions:
  1. Through proxy - Clicking on tree node + sign to expand fail. The doesn't expand and no error displayed (I found the error when debugging using Developper Tools). We apply Response.Filter that correct "/WebResource", "/ScriptResource" and "/App_Themes" in the OnPrerender of the page.
  2. Direct access - Clicking on tree node + sign to expand scceed the node expanded correctly.

We used IE8 browser on WinXP SP3.
Proxy is Apache 2.2

Session recorded in proxy mode with response filter set:
--------------------------------------------------------------

POST http://yuvald:8080/ob/Catalogs/CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077173739&__ISFRAME=1&ClearPage=1&Clear=1 HTTP/1.1
Accept: */*
Accept-Language: en-US,he-IL;q=0.5
Referer: http://yuvald:8080/ob/Catalogs/CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077173739&__ISFRAME=1&ClearPage=1&Clear=1
x-microsoftajax: Delta=true
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Cache-Control: no-cache
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)
Host: yuvald:8080
Content-Length: 1583
Connection: Keep-Alive
Pragma: no-cache
Cookie: PrerequisitesChecked=1; UserContext=AccessibleMode%ACfalse; organization=Oblicore; RadEditorGlobalSerializeCookie=[txtNoteModules]-[]#[txtNoteToolbars]-[]#[wzBaseMetricWizard_OSEditor_ObjectiveStatementRTEditorModules]-[]#[wzBaseMetricWizard_OSEditor_ObjectiveStatementRTEditorToolbars]-[]#[ucMainContainer_tbContainer_OSEditor_ObjectiveStatementRTEditorModules]-[]#[ucMainContainer_tbContainer_OSEditor_ObjectiveStatementRTEditorToolbars]-[]#; ASP.NET_SessionId=evyls4552bm2hm3i21m0hlja; ASPSESSIONIDSSACQASR=KKJBMGECLPNEGJKGDGOOOBGF

mtCatalogExplorerTree%24ScriptManager1=mtCatalogExplorerTree%24mtCatalogExplorerTree%24treeModularityTreePanel%7CmtCatalogExplorerTree%24treeModularityTree&__WID=201077173739&__EVENTTARGET=mtCatalogExplorerTree%24treeModularityTree&__EVENTARGUMENT=%7B%22commandName%22%3A%22Expand%22%2C%22index%22%3A%220%3A0%22%7D&hdnIsFullscreen=false&Current_URL=CatalogExplorerTree.aspx%3FRecordId%3D200%26RecordType%3DROOT%26IsSearchMode%3DN%26__WID%3D201077173739%26__ISFRAME%3D1%26ClearPage%3D1%26Clear%3D1&FormName=CatalogExplorerTreeForm&RecordID=200&StateData=&__DIRTY=0&__SENTITY=Catalog&__ISPOPUP=0&__ISWIZARDSTEP=0&__ISRETURN=0&__VIEWSTATE=&__EVENTVALIDATION=%2FwEWEAL%2BraDpAgKjjYOEAQLkwqDoDwKI16hLAsnSwY4MAvvj7LsCAru%2F27IEArzxhIUPAojymNkHAvONmZUOAt738aENAo6f3BcC94O6qgICsNq5oA0C%2BpHArg8ChMqF6wdZzAK%2BXtZ89CLogWcLK4dTxnAS2g%3D%3D&selectedID=&mtCatalogExplorerTree_treeModularityTree_ClientState=%7B%22expandedNodes%22%3A%5B%220%3A0%22%5D%2C%22collapsedNodes%22%3A%5B%5D%2C%22logEntries%22%3A%5B%5D%2C%22selectedNodes%22%3A%5B%220%22%5D%2C%22checkedNodes%22%3A%5B%5D%2C%22scrollPosition%22%3A0%7D&mtCatalogExplorerTree%24treePane=%7B%22originalWidth%22%3A%22%22%2C%22originalHeight%22%3A%22%22%2C%22width%22%3A279%2C%22height%22%3A660%2C%22collapsed%22%3Afalse%2C%22collapsedDirection%22%3A1%2C%22scrollLeft%22%3A0%2C%22scrollTop%22%3A0%2C%22expandedSize%22%3A0%2C%22contentUrl%22%3A%22%22%2C%22minWidth%22%3A20%2C%22maxWidth%22%3A2147483647%2C%22minHeight%22%3A20%2C%22maxHeight%22%3A2147483647%2C%22locked%22%3Afalse%7D&__ASYNCPOST=true&RadAJAXControlID=mtCatalogExplorerTree_amTree
HTTP/1.1 200 OK
Date: Wed, 07 Jul 2010 14:38:00 GMT
Server: Microsoft-IIS/7.0
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/plain; charset=utf-8
Expires: -1
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Content-Length: 7451
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive

1866|updatePanel|mtCatalogExplorerTree_mtCatalogExplorerTree_treeModularityTreePanel|<div id="mtCatalogExplorerTree_treeModularityTree" class="RadTreeView RadTreeView_Office2007 " ExpandDelay="0">
 <!-- 2008.1.515.20 --><ul class="rtUL rtLines">
  <li class="rtLI rtFirst rtLast"><div class="rtTop rtSelected">
   <span class="rtSp"></span><span class="rtMinus"></span><div title="Service Portfolios" class="rtIn">
    <div class="rtTemplate">
     <table style="display:inline;">
      <tr>
       <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">Service Portfolios</SPAN></td>
       <td></td>
      </tr>
     </table>

    </div>
   </div>
  </div><ul class="rtUL">
   <li class="rtLI rtLast"><div class="rtBot">
    <span class="rtSp"></span><span class="rtMinus"></span><img src="../App_Themes/PaperPlan/Images/icon_catalog_sm.gif" alt="SanityAUTO" class="rtImg" /><div title="SanityAUTO" class="rtIn">
     <div class="rtTemplate">
      <table style="display:inline;">
       <tr>
        <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">SanityAUTO</SPAN></td>
        <td></td>
       </tr>
      </table>

     </div>
    </div>
   </div><ul class="rtUL">
    <li class="rtLI rtLast"><div class="rtBot">
     <span class="rtSp"></span><img src="../App_Themes/PaperPlan/Images/icon_folder_cat_small.gif" alt="SanityAUTO SC" class="rtImg" /><div title="SanityAUTO SC" class="rtIn">
      <div class="rtTemplate">
       <table style="display:inline;">
        <tr>
         <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">SanityAUTO SC</SPAN></td>
         <td></td>
        </tr>
       </table>

      </div>
     </div>
    </div></li>
   </ul></li>
  </ul></li>
 </ul><input id="mtCatalogExplorerTree_treeModularityTree_ClientState" name="mtCatalogExplorerTree_treeModularityTree_ClientState" type="hidden" />
</div>|69|updatePanel|mtCatalogExplorerTree_amTreeSU|<span id="mtCatalogExplorerTree_amTree" style="display:none;"></span>|0|hiddenField|__EVENTTARGET||0|hiddenField|__EVENTARGUMENT||160|hiddenField|__EVENTVALIDATION|/wEWEAL+raDpAgKjjYOEAQLkwqDoDwKI16hLAsnSwY4MAvvj7LsCAru/27IEArzxhIUPAojymNkHAvONmZUOAt738aENAo6f3BcC94O6qgICsNq5oA0C+pHArg8ChMqF6wdZzAK+XtZ89CLogWcLK4dTxnAS2g==|28|asyncPostBackControlIDs||mtCatalogExplorerTree$amTree|0|postBackControlIDs|||163|updatePanelIDs||tmtCatalogExplorerTree$mtCatalogExplorerTree$treeModularityTreePanel,tmtCatalogExplorerTree$mtCatalogExplorerTree$dgSearchDataPanel,tmtCatalogExplorerTree$amTreeSU|0|childUpdatePanelIDs|||98|panelsToRefreshIDs||mtCatalogExplorerTree$mtCatalogExplorerTree$treeModularityTreePanel,mtCatalogExplorerTree$amTreeSU|2|asyncPostBackTimeout||90|119|formAction||CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077173739&__ISFRAME=1&ClearPage=1&Clear=1|69|pageTitle||CA Oblicore Guarantee� 7.0 &#155;&#155;&#155; Service Portfolios Pane|106|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2gmK-37hQnEo7T9gGMf0bhj0&t=ffffffffab1b2485|149|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2jwhMWI5s3puWIVF7_3HYFRIynMDPJ7Pt-4C83BZ2qiX4VkNjSaKElmllY2iH55LtA1&t=ffffffffab1b2485|149|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2h8kObLpPYH4aHhHf9z2DnF-kVa9HGFRoVD4lKOJMENBI-H7GLWZLFcH5GGLR49f4Y1&t=ffffffffab1b2485|128|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pl9CAFfPo9r5Fr4S50nYU5FQmvjK1VCq7CQnqbWBDgoy-_ypjX-4EixABHCaAnBhFA2&t=ffffffffab1b2485|106|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pm9R5KZU6oRd84CGGODVFvF_FWI7x2nCjsNiMq9Pief70&t=ffffffffab1b2485|90|scriptStartupBlock|ScriptContentNoTags|Telerik.Web.UI.RadTreeView._preInitialize("mtCatalogExplorerTree_treeModularityTree","0");|81|scriptStartupBlock|ScriptContentNoTags|Telerik.Web.UI.RadTreeView._clearLog("mtCatalogExplorerTree_treeModularityTree");|1287|scriptStartupBlock|ScriptContentNoTags|Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTreeView, {"_postBackOnCheck":true,"_postBackOnClick":true,"_postBackOnExpand":true,"_postBackReference":"__doPostBack(\u0027mtCatalogExplorerTree$treeModularityTree\u0027,\u0027arguments\u0027)","_scrollPosition":0,"_skin":"Office2007","_uniqueId":"mtCatalogExplorerTree$treeModularityTree","attributes":{"ExpandDelay":"0"},"clientStateFieldID":"mtCatalogExplorerTree_treeModularityTree_ClientState","collapseAnimation":"{\"type\":12,\"duration\":100}","expandAnimation":"{\"duration\":100}","nodeData":[{"value":"200","text":"Service Portfolios","expanded":1,"items":[{"value":"201","text":"SanityAUTO","expanded":1,"items":[{"value":"202","text":"SanityAUTO SC","checkable":0,"attributes":{"FolderItemId":"1148","EntityId":"1147","EntityType":"FOLDER","ChildCount":"0"}}],"expandMode":1,"checkable":0,"attributes":{"FolderItemId":"1146","EntityId":"1145","EntityType":"CATALOG","ChildCount":"1"}}],"selected":1,"expandMode":1,"checkable":0,"attributes":{"EntityId":"200","EntityType":"ROOT","ChildCount":"1"}}],"selectedIndexes":["0"]}, {"contextMenuShowing":ShowTreeContextMenu,"nodeClicking":BeforeNodeSelectHandler,"nodeDoubleClick":OnDoubleClick}, null, $get("mtCatalogExplorerTree_treeModularityTree"));
});
|2043|scriptStartupBlock|ScriptContentNoTags|Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "mtCatalogExplorerTree_treeModularityTree",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_btnSearch",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_dgSearchData",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_btnApply",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_dgSearchData",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_amTree",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":["../App_Themes/PaperPlan/AccessibleMenu.css","../App_Themes/PaperPlan/Buttons.css","../App_Themes/PaperPlan/custom.css","../App_Themes/PaperPlan/DocumentRepository.css","../App_Themes/PaperPlan/EditableLink.css","../App_Themes/PaperPlan/fileUpload.css","../App_Themes/PaperPlan/general.css","../App_Themes/PaperPlan/Reports.css","../App_Themes/PaperPlan/SearchPanel.css","../App_Themes/PaperPlan/StickyNote.css","../App_Themes/PaperPlan/TabContainer.css","../App_Themes/PaperPlan/topframe.css","../App_Themes/PaperPlan/XmlPrettyPrint.css","../App_Themes/PaperPlan/AccessibleContextMenu.css","../WebResource.axd?d=T9MEMCxTQ8Tcll-Zh7PXZQ5iV1hnTVmkMT2rkHYjc8EvkDjF26uABWQfkOaIvgWjZAa6A33JGAh1xKswm__x5w2&t=634140228172873867","../App_Themes/PaperPlan/RadControls/Splitter/Skins/Gray/styles.css"],"styles":[],"uniqueID":"mtCatalogExplorerTree$amTree","updatePanelsRenderMode":0}, null, null, $get("mtCatalogExplorerTree_amTree"));
});
|

============================================================

Session recorded in direct access no proxy no filter is set:
-------------------------------------------------------------------------------------------------

POST http://istaobli02/Catalogs/CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077172850&__ISFRAME=1&ClearPage=1&Clear=1 HTTP/1.1
Accept: */*
Accept-Language: en-US,he-IL;q=0.5
Referer: http://istaobli02/Catalogs/CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077172850&__ISFRAME=1&ClearPage=1&Clear=1
x-microsoftajax: Delta=true
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Cache-Control: no-cache
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 2.0.50727; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; FDM)
Host: istaobli02
Content-Length: 1583
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=fpcyvh20ms4uxmrcng3texua; TempCookieCheck=1; PrerequisitesChecked=1; UserContext=AccessibleMode%ACfalse; organization=Oblicore; ASPSESSIONIDSSACQASR=JKJBMGECKIJGEJNHMMJIMCAK

mtCatalogExplorerTree%24ScriptManager1=mtCatalogExplorerTree%24mtCatalogExplorerTree%24treeModularityTreePanel%7CmtCatalogExplorerTree%24treeModularityTree&__WID=201077172850&__EVENTTARGET=mtCatalogExplorerTree%24treeModularityTree&__EVENTARGUMENT=%7B%22commandName%22%3A%22Expand%22%2C%22index%22%3A%220%3A0%22%7D&hdnIsFullscreen=false&Current_URL=CatalogExplorerTree.aspx%3FRecordId%3D200%26RecordType%3DROOT%26IsSearchMode%3DN%26__WID%3D201077172850%26__ISFRAME%3D1%26ClearPage%3D1%26Clear%3D1&FormName=CatalogExplorerTreeForm&RecordID=200&StateData=&__DIRTY=0&__SENTITY=Catalog&__ISPOPUP=0&__ISWIZARDSTEP=0&__ISRETURN=0&__VIEWSTATE=&__EVENTVALIDATION=%2FwEWEAL%2BraDpAgKjjYOEAQLkwqDoDwKI16hLAsnSwY4MAvvj7LsCAru%2F27IEArzxhIUPAojymNkHAvONmZUOAt738aENAo6f3BcC94O6qgICsNq5oA0C%2BpHArg8ChMqF6wdZzAK%2BXtZ89CLogWcLK4dTxnAS2g%3D%3D&selectedID=&mtCatalogExplorerTree_treeModularityTree_ClientState=%7B%22expandedNodes%22%3A%5B%220%3A0%22%5D%2C%22collapsedNodes%22%3A%5B%5D%2C%22logEntries%22%3A%5B%5D%2C%22selectedNodes%22%3A%5B%220%22%5D%2C%22checkedNodes%22%3A%5B%5D%2C%22scrollPosition%22%3A0%7D&mtCatalogExplorerTree%24treePane=%7B%22originalWidth%22%3A%22%22%2C%22originalHeight%22%3A%22%22%2C%22width%22%3A279%2C%22height%22%3A660%2C%22collapsed%22%3Afalse%2C%22collapsedDirection%22%3A1%2C%22scrollLeft%22%3A0%2C%22scrollTop%22%3A0%2C%22expandedSize%22%3A0%2C%22contentUrl%22%3A%22%22%2C%22minWidth%22%3A20%2C%22maxWidth%22%3A2147483647%2C%22minHeight%22%3A20%2C%22maxHeight%22%3A2147483647%2C%22locked%22%3Afalse%7D&__ASYNCPOST=true&RadAJAXControlID=mtCatalogExplorerTree_amTree
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 07 Jul 2010 14:29:11 GMT
Content-Length: 7437

1866|updatePanel|mtCatalogExplorerTree_mtCatalogExplorerTree_treeModularityTreePanel|<div id="mtCatalogExplorerTree_treeModularityTree" class="RadTreeView RadTreeView_Office2007 " ExpandDelay="0">
 <!-- 2008.1.515.20 --><ul class="rtUL rtLines">
  <li class="rtLI rtFirst rtLast"><div class="rtTop rtSelected">
   <span class="rtSp"></span><span class="rtMinus"></span><div title="Service Portfolios" class="rtIn">
    <div class="rtTemplate">
     <table style="display:inline;">
      <tr>
       <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">Service Portfolios</SPAN></td>
       <td></td>
      </tr>
     </table>

    </div>
   </div>
  </div><ul class="rtUL">
   <li class="rtLI rtLast"><div class="rtBot">
    <span class="rtSp"></span><span class="rtMinus"></span><img src="../App_Themes/PaperPlan/Images/icon_catalog_sm.gif" alt="SanityAUTO" class="rtImg" /><div title="SanityAUTO" class="rtIn">
     <div class="rtTemplate">
      <table style="display:inline;">
       <tr>
        <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">SanityAUTO</SPAN></td>
        <td></td>
       </tr>
      </table>

     </div>
    </div>
   </div><ul class="rtUL">
    <li class="rtLI rtLast"><div class="rtBot">
     <span class="rtSp"></span><img src="../App_Themes/PaperPlan/Images/icon_folder_cat_small.gif" alt="SanityAUTO SC" class="rtImg" /><div title="SanityAUTO SC" class="rtIn">
      <div class="rtTemplate">
       <table style="display:inline;">
        <tr>
         <td style="vertical-align:top;white-space:nowrap;"><SPAN class="spanStyle">SanityAUTO SC</SPAN></td>
         <td></td>
        </tr>
       </table>

      </div>
     </div>
    </div></li>
   </ul></li>
  </ul></li>
 </ul><input id="mtCatalogExplorerTree_treeModularityTree_ClientState" name="mtCatalogExplorerTree_treeModularityTree_ClientState" type="hidden" />
</div>|69|updatePanel|mtCatalogExplorerTree_amTreeSU|<span id="mtCatalogExplorerTree_amTree" style="display:none;"></span>|0|hiddenField|__EVENTTARGET||0|hiddenField|__EVENTARGUMENT||160|hiddenField|__EVENTVALIDATION|/wEWEAL+raDpAgKjjYOEAQLkwqDoDwKI16hLAsnSwY4MAvvj7LsCAru/27IEArzxhIUPAojymNkHAvONmZUOAt738aENAo6f3BcC94O6qgICsNq5oA0C+pHArg8ChMqF6wdZzAK+XtZ89CLogWcLK4dTxnAS2g==|28|asyncPostBackControlIDs||mtCatalogExplorerTree$amTree|0|postBackControlIDs|||163|updatePanelIDs||tmtCatalogExplorerTree$mtCatalogExplorerTree$treeModularityTreePanel,tmtCatalogExplorerTree$mtCatalogExplorerTree$dgSearchDataPanel,tmtCatalogExplorerTree$amTreeSU|0|childUpdatePanelIDs|||98|panelsToRefreshIDs||mtCatalogExplorerTree$mtCatalogExplorerTree$treeModularityTreePanel,mtCatalogExplorerTree$amTreeSU|2|asyncPostBackTimeout||90|119|formAction||CatalogExplorerTree.aspx?RecordId=200&RecordType=ROOT&IsSearchMode=N&__WID=201077172850&__ISFRAME=1&ClearPage=1&Clear=1|69|pageTitle||CA Oblicore Guarantee� 7.0 &#155;&#155;&#155; Service Portfolios Pane|106|scriptBlock|ScriptPath|/ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2gmK-37hQnEo7T9gGMf0bhj0&t=ffffffffab1b2485|149|scriptBlock|ScriptPath|/ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2jwhMWI5s3puWIVF7_3HYFRIynMDPJ7Pt-4C83BZ2qiX4VkNjSaKElmllY2iH55LtA1&t=ffffffffab1b2485|149|scriptBlock|ScriptPath|/ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pj-HpuP57M4RbPvN_8bum2h8kObLpPYH4aHhHf9z2DnF-kVa9HGFRoVD4lKOJMENBI-H7GLWZLFcH5GGLR49f4Y1&t=ffffffffab1b2485|128|scriptBlock|ScriptPath|/ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pl9CAFfPo9r5Fr4S50nYU5FQmvjK1VCq7CQnqbWBDgoy-_ypjX-4EixABHCaAnBhFA2&t=ffffffffab1b2485|106|scriptBlock|ScriptPath|/ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pm9R5KZU6oRd84CGGODVFvF_FWI7x2nCjsNiMq9Pief70&t=ffffffffab1b2485|90|scriptStartupBlock|ScriptContentNoTags|Telerik.Web.UI.RadTreeView._preInitialize("mtCatalogExplorerTree_treeModularityTree","0");|81|scriptStartupBlock|ScriptContentNoTags|Telerik.Web.UI.RadTreeView._clearLog("mtCatalogExplorerTree_treeModularityTree");|1287|scriptStartupBlock|ScriptContentNoTags|Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTreeView, {"_postBackOnCheck":true,"_postBackOnClick":true,"_postBackOnExpand":true,"_postBackReference":"__doPostBack(\u0027mtCatalogExplorerTree$treeModularityTree\u0027,\u0027arguments\u0027)","_scrollPosition":0,"_skin":"Office2007","_uniqueId":"mtCatalogExplorerTree$treeModularityTree","attributes":{"ExpandDelay":"0"},"clientStateFieldID":"mtCatalogExplorerTree_treeModularityTree_ClientState","collapseAnimation":"{\"type\":12,\"duration\":100}","expandAnimation":"{\"duration\":100}","nodeData":[{"value":"200","text":"Service Portfolios","expanded":1,"items":[{"value":"201","text":"SanityAUTO","expanded":1,"items":[{"value":"202","text":"SanityAUTO SC","checkable":0,"attributes":{"FolderItemId":"1148","EntityId":"1147","EntityType":"FOLDER","ChildCount":"0"}}],"expandMode":1,"checkable":0,"attributes":{"FolderItemId":"1146","EntityId":"1145","EntityType":"CATALOG","ChildCount":"1"}}],"selected":1,"expandMode":1,"checkable":0,"attributes":{"EntityId":"200","EntityType":"ROOT","ChildCount":"1"}}],"selectedIndexes":["0"]}, {"contextMenuShowing":ShowTreeContextMenu,"nodeClicking":BeforeNodeSelectHandler,"nodeDoubleClick":OnDoubleClick}, null, $get("mtCatalogExplorerTree_treeModularityTree"));
});
|2043|scriptStartupBlock|ScriptContentNoTags|Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "mtCatalogExplorerTree_treeModularityTree",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_btnSearch",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_dgSearchData",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_btnApply",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_dgSearchData",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]},{InitControlID : "mtCatalogExplorerTree_amTree",UpdatedControls : [{ControlID:"mtCatalogExplorerTree_treeModularityTree",PanelID:"mtCatalogExplorerTree_LoadingPanel1"}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":["../App_Themes/PaperPlan/AccessibleMenu.css","../App_Themes/PaperPlan/Buttons.css","../App_Themes/PaperPlan/custom.css","../App_Themes/PaperPlan/DocumentRepository.css","../App_Themes/PaperPlan/EditableLink.css","../App_Themes/PaperPlan/fileUpload.css","../App_Themes/PaperPlan/general.css","../App_Themes/PaperPlan/Reports.css","../App_Themes/PaperPlan/SearchPanel.css","../App_Themes/PaperPlan/StickyNote.css","../App_Themes/PaperPlan/TabContainer.css","../App_Themes/PaperPlan/topframe.css","../App_Themes/PaperPlan/XmlPrettyPrint.css","../App_Themes/PaperPlan/AccessibleContextMenu.css","/WebResource.axd?d=T9MEMCxTQ8Tcll-Zh7PXZQ5iV1hnTVmkMT2rkHYjc8EvkDjF26uABWQfkOaIvgWjZAa6A33JGAh1xKswm__x5w2&t=634140228172873867","/App_Themes/PaperPlan/RadControls/Splitter/Skins/Gray/styles.css"],"styles":[],"uniqueID":"mtCatalogExplorerTree$amTree","updatePanelsRenderMode":0}, null, null, $get("mtCatalogExplorerTree_amTree"));
});
|

=====================================================================

Please let me know if you see any valuable information that we can use to fix this behavior.
Thanks,
Yuval

0
Dimitar Milushev
Telerik team
answered on 13 Jul 2010, 01:28 PM
Hi Yuval,

It seems that ASP.NET AJAX is unable to parse this part:

|scriptBlock|ScriptPath|../ScriptResource.axd?d=QGptnHe77RpYiDfVDX41Pm9R5KZU6oRd84CGGODVFvF_FWI7x2nCjsNiMq9Pief70&t=ffffffffab1b2485|90|

Is it possible to rewrite the URL to "/ob/ScriptResource.axd" instead?

Kind regards,
Dimitar Milushev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ilan Gal
Top achievements
Rank 1
answered on 13 Jul 2010, 02:25 PM
Hi Dimitar,

I tried this option with no success.
I'm openning a ticket for this issue and attach a test website with the filter we use so you can see and test for youself.

Please help on this we need a solution ASAP.

Thanks,
Yuval
0
Marcelo
Top achievements
Rank 1
answered on 28 Oct 2011, 02:22 AM
Hi Yuval,

I have a problem as your. My web site run under a proxy. My RadTreeView don't expand yours nodes without enabled anonymous access or put filters of excluded site domain's.

How do you resolved? I need much these solution;

Thansks by helper!!

Att.
1
Asset Management
Top achievements
Rank 1
answered on 30 Oct 2011, 11:55 AM
Marcelo hi,

There is an ASP.NET AJAX issue that the use of a response filter doesn't solve but rather create another bug and its the reason why you cannot get the nodes to expand.
Each Ajax call (only ajax calls) are validated by the client ajax object (You can identify ajax calls by this request header: "x-microsoftajax: Delta=true").
The validation checks the each component response html length written inside the response string retrieved for the ajax request.
The pattern of the response string is the following:

 

 

 

NumberOfBytes|ComponentType|ComponentId|ResponseHtml

Because the response filter you apply change the length of the response html the value of the content length (written as first item in the component's response string array seperated by "|") is no longer equals the actual response html length so validation fails in the client ajax object and the node does not expand.

To fix this you must update the content length value to the fixed html response content length after you fixed the webresources references in the response string.

Don't forget to fix the response recurssively for each component.

It's complicated but it works.
I think Telerik should provide a more usable way of using their controls under proxy with ajax calls.

Good luck!
Yuval


 

Tags
TreeView
Asked by
Yuval Dagai
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Yuval Dagai
Top achievements
Rank 1
Ilan Gal
Top achievements
Rank 1
Marcelo
Top achievements
Rank 1
Asset Management
Top achievements
Rank 1
Share this question
or