User Profile & Activity

Daniel Barrett Member

Hi Yudi


A bit of background.

We use ISWebdesktop webpane to load different aspx pages in ContentMode="UseIFrame". What seems to be happening is that when loading the webpane with another page, the previous page is throwing the j-script error : "Microsoft JScript runtime error: 'wg72d21' is null or not an object"

Snip-it from VS2010:
mb3a59:function(v2d156){window.attachEvent("onload",function(){wg72d21.mab836(v2d156);});window.attachEvent("onunload",function(){wg72d21.m6f617(v2d156.Id);});

Additional information in the below is from the JS
//GeneratedbyIntersoftScriptOptimizerV1.5+IntersoftJSEngineMaxObfuscate(tm)V1.0
//GeneratedDatetime:9/19/20089:46:07AM
//Copyright(c)2005IntersoftSolutions.
//Unauthorizeddecryption/reproductionofanycodescontainedhereinisstrictlyprohibitedandwillresultinseverecivilandcriminalpenalties.
//**StartEncode**
varWG40={COLHEADER:"CH",COLFOOTER:"CF",BODY:"TB",COLHEADERGROUP:"CHG",COLFOOTERGROUP:"CFG",COLGROUP:"CG",GROUPBYBOX:"GBB",GROUPBYBOXLABEL:"GBBInfo",STATUSBOX:"Status",STATUSBAR:"Stat",STATUSBARRIGHT:"Stat2",STATUSICON:"StatIcon",STATUSBARCOMMAND:"Stat3",FREEZEBAR:"Freeze",HTMLDIV:"dv",HTMLTABLE:"tb",HTMLCELL:"td",HTMLROW:"tr"};functionWebGrid(vb5834){this.ClassName="WebGrid";this.Version="5.0.7200";this.BuildNumber="5";this.MajorVersion="5.0";this.RequiredFrameworkVersion="2.0.5000.18";this.XmlNamespace="isnet.webui.webgrid";ISControl.call(this,vb5834);IFlyPostBack.call(this,"WebGridRequest");

Hi Guys


Was there any resolution to this problem, as I have also just recieved this issue, but in the webgrid.


Thanks


Daniel

Posted: November 4, 2010 5:20 AM

Hi Yudi

We are currently using webgrid 5.0.7200.18, WebDesktop 2.0.2007.15, WebUI.NET 3.0.5000.1

I cannot seem to find your video. I am getting a 404 not found at its current location.


Hope this helps.


Regards

Daniel


Posted: November 3, 2010 7:42 AM

Hi Yudi


I have imported your sample file into our system and it does replicate the issue. At load all is good, then select level product, and hit reload, and then the issue. have attached a screen shot. The only changes i made was to add a designer class as we use a web application and not a website. 


Regards


Daniel

Posted: November 1, 2010 9:39 AM

Hi Yudi


The Reload Button does fire off a Custom paost back that is used in the InitialzePostback method, but before this the following happens:

Page Load is fired and in this the grid is checked to see if it is Flypostback and clears the datasource and rebinds the grid. it then calls the initdatasource method and then the prepare databinding. After all this is calls the init postback.


I have attempted your suggestion, but it is just forcing it to go down the same code path again.  all the data is correct and working, what im looking for is for the grid to be rerendered with the new column structure.


Thanks


Daniel

Posted: October 27, 2010 7:52 AM

Due to this being part of a much larger system. I cannot find a good way of decoupling this page from the system without problems. I have included screen shots and a file with our code structure.


Regards

Daniel

Posted: November 27, 2009 7:51 AM

As an extra note, here is what a double grid looks like when not sizing correctly


Thanks


Daniel

Posted: October 15, 2009 9:05 AM

Thanks will try that, and will remember to do that next time

Posted: October 15, 2009 5:06 AM

Hi Handy


I have solved my problem. I have used the edit type checkbox, but found my main issue was with the columns, and the layout settings that needed to be tweeked. Thanks for the help though.


If you dont mind can I ask you another question on the webgrid, in that the grid is rendering as a control in the page, but the grid is coming up 'minimised' with data in it. Is there something I am missing.

have included the two grid render and also the grids code + the skin for those grids


Thanks


Daniel


Table Code and grid code:

<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; table-layout: fixed;">
<tr>
<td style="height: 50%">
<ISWebGrid:WebGrid ID="grdMaint" runat="server" SkinID="MaintenanceGrid">
<RootTable Caption="Maintenance" DataKeyField="RoleID" GridLineStyle="NotSet" AllowSorting="No"
AllowEdit="Yes" DataMember="Roles">
<Columns>
<ISWebGrid:WebGridColumn Caption="Role ID" DataMember="RoleID" EditType="NoEdit"
Name="RoleID" Visible="False" Width="0px">
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" Bound="True"
Caption="Selected" ColumnType="CheckBox" DataMember="Active" DataType="System.Boolean"
EditType="NoEdit" IsRowChecker="True" Name="IsSelected" ShowInSelectColumns="No"
Width="50px">
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Role Name" DataMember="RoleDescr" Name="RoleDescr"
Width="100%" EditType="NoEdit">
</ISWebGrid:WebGridColumn>
</Columns>
</RootTable>
</ISWebGrid:WebGrid>
</td>
</tr>
<tr id="rowGrid2">
<!-- this row containing the 2nd grid will be hidden i fnot required -->
<td style="height: 50%">
<ISWebGrid:WebGrid ID="grdMaint2" runat="server" SkinID="MaintenanceGrid" Height="100%">
<RootTable Caption="Maintenance" DataKeyField="StoreNumber" GridLineStyle="NotSet"
AllowSorting="No" AllowEdit="Yes" DataMember="Stores">
<Columns>
<ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" Bound="True"
Caption="Selected" ColumnType="CheckBox" DataMember="Active" DataType="System.Boolean"
EditType="NoEdit" IsRowChecker="True" Name="IsSelected" ShowInSelectColumns="No"
Width="50px">
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Store Number" DataMember="StoreNumber" Name="StoreNumber"
Width="100px" EditType="NoEdit">
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Store Name" DataMember="StoreName" Name="StoreName"
Width="400px" EditType="NoEdit">
</ISWebGrid:WebGridColumn>
</Columns>
</RootTable>
</ISWebGrid:WebGrid>
</td>
</tr>
</table>

Skin Code:

<ISWebGrid:WebGrid SkinID="MaintenanceGrid" runat="server" HorizontalAlign="NotSet" DataCacheStorage="Session"
ViewStateStorage="None" Width="100%" Height="100%">
<FlyPostBackSettings PostInputControls="True" />
<LayoutSettings AllowEdit="Yes" AlternatingColors="True" AlwaysShowHelpButton="false" EditOnClick="true"
ShowRefreshButton="False" AutoFitColumns="True" CellPaddingDefault="2" GridLineColor="237, 237, 237"
GridLineStyle="Solid" HeaderClickAction="SortMulti" HideColumnsWhenGrouped="No"
NewRowLostFocusAction="AlwaysPrompt" RowHeightDefault="18px" RowLostFocusAction="AlwaysUpdate"
PagingMode="None" PersistRowChecker="false" InProgressUIBehavior="ChangeCursorToHourGlass"
HelpURL="/DolfinLiveHelp/DolfinLive.html?grid.htm">
<HeaderStyle CssClass="Header" />
<GroupRowInfoStyle CssClass="GroupRow" />
<EditTextboxStyle CssClass="EditTextbox" />
<FrameStyle CssClass="Frame" />
<SelectedRowStyle CssClass="SelectedRow" />
<AlternatingRowStyle CssClass="AltRow" />
<EditFocusCellStyle CssClass="EditFocusCell" />
<RowHeaderStyle CssClass="RowHeader" />
<StatusBarStyle CssClass="StatusBar" />
<RowStyle CssClass="Row" />
<NewRowStyle CssClass="NewRow" />
</LayoutSettings>
</ISWebGrid:WebGrid>



Posted: October 14, 2009 6:12 AM

Hi Handy

 

I have used the row checker on many occasions and it is an awesome feature, but it is not the problem.

I have a table that is populated with boolean values. Along the x axis I have lets say stores and on the y axis users. I wish to be able to load them into a grid and be able to manipulate the boolean values with checkboxes, after which I will save the userstore matrix back to the table.

 

Let me know if this helps

 

Thanks

 

Daniel

All times are GMT -5. The time now is 9:57 PM.
Previous Next