[flexcoders] Re: DataGrid Column updates
I ended off calling setValue on the column headerCell to update the header, and am triggering a modelChanged updateAll to get the grid to redraw. I will try setting the headerText and the invalidate() again in case I made an error. - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think you should still set headerText and it will call setValue for you and force the redraw. I don't know if calling setValue yourself will work. Not sure why invalidate() isn't working. This is undocumented but you could try calling updateControl() on the DG. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 6:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates The invalidate did not result in the view to be updated until some action such as scrolling took place. How can I have the grid redraw itself. I tried redraw(true) but that did not seem to work either. Thanks. --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Thanks - 1. As I have a headerRenderer does this mean that I should directly call setValue ? 2. Calling invalidate will result in a redraw of the entire grid. Is there a way to just redraw the column's cells. When should one call invalidate() vs dispatching a modelChanged updateAll on the dataProvider ? Thanks - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1. You can simply set the headerText on the DataGridColumn 2. Call invalidate() on the DataGrid 3. same as 2 (though you might need to reset the headerText on the column for the header to redraw). Jim's suggestion while it may work is completely undocumented and thus unsupported. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ http://docs.yahoo.com/info/terms/ Terms of Service. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: DataGrid Column updates
If it works stick with it J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Wednesday, April 27, 2005 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates I ended off calling setValue on the column headerCell to update the header, and am triggering a modelChanged updateAll to get the grid to redraw. I will try setting the headerText and the invalidate() again in case I made an error. - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think you should still set headerText and it will call setValue for you and force the redraw. I don't know if calling setValue yourself will work. Not sure why invalidate() isn't working. This is undocumented but you could try calling updateControl() on the DG. Matt _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 26, 2005 6:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates The invalidate did not result in the view to be updated until some action such as scrolling took place. How can I have the grid redraw itself. I tried redraw(true) but that did not seem to work either. Thanks. --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Thanks - 1. As I have a headerRenderer does this mean that I should directly call setValue ? 2. Calling invalidate will result in a redraw of the entire grid. Is there a way to just redraw the column's cells. When should one call invalidate() vs dispatching a modelChanged updateAll on the dataProvider ? Thanks - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1. You can simply set the headerText on the DataGridColumn 2. Call invalidate() on the DataGrid 3. same as 2 (though you might need to reset the headerText on the column for the header to redraw). Jim's suggestion while it may work is completely undocumented and thus unsupported. Matt _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 26, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ http://docs.yahoo.com/info/terms/ Terms of Service. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: DataGrid Column updates
You might try setting the booleans invDrawCols and invInitHeaders to true on the DG. The columns and headers shoud be redrawn next time round, or you could force a redraw. Check out the DG code in Flex for Flash ... it should make it clear. Jim On 4/26/05, viraf_bankwalla [EMAIL PROTECTED] wrote: Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataGrid Column updates
Thanks - 1. As I have a headerRenderer does this mean that I should directly call setValue ? 2. Calling invalidate will result in a redraw of the entire grid. Is there a way to just redraw the column's cells. When should one call invalidate() vs dispatching a modelChanged updateAll on the dataProvider ? Thanks - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1.You can simply set the headerText on the DataGridColumn 2.Call invalidate() on the DataGrid 3.same as 2 (though you might need to reset the headerText on the column for the header to redraw). Jim's suggestion while it may work is completely undocumented and thus unsupported. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: DataGrid Column updates
The invalidate did not result in the view to be updated until some action such as scrolling took place. How can I have the grid redraw itself. I tried redraw(true) but that did not seem to work either. Thanks. --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Thanks - 1. As I have a headerRenderer does this mean that I should directly call setValue ? 2. Calling invalidate will result in a redraw of the entire grid. Is there a way to just redraw the column's cells. When should one call invalidate() vs dispatching a modelChanged updateAll on the dataProvider ? Thanks - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1. You can simply set the headerText on the DataGridColumn 2. Call invalidate() on the DataGrid 3. same as 2 (though you might need to reset the headerText on the column for the header to redraw). Jim's suggestion while it may work is completely undocumented and thus unsupported. Matt _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: DataGrid Column updates
I think you should still set headerText and it will call setValue for you and force the redraw. I dont know if calling setValue yourself will work. Not sure why invalidate() isnt working. This is undocumented but you could try calling updateControl() on the DG. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 26, 2005 6:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates The invalidate did not result in the view to be updated until some action such as scrolling took place. How can I have the grid redraw itself. I tried redraw(true) but that did not seem to work either. Thanks. --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Thanks - 1. As I have a headerRenderer does this mean that I should directly call setValue ? 2. Calling invalidate will result in a redraw of the entire grid. Is there a way to just redraw the column's cells. When should one call invalidate() vs dispatching a modelChanged updateAll on the dataProvider ? Thanks - viraf --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: 1. You can simply set the headerText on the DataGridColumn 2. Call invalidate() on the DataGrid 3. same as 2 (though you might need to reset the headerText on the column for the header to redraw). Jim's suggestion while it may work is completely undocumented and thus unsupported. Matt _ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Tuesday, April 26, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataGrid Column updates Any suggestions ? --- In flexcoders@yahoogroups.com, viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, 1. What is the best way to have a column's headerRenderer update its value (i.e. call setValue). 2. Have a column update its conthent - i.e. each of the column rows update themselves - i.e. call setValue. 3. Have the column header and cells update themselves. Thanks. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.