Upgrading to Intersoft 2013 issues

13 replies. Last post: March 20, 2014 10:21 PM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
roi ukashiMember

Hello, 

I have upgraded my project with intersoft's latest assemblies, and I am encountering some issues. 

Before upgrading, I made sure my application works as expected with previous versions of intersoft.

I'm using Win 7 64-bit enviroment.
Application pool settings: .Net Framework 4, Managed pipeline mode: Integrated.


First, I have made changes to web.config, according to the following link:  

http://www.intersoftpt.com/Support/WebUIStudio/Tutorial/Text/Configure-Intersoft-products-to-run-in-IIS7-environment/

Also, using Common Library as described here:

http://www.intersoftpt.com/Support/Featured/Tutorial/WebUIStudio/Configure-CommonLibrary-manually-in-IIS/

I added <!DOCTYPE html> to my aspx file that contains a ISWebDesktop:WebPaneManager control:

 <div style="height:100%; width:100%;">                        
        <ISWebDesktop:WebPaneManager ID="WebPaneManager1" runat="server" 
                                     Height="100%" Width="100%"
                                     ImagesDirectory="~/Images/" 
                                     RenderingMode="HTML5">
                <RootGroupPane Name="RootGroupPane" Text="Root GroupPane" GroupPaneHeaderVisible="No">
                    <Panes>
                        <ISWebDesktop:WebPane ContentScrollable="false" AllowCollapse="No" AllowResize="No" Height="Custom" HeightValue="45px"  
                                              Name="Header" DiscardContainerStyle="false" HeaderVisible="No" ContentMode="UseInlineContent">                            
                            <ContentTemplate>
                                
                            </ContentTemplate>
                            <ContentPadding Right="0" Top="0" Left="0" Bottom="0" />                              
                        </ISWebDesktop:WebPane>
                        <ISWebDesktop:WebGroupPane GroupType="VerticalTile" Name="GroupContent" Text="Group Content" HeightValue="100%">
                            <Panes>
                                <ISWebDesktop:WebPane AllowCollapse="No" AllowResize="No" Name="Content" Text="Content" ContentMode="UseIFrame" HeaderAppearance="UseSubStyle" HeaderVisible="No">
                                    <ContentTemplate>
                                    </ContentTemplate>                                    
                                </ISWebDesktop:WebPane>
                                <ISWebDesktop:WebPane AllowCollapse="Yes" AllowResize="Yes" Name="Side" Width="Custom" WidthValue="250px" HeaderAppearance="UseSubStyle" HeaderVisible="No">
                                    <ContentTemplate>
                                        <div style="display:none;"><ISWebInput:WebInput ID="hdn_SelectedBarItem" runat="server" Text="" /></div>  
                                        <ISWebDesktop:WebNavPane BarVisible="5" ID="WebNavPane1" runat="server" Height="100%" Width="100%"
                                                                 GripImage="" ImagesDirectory="~/Images" OnBarClick="OnBarClick">
                                            <Bars>                                                                                                                                                 
                                                <ISWebDesktop:WebNavBar ContentMode="UseInlineContent" CaptionDisplayMode="TextAndImage" 
                                                                        Image="~/Images/Bank_Big.gif" Name="ManageBankPages" 
                                                                        Text="1">
                                                      <ContentTemplate>
                                                          <NB:NavBarAdjustmentBPages ID="NavBarAdjustmentBPages1" runat="server" />
                                                    </ContentTemplate>                                                   
                                                </ISWebDesktop:WebNavBar>  
                                                  
                                                <ISWebDesktop:WebNavBar ContentMode="UseInlineContent" CaptionDisplayMode="TextAndImage" 
                                                                        Image="~/Images/Planning.gif" Name="Banks"
                                                                        Text="2">
                                                    <ContentTemplate>
                                                        <NB:NavBarAdjustment ID="NavBarAdjustment1" runat="server" />
                                                    </ContentTemplate>
                                                </ISWebDesktop:WebNavBar>   
                                                                                                   
                                                <ISWebDesktop:WebNavBar ContentMode="UseInlineContent" CaptionDisplayMode="TextAndImage" 
                                                                        Image="~/Images/PlanningHoz.png" Name="ReconHOZ" 
                                                                        Text="3">
                                                    <ContentTemplate>
                                                        <NB:NavBarPlanningHOZ ID="NavBarPlanningHOZ" runat="server" />
                                                    </ContentTemplate>
                                                </ISWebDesktop:WebNavBar>                                                          
                                                    
                                                 
                                                                                                                                                                                                                                                                         
                                            </Bars>
                                            <BarItemSettings Alignment="Right">
                                                <ItemsContainerStyle Width="100%" Height="100%" Overflow="Auto" OverflowY="Auto"
                                                    BorderColor="#7B93BF" BorderStyle="Solid" BorderWidth="0px">
                                                    <Margin Bottom="0px" Left="1px" Right="1px" Top="1px" />
                                                    <Margin Bottom="0px" Left="1px" Right="1px" Top="1px" />
                                                    <BorderSettings>
                                                        <Bottom Color="123, 147, 191" Style="solid" Width="3px" />
                                                        <Bottom Color="123, 147, 191" Style="solid" Width="3px" />
                                                    </BorderSettings>
                                                </ItemsContainerStyle>
                                                <ItemStyle>                                                            
                                                    <Active BackColor="#E0ECFA" BaseStyle="Normal" BorderColor="#7B93BF" BorderStyle="Solid"
                                                        BorderWidth="0px" Font-Bold="True" Width="100%">
                                                        <Margin Left="0px" Right="0px" />
                                                        <Padding Left="0px" Right="0px" />
                                                        <Margin Left="0px" Right="0px" />
                                                        <Padding Left="0px" Right="0px" />
                                                    </Active>
                                                    <Over BackColor="WhiteSmoke" BaseStyle="Normal"></Over>
                                                    <Normal Cursor="Hand" Font-Names="Tahoma" Font-Size="8.25pt" Overflow="Hidden">
                                                        <Padding Bottom="3px" Left="6px" Right="6px" Top="3px" />
                                                        <Padding Bottom="3px" Left="6px" Right="6px" Top="3px" />
                                                    </Normal>
                                                </ItemStyle>
                                            </BarItemSettings>                                                                                                                                   
                                            <FrameStyle BorderWidth="0px" BorderColor="White" BackColor="White"></FrameStyle>                                            
                                            <GripStyle>
                                                <Active Height="2px" BackColor2="Black" BaseStyle="Normal" BackColor="Gray">
                                                </Active>
                                                <Over Height="2px" BaseStyle="Normal">
                                                </Over>
                                                <Normal Height="2px" BackColor2="231, 236, 242" BackColor="#F6F9F9" GradientType="Vertical"
                                                    Overflow="Hidden">
                                                </Normal>
                                            </GripStyle>
                                            <FooterSettings>
                                                <FooterStyle BackColor="White" BackColor2="Gainsboro" GradientType="Vertical" HorizontalAlign="Right"
                                                    Overflow="Hidden" />
                                            </FooterSettings>
                                        </ISWebDesktop:WebNavPane>
                                    </ContentTemplate>
                                </ISWebDesktop:WebPane>
                            </Panes>
                        </ISWebDesktop:WebGroupPane>
                    </Panes>
                </RootGroupPane>
                <FrameStyle BackColor="#E0E0E0" BorderColor="#404040" BorderStyle="None" BorderWidth="0px"
                           ForeColor="White">
                           <BorderSettings>
                            <Top Width="0px" />
                           </BorderSettings>
                           <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
               </FrameStyle>
                <PaneSettings>
                    <HeaderSubStyle BackColor="#E0E0E0" BackColor2="White" BorderColor="Gray" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Tahoma" Font-Size="8pt" GradientType="Vertical">
                        <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
                    </HeaderSubStyle>
                    <InfoTextStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="White">
                    </InfoTextStyle>
                    <ContainerStyle BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                        Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black">
                        <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
                    </ContainerStyle>
                    <HeaderMainStyle BackColor="DimGray" BackColor2="LightGray" BorderColor="Gray" BorderStyle="Solid"
                        BorderWidth="1px" Font-Bold="True" Font-Names="Arial" Font-Size="12pt" ForeColor="White"
                        GradientType="Vertical">
                        <BorderSettings>
                        <Top Width="0"  />
                        </BorderSettings>
                        <Margin  Bottom="0px" Left="0px" Right="0px" Top="0px"  />
                        <Padding Bottom="0px" Left="0px" Right="0px" Top="0px" />
                    </HeaderMainStyle>
                </PaneSettings>
                <SplitterStyle>
                    <Active BackColor="Black" BaseStyle="Normal">
                    </Active>
                    <Over BaseStyle="Normal">
                    </Over>
                    <Normal BackColor="#E0E0E0">
                    </Normal>
                </SplitterStyle>
                <TextSettings InProgressText="" />
                <ImagesSettings SplitterGripBottom="SplitterDown.gif" SplitterGripLeft="SplitterLeft.gif"
                                SplitterGripRight="SplitterRight.gif" SplitterGripTop="SplitterUp.gif"
                                InProgress="Loading/loading43.gif" />
                <ClientSideEvents OnInitialize="WebPaneManager1_OnInitialize" />
         </ISWebDesktop:WebPaneManager>      
    </div>  
function WebPaneManager1_OnInitialize(controlId) {
            var navPane = ISGetObject("WebNavPane1");
            try {
                var hdn_SelectedBarItem = ISGetObject("hdn_SelectedBarItem");
                var _SelectedBarItem = hdn_SelectedBarItem.GetValueData();
                if (_SelectedBarItem != "" && navPane.BarItems.GetNamedItem(_SelectedBarItem) != null) {
                    navPane.BarItems[navPane.BarItems.GetNamedItem(_SelectedBarItem).Index].Click();
                } else {
                    navPane.BarItems[0].Click();
                }
            } catch (e) {
                
                //navPane.BarItems[0].Click();
            }
            
            return true;
        }
function OnBarClick(Id, BarItem) {
            var Nindex = BarItem.Index;
            var navPane = ISGetObject("WebNavPane1");
            var paneManager = ISGetObject("WebPaneManager1");
            var pane = paneManager.GetPaneByName("Content");
            if (navPane.BarItems[Nindex].Items.length != "0") {
                navPane.BarItems[Nindex].Items[0].Click();
            } else {
                var _BarItemName = navPane.BarItems[Nindex].Name;
                switch (_BarItemName) {
                    case "ManageBankPages":
                            pane.SetContentURL("");
                        break;
                    case "Banks":
                            pane.SetContentURL("");
                        break;
                    case "ReconHOZ":
                           pane.SetContentURL("");
                        break;
                }
    
            }
            return true;
        }
  

Now while trying to evaluate the new version, there are several issues I'm encountering:

1. The control is not streched to 100% heigh. It looks "cropped".

If I remove RenderingMode="HTML5" attribute, height issue seems to be resolved, but I receive the following javascript errors (chrome):

Uncaught TypeError: Cannot read property 'children' of undefined ISRes.axd?D/WebNavPane.js/40720010:7

  1. oSource.(anonymous function)ISRes.axd?F/ISCore.js/305000910:11
  2. (anonymous function)

body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode. ISRes.axd?F/IEMozBridge.js/305000910:1086

body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode. ISRes.axd?F/IEMozBridge.js/305000910:1116

event.returnValue is deprecated. Please use the standard event.preventDefault() instead. ISRes.axd?C/WebCombo.js/607200257:7

2. These errors probably causes my nav bars content to disappear with:

<div id="WebPaneManager1_ViewSide_WebNavPane1_ManageBankPages_items" align="Right" class="WebPaneManager1ViewSideWebNavPane1-BarItemSettings-ItemsContainerStyle" style="display: none;">


I'm pretty lost here. Could someone please guide me through best practice upgrade methods?






All times are GMT -5. The time now is 9:30 AM.
Previous Next