drag specific columns in advanced datagrid

27 views
Skip to first unread message

abhishekchess1

unread,
Dec 24, 2009, 6:49:15 AM12/24/09
to Flex India Community
hey frnd,
i'm using ADG to show data .
I want to allow user to drag any columns and drop on other column tht
why swapping of columns will be happen.
But only restrict user to drag first column. How can i do it in Flex
3 ?
Is any way there?
thx in advanced,
:)

ManInAction

unread,
Dec 25, 2009, 1:02:20 AM12/25/09
to Flex India Community
Hi,

You can use selected.indexNumber and restrict like if indexNumber ==1.
then column can be drag.

abhishekchess1

unread,
Dec 27, 2009, 8:34:30 AM12/27/09
to Flex India Community
hey frnd,
which event we can use to track dragging in ADG?
:)

raj

unread,
Dec 28, 2009, 1:11:49 AM12/28/09
to Flex India Community
Hi,

You can override shiftColumns function of Advanced Data grid.

override mx_internal function shiftColumns(oldIndex:int,
newIndex:int,
trigger:Event = null):void
{
if(newIndex == 0 || oldIndex == 0)
{
// Do nothing
}
else
{
super.shiftColumns(oldIndex,newIndex,trigger);
}
}

With regards,
Raj

On Dec 27, 6:34 pm, abhishekchess1 <abhishekche...@gmail.com> wrote:
> hey frnd,

> which event we can use to track dragging in ADG?
> :)
>
> On Dec 25, 11:02 am, ManInAction <manesh.bahug...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > You can use selected.indexNumber and restrict like if indexNumber ==1.
> > then column can bedrag.
>
> > On Dec 24, 4:49 pm, abhishekchess1 <abhishekche...@gmail.com> wrote:
>
> > > hey frnd,
> > > i'm using ADG  to show data .

> > > I want to allow user todraganycolumnsand drop on other column tht
> > > why swapping ofcolumnswill be happen.
> > > But only restrict user todragfirst column. How can i do it in Flex


> > > 3 ?
> > > Is any way there?
> > > thx inadvanced,

> > > :)- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages