Number of Columns & Rows in CategoryGridPage

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Number of Columns & Rows in CategoryGridPage

Post by MMIKAL » Fri Jun 18, 2010 12:10 am

Hi guys

I was wondering if any of you know, how to set the number of Columns & Rows in CategoryGridPage (just like the FeaturedProductGrid).
It displays 3 cols by 5 rows as default. There are _Cols and _Rows in the control which are not public, however setting them to different values
then default (3 by 5) seems to have no effect.

Thank you in advance.

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

Re: Number of Columns & Rows in CategoryGridPage

Post by mazhar » Fri Jun 18, 2010 6:19 am

Edit Website/ConLib/CategoryGridPage.ascx.cs file and locate following lines of code in it.

Code: Select all

private int _Cols = 3;
private int _Rows = 5;
simply update these values 3 and 5 according to your requirements, save it and you are done with this.

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: Number of Columns & Rows in CategoryGridPage

Post by MMIKAL » Fri Jun 18, 2010 7:57 pm

Thanks Mazhar for your reply, but I already mentioned in my original post that changing these values has no effect on the number of displayed columns and rows, it just displays items in 3 columns, no matter what you set them. The total item displayed is changed though to the cols x Rows, but number of columns are always 3 .

Also, I was wondering you can tell me how to show a Goto/Jump page for ecah category, meaning user can enter a page number in a box and press go button, so they jum to a page , in cases that there are many pages.

Thanks in Advance.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Number of Columns & Rows in CategoryGridPage

Post by jmestep » Sat Jun 19, 2010 10:37 am

You probably have to change the % and/or columns in the .ascx file. It probably says 33% columns 3, something like that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

lastrom
Ensign (ENS)
Ensign (ENS)
Posts: 13
Joined: Fri Jul 31, 2009 7:46 am

Re: Number of Columns & Rows in CategoryGridPage

Post by lastrom » Thu Jul 29, 2010 7:32 am

Nevermind, It was more user error.

aaj
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Thu Aug 26, 2010 12:00 pm

Re: Number of Columns & Rows in CategoryGridPage

Post by aaj » Thu Sep 16, 2010 12:49 pm

Hi I know its an old post, but it might help someone else......

Judy was correct, search for 'RepeatColumns=' in the ASCX file.

Post Reply