[flexcoders] Re: Inline DateField ItemRenderer causes Entire Datagrid contents to disappear
Yep, that's what it was...I find it odd that it didn't display an actual RTE or mention that fact in more places. I could only find one reference in one document out there from Adobe...must be dumb luck, but I was able to fix it easily enough once I figured that out. Thanks! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The DateField expects a data[dataField] to be of type Date not String. You'll probably have to convert String to Date. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Sherwood Sent: Thursday, March 22, 2007 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Inline DateField ItemRenderer causes Entire Datagrid contents to disappear I discovered that if I set the dataField= in the mx:DatagridColumn tag, then it renders the DateField control. I'm stumped why I can't set the dataField=requested_date, which is a string representation of a properly formatted date out of the database... any thoughts? Thanks, Chad --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Chad Sherwood csherwood@ wrote: I have 7 different itemRenderers in my datagrid. As long as I don't use the DateField as an inline ItemRenderer, everything is fine, all other renderers actually appear, along with the data they contain. As soon as I add in the simplest version of the DateField object as the itemRenderer, everything in the datagrid completely disappears. Anyone have any thoughts on what might be happening? Here is my datagrid layout: mx:DataGrid id=catalogsGrid width={this.width-100} height={this.height-150} sortableColumns=true mx:columns mx:DataGridColumn dataField=status_indicator editable=false editorDataField=value headerText=Status rendererIsEditor=true mx:itemRenderer mx:Component mx:ComboBox dataProvider={outerDocument.statusDataProvider} text={data.status_description} dataChange=outerDocument.setStatus (event) change=outerDocument.changeStatus (event)/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=quantity editable=true editorDataField=value headerText=Quantity rendererIsEditor=true width=65 mx:itemRenderer mx:Component mx:NumericStepper minimum=1 maximum=99/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=requested_date headerText=Requested On editorDataField=selectedDate itemRenderer=mx.controls.DateField /mx:DataGridColumn mx:DataGridColumn dataField=labels_printed_date headerText=Printed On editorDataField=text editable=false rendererIsEditor=false width=120 mx:itemRenderer mx:Component mx:TextInput editable=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn ...
[flexcoders] Inline DateField ItemRenderer causes Entire Datagrid contents to disappear
I have 7 different itemRenderers in my datagrid. As long as I don't use the DateField as an inline ItemRenderer, everything is fine, all other renderers actually appear, along with the data they contain. As soon as I add in the simplest version of the DateField object as the itemRenderer, everything in the datagrid completely disappears. Anyone have any thoughts on what might be happening? Here is my datagrid layout: mx:DataGrid id=catalogsGrid width={this.width-100} height={this.height-150} sortableColumns=true mx:columns mx:DataGridColumn dataField=status_indicator editable=false editorDataField=value headerText=Status rendererIsEditor=true mx:itemRenderer mx:Component mx:ComboBox dataProvider={outerDocument.statusDataProvider} text={data.status_description} dataChange=outerDocument.setStatus (event) change=outerDocument.changeStatus (event)/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=quantity editable=true editorDataField=value headerText=Quantity rendererIsEditor=true width=65 mx:itemRenderer mx:Component mx:NumericStepper minimum=1 maximum=99/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=requested_date headerText=Requested On editorDataField=selectedDate itemRenderer=mx.controls.DateField /mx:DataGridColumn mx:DataGridColumn dataField=labels_printed_date headerText=Printed On editorDataField=text editable=false rendererIsEditor=false width=120 mx:itemRenderer mx:Component mx:TextInput editable=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn ...
[flexcoders] Re: Inline DateField ItemRenderer causes Entire Datagrid contents to disappear
I discovered that if I set the dataField= in the mx:DatagridColumn tag, then it renders the DateField control. I'm stumped why I can't set the dataField=requested_date, which is a string representation of a properly formatted date out of the database... any thoughts? Thanks, Chad --- In flexcoders@yahoogroups.com, Chad Sherwood [EMAIL PROTECTED] wrote: I have 7 different itemRenderers in my datagrid. As long as I don't use the DateField as an inline ItemRenderer, everything is fine, all other renderers actually appear, along with the data they contain. As soon as I add in the simplest version of the DateField object as the itemRenderer, everything in the datagrid completely disappears. Anyone have any thoughts on what might be happening? Here is my datagrid layout: mx:DataGrid id=catalogsGrid width={this.width-100} height={this.height-150} sortableColumns=true mx:columns mx:DataGridColumn dataField=status_indicator editable=false editorDataField=value headerText=Status rendererIsEditor=true mx:itemRenderer mx:Component mx:ComboBox dataProvider={outerDocument.statusDataProvider} text={data.status_description} dataChange=outerDocument.setStatus (event) change=outerDocument.changeStatus (event)/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=quantity editable=true editorDataField=value headerText=Quantity rendererIsEditor=true width=65 mx:itemRenderer mx:Component mx:NumericStepper minimum=1 maximum=99/ /mx:Component /mx:itemRenderer /mx:DataGridColumn mx:DataGridColumn dataField=requested_date headerText=Requested On editorDataField=selectedDate itemRenderer=mx.controls.DateField /mx:DataGridColumn mx:DataGridColumn dataField=labels_printed_date headerText=Printed On editorDataField=text editable=false rendererIsEditor=false width=120 mx:itemRenderer mx:Component mx:TextInput editable=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn ...
[flexcoders] Validator Problems - Not clearing when disabled
I'm using flex 2.0 and multiple validators in such a manner that I enable/disable them depending on whether some text has been placed in specific textInput controls. However, *most* of the time, the validators are disabled but the screen still reflects that they are operating (ie, the red boxes around the previously mentioned textboxes). Seems like a bug to me. It has happened on the Number Validator, the String validator to my knowledge, maybe more of them. Here's my mxml. I have 3 validators, one for each of the text fields. When the user has changed the data in a textinput, I call a function that re-evaluates all the validators to make sure they should be enabled/disabled. I have verified that they are disabled AND not required, but the screen still continues to show them as red boxes. Any ideas on this problem would be welcome :) Thanks! Chad - ?xml version=1.0 encoding=utf-8? mx:Panel title=Jockey Club Horse Finder xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:control=com.keeneland.salessystem.control.* creationComplete=onCreationComplete() horizontalAlign=left defaultButton={searchButton} width=100% height=100% styleName=GeneralFormBackGround alpha=100 mx:Script source=SaleJockeyClubHorseFinderViewHelper.as/ mx:Form width=100% height=100% mx:HBoxhorizontalAlign=center verticalAlign=middle mx:FormItem label=Search For Horse: id=horseLabel mx:TextInput id=horseName width=150 height=23 change=enableValidations()/ /mx:FormItem mx:FormItem label=Dam: id=damLabel mx:TextInput id=damName width=150 height=23 change=enableValidations();/ /mx:FormItem mx:FormItem label=YOB: id=yobLabel mx:TextInput id=yob width=50 height=23 change=enableValidations(); focusOut=changeYOB()/ /mx:FormItem /mx:HBox mx:HBox mx:Button id=searchButton label=Search click=search() enabled={CommonViewHelper.len(this.horseName.text)0 || CommonViewHelper.len(this.damName.text)0}/ mx:Button id=clearButton label=Clear click=clearButtonClicked() enabled=true/ /mx:HBox mx:VBox horizontalAlign=right mx:Label id=statusMessage text= / mx:DataGrid id=horsesGrid width=550 editable=false sortableColumns=true resizableColumns=true doubleClickEnabled=true doubleClick=okButtonClicked();/ /mx:VBox /mx:Form !-- Button Section 1 -- mx:ControlBar width=100% horizontalAlign=left mx:Button id=okButton label=OK click=okButtonClicked() enabled={horsesGrid.selectedIndex-1? true:false}/ mx:Button id=cancelButton label=Cancel click=closePopUp()/ /mx:ControlBar mx:StringValidator id=validatorDamName property=text source={damName} required=false enabled=false minLength=3 tooShortError={MessageModelLocator.getInstance ().msgTooShortError}/ mx:StringValidator id=validatorHorseName property=text source={horseName} enabled=false minLength=3 required=false tooShortError={MessageModelLocator.getInstance ().msgTooShortError}/ mx:StringValidator id=validatorYOB
[flexcoders] Re: Setting row focus when user clicks in a column using ItemRenderers
I went into debug mode to examine the listData variable, it does exist, however its ALWAYS null. Any ideas what I've done wrong or not done? No matter what point I review that variable, it's always null. Thanks, Chad Doug Lowder [EMAIL PROTECTED] wrote: Your item renderer should have a listData property, which is an instance of the BaseListData class. There are rowIndex and owner properties of BaseListData that you can use to manipulate the selectedIndex or selectedIndices property of your dataGrid to select a row. --- In flexcoders@yahoogroups.com, csherwood999 csherwood@ wrote: I've got a datagrid with 4 columns, each with a different itemRenderer. I have noticed that I can click into any of my item Renderers without actually selecting the entire row. How can I force the row to be highlighted when the user clicks into an itemRenderer? An example with an explanation would be great! Thanks, Chad Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/