User Profile & Activity

Xedem Member
Page
of 12

I was just asking to pinpoint the reasons. The causes by which the same project runs in one machine and not in another machine, while just replacing it to old dll working fine. If you cant atleast pinpoint the possible reasons, fine. Thanks for the support!.

Posted: March 9, 2010 4:01 AM

oK...dont concider the above post...I worked it out myself...

Hi,

The error is webgrid generated popup error. To help the cause let me say, i used to get the javascript error 'null is null' in most of the webgrid pages. If i remove all webgrid from my page, the erorr vanishes and no problems at all. The error sucks really. The error is coming for each and every webgrid in the asp.net page. Say if i ve got 4 webgrid in one page, the javascript error pops up 4 times. After taking website in firefox i found that the error is pointing to the file Corejs...Hope this helps... And of course again, the same solution run by you(send by me) is causing error still in my computer...Thats y i am saying abt the javascript error...coz i think both may have a connection?!.

I checked the video. Wonder what happens on my side. One Question:Did you run my sample directly? I mean did you replace any dll files bin? Coz am still getting error. I cant do any of the operations you are doing in the recorded video. Am getting the error in both IE and Firefox. So could you list me the possiblities of why am getting the error?

Am attaching a running sample reproducing the issue. Please give an option to upload 7zip files here. Coz size of upload could be reduced by large when 7zip is used instead of RAR. Hope u get the error running my sample, as it includes the minimal dll as well. Reply ASAP.

Hi,

Here in my post you would find attachment. http://intersoftpt.com/Community/WebGrid/Is-there-any-problem-with-Multiline-columns-in-Firefox/

Take the latest one and just add one webcombo along with that...No further changes...Its your own sample using Accessdatasource as the datsource for webgrid...and use that one for webcombo...No further modifications needed. I will list the the dll with version am using. Am attaching a picture, which shows the dll am using...Pls check. Please reply ASAP as am running out of time due to release of my project.



ok...the increase is right...now the offset is working...i will reply as soon as i test the javascript fully...

Hi i couldnt test it completely as i cant make the latest dll work well...In fact i cant do refresh on any webgrid using new dll..I have posted the complaint in a new thread. Seems like something really wrong. You can see the thread here

Sorry for the large font size, am not all being able to edit the above post....

It is better to paste the code.

<script type="text/javascript">
function WG_Init(controlId) {

var grid = ISGetObject(controlId);

setTimeout(function() {

var contentElem = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLDIV);

if (grid.GetFrameElement().offsetHeight < contentElem.scrollHeight)
grid.HidePadColumn = false;
else
grid.HidePadColumn = true;
alert(contentElem.scrollHeight);
grid.RefreshAll();
}, 10);
}

</script>

</head>
<body id="Body1" runat="server" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"
style="overflow: hidden;">
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" class="wrapper" style="height: 100%; table-layout: fixed;"
id="Tab2" runat="server">
<tr>
<td class="content_area">
<ISWebGrid:WebGrid ID="WebGrid1" runat="server" DataSourceID="AccessDataSource1"
Height="100%" UseDefaultStyle="True" DefaultStyleMode="Elegant" Width="100%">
<RootTable DataKeyField="ID">
<Columns>
<ISWebGrid:WebGridColumn Caption="ID" DataMember="ID" Name="ID" Width="20px" IsAutoWidth="false">
<CellStyle HorizontalAlign="Justify" VerticalAlign="top">
</CellStyle>
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Multiline1" DataMember="Multiline1" Name="Multiline1"
Width="150px" AllowMultiLine="True" IsAutoWidth="false">
<CellStyle HorizontalAlign="Justify" VerticalAlign="top">
</CellStyle>
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Multiline3" DataMember="Multiline3" Name="Multiline3"
AllowMultiLine="True" Width="100%" IsAutoWidth="true">
<CellStyle HorizontalAlign="Justify" VerticalAlign="top">
</CellStyle>
</ISWebGrid:WebGridColumn>
</Columns>
</RootTable>
<LayoutSettings AllowDefaultStyleMerging="true" GridLines="None" AlwaysShowHelpButton="False"
AutoFitColumns="true" FilterBarVisible="false" AllowSorting="Yes" AllowColumnSizing="No"
RowHeaders="No" AllowFilter="Yes" AllowGrouping="Yes" AutoFilterSuggestion="True"
HideColumnsWhenGrouped="No" ShowRefreshButton="false" RowHeightDefault="-1">
<ClientSideEvents OnInitialize="WG_Init" />
<HeaderStyle Font-Names="sans-serif" Font-Size="8" Height="20px" Width="1px"></HeaderStyle>
<RowStyle Cursor="Hand" Font-Names="sans-serif" Font-Size="8" />
<AlternatingRowStyle Cursor="Hand" Font-Names="sans-serif" Font-Size="8" />
<TextSettings Language="UseCulture" UseWebResources="false">
</TextSettings>
</LayoutSettings>
</ISWebGrid:WebGrid>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/MultilineDataBaseSample.mdb"
DeleteCommand="DELETE FROM [Table1] WHERE (([ID] = ?) OR ([ID] IS NULL AND ? IS NULL))"
InsertCommand="INSERT INTO [Table1] ([ID], [Multiline1], [Multiline2], [Multiline3]) VALUES (?, ?, ?, ?)"
SelectCommand="SELECT * FROM [Table1]" UpdateCommand="UPDATE [Table1] SET [Multiline1] = ?, [Multiline2] = ?, [Multiline3] = ? WHERE (([ID] = ?) OR ([ID] IS NULL AND ? IS NULL))">
<DeleteParameters>
<asp:Parameter Name="ID" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Multiline1" Type="String" />
<asp:Parameter Name="Multiline2" Type="String" />
<asp:Parameter Name="Multiline3" Type="String" />
<asp:Parameter Name="ID" Type="String" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="String" />
<asp:Parameter Name="Multiline1" Type="String" />
<asp:Parameter Name="Multiline2" Type="String" />
<asp:Parameter Name="Multiline3" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
</td>
</tr>
</table>
</form>
</body>


I avoided the
masterpage completely. With the WebGrid7 build401, UI build 751, I am unable to
do client Refresh at all. What am i missing. The above code is similar to the
one you have send the only difference was the masterpage. Which also i removed
to make it a standalone html page. No use at all, am still getting the grid.GetFrameElement().offsetHeight
as zero
and the other value too. This happens in both the browsers. And refresh
is not working with no webgrids in my solution after the new HotFix
. One
more thing the forum posting nowdays seem to be ridiculous. By the time am
writing this i have clicked submit button more than 10 times to get the post
submitted and still dont know how many times i have to click. There is no
particular scenario. Its just not submitting and saying 'An error has occured when trying to post your reply. Please
contact our support at technical@intersoftpt.com for further assistance.'

Posted: February 18, 2010 11:14 PM

ok.Waiting for the fix. One more fix is needed. The webcombo differs in height and width for a given fixed width and height in both IE and Firefox.

All times are GMT -5. The time now is 11:39 PM.
Previous Next