Hi there.
I'm using a Rotator set in CoverFlowButtons mode and on the whole it works fine. However, I have a situation whereby the current index of the rotator gets changed by some javascript code based on an external condition. When the index changes from the first item to any other item in the collection the previous button doesn't get enabled. If my code changes the index to the last item in the list I also find that the next button doesn't get disabled. However, if I interact directly with the rotator by clicking on one of the items or by clicking the next button while there is a next item to go to the enabling and disabling of the buttons then happens correctly. It's just the initial entry to the form and manipulation of the rotator via the javascript prior to actually doing something manual with it where the issue manifests itself. Is there something I can or should do to ensure that the buttons disable and enable correctly or is this a fault that you can fix?
The actual code I use to change the relevant item is as follows:
The "itemIndex" is a value that is calculated initially based on certain conditions.
Thanks and regards
I'm using a Rotator set in CoverFlowButtons mode and on the whole it works fine. However, I have a situation whereby the current index of the rotator gets changed by some javascript code based on an external condition. When the index changes from the first item to any other item in the collection the previous button doesn't get enabled. If my code changes the index to the last item in the list I also find that the next button doesn't get disabled. However, if I interact directly with the rotator by clicking on one of the items or by clicking the next button while there is a next item to go to the enabling and disabling of the buttons then happens correctly. It's just the initial entry to the form and manipulation of the rotator via the javascript prior to actually doing something manual with it where the issue manifests itself. Is there something I can or should do to ensure that the buttons disable and enable correctly or is this a fault that you can fix?
The actual code I use to change the relevant item is as follows:
if (itemIndex != -1) {
var coverFlow = $find('<%= CoverFlow.ClientID %>');
$(coverFlow.set_currentItemIndex(itemIndex, false));
}
Thanks and regards