Nevermind. It was a dumb error on my part. At the beginning of the function
I was calling I had an if-statement testing for...
analysisList.selectedIndex > -1
... which obviously doesn't work for multiple selections. Simply changing it
to...
analysisList.selectedIndices.length > 0
... does what I was expecting.


On Tue, Jul 29, 2008 at 6:54 PM, Kevin Ford <[EMAIL PROTECTED]> wrote:

> I'm running into a bit of frustration on an AdvancedDataGrid control with
> allowMultipleSelection turned on. I currently fire-off a function on the
> ADG's change event and this works perfectly fine if I single-click or
> control-click on a row in the control, but not if I shift-click. I've tried
> triggering on "change", "itemClick", and "click" events and none seem to
> trigger when doing a straight shift-click selection. If I do a shift-click
> to highlight several rows, then do a control-click to highlight another then
> everything highlighted does get recognized. Is there a specific event that I
> can trigger on for shift-click selections?
> Without showing too much of the code, here's my definition for the ADG...
>
> <mx:AdvancedDataGrid id="analysisList" designViewDataType="flat" width="
> 100%" x="0" sortExpertMode="true" change="showFilteredOpportunities()"
> top="34" bottom="0" allowMultipleSelection="true">
>
>
> </mx:AdvancedDataGrid>
>
>
> Thanks!
> Kevin
>

Reply via email to