Can't Move Categories on Pages 2, 3, 4, etc . . Bug

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Can't Move Categories on Pages 2, 3, 4, etc . . Bug

Post by Mike718NY » Fri Jan 22, 2010 1:36 pm

I have more than one page of Categories.
When I try to move a category, I can't and get an error (see pics).
Can this be fixed? I have 400 categories that need to be moved.

Here is the "error on page" message:

Code: Select all

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; 
.NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; 
.NET CLR 2.0.50727)Timestamp: Fri, 22 Jan 2010 18:28:31 UTC

Message: Expected ')'
Line: 682
Char: 17
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 702
Char: 16
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 722
Char: 17
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 762
Char: 20
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 842
Char: 18
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 942
Char: 17
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Unterminated string constant
Line: 1002
Char: 18
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 1022
Char: 19
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 1122
Char: 28
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Expected ')'
Line: 742
Char: 17
Code: 0
URI: http://localhost/DCP3/Admin/Catalog/Browse.aspx

Message: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. 
Must be non-negative and less than the size of the collection.
Parameter name: index
Line: 4723
Char: 21
Code: 0

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Can't Move Categories on Pages 2, 3, 4, etc . . Bug

Post by mazhar » Mon Jan 25, 2010 8:34 am

Apply this quick fix edit your Admin/Catalog/Browe.aspx.cs file and locate following code

Code: Select all

int index = row.DataItemIndex - (CGrid.PageIndex * CGrid.PageSize);
selectedItems.Add(CGrid.DataKeys[index]);
and then replace it with below line of code

Code: Select all

selectedItems.Add(CGrid.DataKeys[row.DataItemIndex]);
Save the file and try to move object.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Can't Move Categories on Pages 2, 3, 4, etc . . Bug

Post by Mike718NY » Mon Jan 25, 2010 11:11 am

I'll try that and see if it works.
In the meantime, I made the Grid display 300 items at once so I could move them:

Code: Select all


//  Increase PageSize="300" 

<asp:GridView ID="CGrid" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="CatalogNodeId,CatalogNodeType" 
                                        AllowSorting="False" AllowPaging="True" PageSize="300" 
.....

Post Reply