|
Rank: Advanced Member Groups: Member
Joined: 3/27/2010 Posts: 48
|
I have the following code to manage the deletion of items on the Grid on the Client-Side. It will delete the selected item on pressing the "Del" key:
Code: JavaScript
function LabRequestItemsGridKeyUp() {
//alert("The GridID is '" + theGridID + "'");
var theGrid;
if (event.keyCode == 46) {
theGrid = eo_GetContainer(event.srcElement, 'Grid');
if (theGrid) {
if (!theGrid.getEditItem() && theGrid.getItemCount() > 0 && theGrid.getSelectedItem()) {
if (confirm("Are you sure you want to delete selected row ?")) {
theGrid.deleteItem(theGrid.getSelectedItem().getIndex());
GridSelectNearestItem(theGrid, theGrid.getSelectedItem().getIndex());
}
}
}
}
}
function GridSelectNearestItem(theGrid, idx) {
var i;
var idxSelected=-1;
if (theGrid && theGrid.getItemCount() > 0) {
for (i=idx+1; i < theGrid.getItemCount(); i++) {
var itemCurrent = theGrid.getItem(i);
if (itemCurrent && !itemCurrent.isDeleted()) {
idxSelected = i;
break;
}
}
if (idxSelected < 0) {
for (i=idx; i >= 0; i--) {
var itemCurrent = theGrid.getItem(i);
if (itemCurrent && !itemCurrent.isDeleted()) {
idxSelected = i;
break;
}
}
}
}
if (idxSelected >=0) {
theGrid.selectItem(idxSelected);
theGrid.getSelectedItem().ensureVisible();
}
}
The objective of the above code is to delete the selected item, and select the next available item. The above code works fine while deleting for the first 8 items. After that, the scrolling behaviour will not work as expected. After deleting 13 items, you will see large blank (white-space) areas between items while scrolling up/down. After I save the changes (deletions) to the Database, and the Grid is re-loaded, everything looks fine. Appreciate your feedback. Tarek.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We tested it with our latest internal build (we will PM you with the download location) and we do not see the blank areas. So you might want to try that first.
We do notice there is an issue with ensureVisible() when items have been deleted. With your test code it would not scroll the selected items into view in some cases. So we will look into that and see if we can fix that issue and provide an update build to you.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/27/2010 Posts: 48
|
Thanks a lot.
The problem of blank area is now resolved.
Scrolling issue is still there after deleting more than 8 items.
But, this is not a major issue. When it is fixed, appreciate your reply.
Tarek.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that should resolve ensureVisible issue. Please see your private message for the download location.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/27/2010 Posts: 48
|
After I installed the latest build, and recompiled the Web Application Project successfully (no compilation errors), and when I run the same Web Application Project (under IE), I am getting the following errors: Quote: Server Error in '/IDBWebProject' Application.
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code 128.
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\a8e4c73e\00300ba8_78b9ca01\CONNX.DataProvider.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Remoting\2.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\87e171cd\0024716e_e6e4ca01\EO.Web.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\b456a9e3\00fdddd5_b9ddc401\WebChart.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\747ed164\d2034460_eee5ca01\CSLAIDB.Library.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceProcess\2.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices.Protocols\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\4f27319b\6c0abe15_3c9ac801\Csla.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\assembly\dl3\b53263c5\00e64ad7_ad7ac801\AjaxControlToolkit.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.RegularExpressions\2.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\App_Web_testeo.aspx.cdcab7d2.1j2buq1m.dll" /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\gpfca2gr.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\App_Web_testeo.aspx.cdcab7d2.1j2buq1m.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\idbwebproject\680a2f8b\b5c18727\App_Web_testeo.aspx.cdcab7d2.1j2buq1m.1.vb"
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
I cannot be for sure that this is caused by the new EO.Web Build. However, this error is now re-appearing every time I make a change to the web application, and recompile. The error is resolved if I restart IIS, and sometimes, I have to delete the Temp ASP.NET Folder in order to resolve this problem. Note: I never faced this situation before. I will restart the server machine, just to be on the safe side. Tarek.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, This appears to have to do with ASP.NET registration or virtual directory and it does not appear to have anything to do with us. Try to recreate your app's virtual directory and see if it helps. Here is a post with various conditions/fixes regarding this issue: http://forums.asp.net/t/250218.aspxThanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/27/2010 Posts: 48
|
eo_support wrote:Hi, This appears to have to do with ASP.NET registration or virtual directory and it does not appear to have anything to do with us. Try to recreate your app's virtual directory and see if it helps. Here is a post with various conditions/fixes regarding this issue: http://forums.asp.net/t/250218.aspxThanks! I restarted the server, and things look fine now. I noticed everytime there is a Windows Update in progress or completed, the server does not work normally. You have to restart. However, the problomatic scroll behaviour of the EO.Web Grid after delting more than 8 items is still there. Hope it can be fixed. Tarek.
|
|
Rank: Advanced Member Groups: Member
Joined: 3/27/2010 Posts: 48
|
Thank you for sending the latest build 7.0.71.2 which solved the Deletion Problems for good !
The Labroratory Person in charge of Data Entry, is very happy with the new features we introduced.... ! Data Entry Speed was improved to a great extent.
Tarek.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Glad to hear that. Thanks for the update!
|
|