Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
How easy would it be to modify the admin content block to use ajax when we move a product up and down in the Product Grid.
I'm trying to avoid the page refresh sinces its a long list of images and you have to scroll around to find the image you are moving up. I'm thinking that there is a code option that remembers where your scroll bar is when it refreshes but can't think if its ASP.NET or Ajax feature.
Its not that important though, just a nice user experience.
Anthony
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
|
Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
|
|
|
|
Rank: Member
Joined: 7/28/2006(UTC) Posts: 79
|
I'm using /BVAdmin/Content/Columns_EditBlock.aspx - Product Grid to layout 9 images on the home page
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
The words "this article" are linked to the article (there were some strange characters at the end of the URL which I have corrected). The Product Grid editor is not "Anthemized"...that is why it does postbacks. You can quickly add Anthem like this: 1. Add this reference to the top of BVModules/ContentBlocks/Product Grid/editor.ascx Code:
<%[color=#0000ff>@</FONT>]Register[/color] [color=#ff0000>Namespace</FONT>AssemblyTagPrefix
2. Change all 4 occurances of "asp:Panel" to "anthem:Panel" (there are 2 panels and you are changing the start and end tags = 4 tags). 3. Add AutoUpdateAfterCallBack="true" to both <anthem:Panel> tags. For example, Code: [color=#0000ff> <:]<FONT color=#ff0000>ID[/color][color=#0000ff>="pnlEditor"runat]<FONT color=#ff0000>DefaultButton[/color][color=#0000ff>="btnNew"AutoUpdateAfterCallBack<FONT]="true"> [/color]
After making these changes I was able to add and remove products and change the order of the selected products all using callbacks. That is the extent of my testing. Be sure to keep a backup of the page without these changes in case you discover any wierdness down the road. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.