[flexcoders] Re: Resize DataGrid Row on ItemEditor showEvent with variableRowSize=true?

2007-11-09 Thread lytvynyuk
based on the itemEditors Height not the itemEditors Height. - sound
funny, but I understand what do u mean ;)
Make your Editor and Renderer height same, that is it. But is they are
physically cannot be same height, as I understand your problem, after
edit done row height not coming back to Renderer height?

Can you bring an example here?

--- In flexcoders@yahoogroups.com, danielspirn [EMAIL PROTECTED]
wrote:

 I'm trying to have the Datagrid Row resize based on the itemEditors
 Height not the itemEditors Height.

 Thus every time a user selects a cell to edit the selected row will
 grow in size to accommodate the Editor.

 With variableRowSize = true, the sizes are set based on the
 itemRender, but since my render and editor are different, I'm unable
 to get the DataGrid to recognize a change in the itemRender and resize
 just the row that has grown.

 I can set the rowSize if I switch variableRowSize back to false. And
 se the rowSize at event handler for all the rows at the
 itemEditBeginning and at itemEditBegin, but what I really want is have
 variableRowSize=true and have the DataGrid remeasure its rows at time
 with the Editor dropped In.

 Because Editors have be created and held in Memory for re-use the only
 event I can trap-off of might be FlexEvent.DataChanged on the Editor.

 Anyone tackled this issue.  Should I punt and try to solve this with
 the AdvancedDataGrid?

 Thanks

 Daniel




[flexcoders] Re: Resize DataGrid Row on ItemEditor showEvent with variableRowSize=true?

2007-11-09 Thread danielspirn
Sorry for my lack of proof reading.

ItemEditor vs ItemRenderer for determining a rows height.

If the ItemEditor is sized differently then the itemRenderer, what is
the best practice for getting the DataGrid to redraw the rows with
variableRowHeight=true at the time that itemEditor is displayed.

The ItemRenderer is initially shown for all rows, but once the user
selects a cell then its the itemEditor that is displayed.

The Event Life Cycle for editor triggers 2 events [ itemEditBeginning
 itemEditBegin ] where I've tried to invalidateDisplay and
invalidateSize of the dataGrid.

I've determined at itemEditBeginning the editor not yet inserted, and
at itemEditBegin I still can't get the DataGrid to upDate the size of
just the current row with focus.

I'll have to wrap some code before I can get an example together, lots
of components required to explain this issue.

thanks for your reply.

Daniel

--- In flexcoders@yahoogroups.com, lytvynyuk [EMAIL PROTECTED] wrote:

 based on the itemEditors Height not the itemEditors Height. - sound
 funny, but I understand what do u mean ;)
 Make your Editor and Renderer height same, that is it. But is they are
 physically cannot be same height, as I understand your problem, after
 edit done row height not coming back to Renderer height?
 
 Can you bring an example here?
 
 --- In flexcoders@yahoogroups.com, danielspirn danielspirnflex@
 wrote:
 
  I'm trying to have the Datagrid Row resize based on the itemEditors
  Height not the itemEditors Height.
 
  Thus every time a user selects a cell to edit the selected row will
  grow in size to accommodate the Editor.
 
  With variableRowSize = true, the sizes are set based on the
  itemRender, but since my render and editor are different, I'm unable
  to get the DataGrid to recognize a change in the itemRender and resize
  just the row that has grown.
 
  I can set the rowSize if I switch variableRowSize back to false. And
  se the rowSize at event handler for all the rows at the
  itemEditBeginning and at itemEditBegin, but what I really want is have
  variableRowSize=true and have the DataGrid remeasure its rows at time
  with the Editor dropped In.
 
  Because Editors have be created and held in Memory for re-use the only
  event I can trap-off of might be FlexEvent.DataChanged on the Editor.
 
  Anyone tackled this issue.  Should I punt and try to solve this with
  the AdvancedDataGrid?
 
  Thanks
 
  Daniel
 





RE: [flexcoders] Re: Resize DataGrid Row on ItemEditor showEvent with variableRowSize=true?

2007-11-09 Thread Alex Harui
Not sure, but I'd try cancelling Itemeditbeginning, resize, then set
editeditempos, or use rendereriseditor and resize with the ieditor as a
child of the renderer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielspirn
Sent: Friday, November 09, 2007 2:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Resize DataGrid Row on ItemEditor showEvent
with variableRowSize=true?

 

Sorry for my lack of proof reading.

ItemEditor vs ItemRenderer for determining a rows height.

If the ItemEditor is sized differently then the itemRenderer, what is
the best practice for getting the DataGrid to redraw the rows with
variableRowHeight=true at the time that itemEditor is displayed.

The ItemRenderer is initially shown for all rows, but once the user
selects a cell then its the itemEditor that is displayed.

The Event Life Cycle for editor triggers 2 events [ itemEditBeginning
 itemEditBegin ] where I've tried to invalidateDisplay and
invalidateSize of the dataGrid.

I've determined at itemEditBeginning the editor not yet inserted, and
at itemEditBegin I still can't get the DataGrid to upDate the size of
just the current row with focus.

I'll have to wrap some code before I can get an example together, lots
of components required to explain this issue.

thanks for your reply.

Daniel

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, lytvynyuk [EMAIL PROTECTED] wrote:

 based on the itemEditors Height not the itemEditors Height. - sound
 funny, but I understand what do u mean ;)
 Make your Editor and Renderer height same, that is it. But is they are
 physically cannot be same height, as I understand your problem, after
 edit done row height not coming back to Renderer height?
 
 Can you bring an example here?
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , danielspirn danielspirnflex@
 wrote:
 
  I'm trying to have the Datagrid Row resize based on the itemEditors
  Height not the itemEditors Height.
 
  Thus every time a user selects a cell to edit the selected row will
  grow in size to accommodate the Editor.
 
  With variableRowSize = true, the sizes are set based on the
  itemRender, but since my render and editor are different, I'm unable
  to get the DataGrid to recognize a change in the itemRender and
resize
  just the row that has grown.
 
  I can set the rowSize if I switch variableRowSize back to false. And
  se the rowSize at event handler for all the rows at the
  itemEditBeginning and at itemEditBegin, but what I really want is
have
  variableRowSize=true and have the DataGrid remeasure its rows at
time
  with the Editor dropped In.
 
  Because Editors have be created and held in Memory for re-use the
only
  event I can trap-off of might be FlexEvent.DataChanged on the
Editor.
 
  Anyone tackled this issue. Should I punt and try to solve this with
  the AdvancedDataGrid?
 
  Thanks
 
  Daniel