Re: [Flashcoders] how to make single cell in the grid non editable?

2006-02-23 Thread Grant Cox
The only way I've done it is by making the entire datagrid non-editable, 
and listening for a double click on a single cell.  When this happens, 
if that cell can edited that column is set to editable, and the 
appropriate cell is selected.  On a mouse deselect (onBlur?) the column 
is set back to non-editable.


Generally I've found that double clicking to edit a field works quite 
well, as I never liked that just selecting a row would start to edit the 
actual cell clicked.



Oleg Filipchuk wrote:


I hope it would be better. It's nothing else left. :(

So does anyone know any smart solution about making individual cell
non/editable?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] how to make single cell in the grid non editable?

2006-02-23 Thread Oleg Filipchuk
I hope it would be better. It's nothing else left. :(

So does anyone know any smart solution about making individual cell
non/editable?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] how to make single cell in the grid non editable?

2006-02-22 Thread Scott Hyndman
> And it's not fully working in case when user navigates trough datagrid using
> arrows or enter key. I REALLY REALLY start to hate  this  v2 standard
> DataGrid and can't wait until I can use  Flex2 components.

Are you sure they're so different? It's a very similar framework. I'm sure 
there is a lot of code reuse...or at least reuse of architectural ideas.

Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] how to make single cell in the grid non editable?

2006-02-22 Thread Oleg Filipchuk
eric, thanx for your advise.

I made it invoking cellPress listener. It's really messy and I DO NOT LIKE
this solution at all.

private function cellPress(evt:Object):Void {
   if ( dataGrid.selectedItem.UserType == 3 ) {
dataGrid.editable = false;
} else {
dataGrid.editable = true;
}
}

And it's not fully working in case when user navigates trough datagrid using
arrows or enter key. I REALLY REALLY start to hate  this  v2 standard
DataGrid and can't wait until I can use  Flex2 components.

Is this any way to do it trough CellRenderer?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] how to make single cell in the grid non editable?

2006-02-22 Thread eric dolecki
you might be able to hook up a listener in a cell and if its a certain row
#, force the thing to become uneditable. it would look kind of nasty (click
into, goes into edit mode, then pops out of edit mode)... or you could roll
a cellRenderer and try it that way. Sounds kind of messy - but something a
good dataGrid (sic) should support IMHO.

On 2/22/06, Oleg Filipchuk <[EMAIL PROTECTED]> wrote:
>
> Hi list.
> Is it possible to make single cell in the grid non editable?
> I can do make non-editable column but that is not what I need.
>
> thx.
> Oleg
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] how to make single cell in the grid non editable?

2006-02-22 Thread Oleg Filipchuk
Hi list.
Is it possible to make single cell in the grid non editable?
I can do make non-editable column but that is not what I need.

thx.
Oleg
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com