This Question is Possibly Answered

1 "correct" answer available (8 pts) 14 "helpful" answers available (5 pts)
5 Replies Last post: Nov 19, 2008 12:25 PM by Kamal Bhatt  
varsha Level 3 52 posts since
Mar 6, 2008
Currently Being Moderated

Nov 10, 2008 1:36 AM

PointerEnvelopEvent consuming the default sorting event of RecordGrid

hi

I want  to sort the  Recordgrid on Pointerenvelop event,but PointerEnvelopEvent  consuming the default sorting event of RecordGrid.Columns are sorted for the first time

after that it is not getting sort.

 

Thanks

 

Carl BlackBelt 104 posts since
Oct 17, 2007
Currently Being Moderated
1. Nov 11, 2008 5:10 PM in response to: varsha
Re: PointerEnvelopEvent consuming the default sorting event of RecordGrid

Which object are you attempting to install a PointerEnvelopeEvent handler on? Where is the user clicking to cause a sort?

 

I'm not exactly clear on the question, or what the use case is here.

Carl BlackBelt 104 posts since
Oct 17, 2007
Currently Being Moderated
3. Nov 12, 2008 4:10 PM in response to: varsha
Re: PointerEnvelopEvent consuming the default sorting event of RecordGrid

Well, selection is changing, since you are causing a record to be selected, and then changing the sort order and resetting the current index.

 

But I tried a version of your example and it had no issues with sorting, first time or later. I suspect something else is going on outside of the code that you posted. Perhaps you are changing the graphical hierarchy in the middle of event handling, causing something unexpected to happen? Normally, the sort is controlled by a regular click (press+release) over a column selector, so happens on PointerRelease. If you are somehow causing the grid to be rebuilt between PointerPress and PointerRelease, that could affect the result -- but I don't see anything in your example that indicates that would be happening.

Kamal Bhatt BlackBelt 215 posts since
Oct 17, 2007
Currently Being Moderated
5. Nov 19, 2008 12:25 PM in response to: varsha
Re: PointerEnvelopEvent consuming the default sorting event of RecordGrid

When you get a PointerEvent you get the coordinates where the event occurred. You can use it to determine if the pointer was fired at the header or not.

More Like This

  • Retrieving data ...