1 Reply Latest reply on Jan 2, 2007 5:29 AM by peterent

    hyper link in DataGridColumn

    jaimon_jaimon
      hi, happy new year

      does any one knows how to create a hyper link inside a DataGridColumn component ??

      thanks,
      Jaimon
        • 1. Re: hyper link in DataGridColumn
          peterent Level 2
          Try this:

          <mx:DataGridColumn ...>
          <mx:itemRenderer>
          <mx:Component>
          <mx:LinkButton label={data. fieldnamehere} click="navigateToURL(new URLRequest({data. urlhere}))" />
          </mx:Component>
          </mx:itemRenderer>
          </mx:DataGridColumn>

          fieldnamehere - this is the value from the record which contains the string you want to use as a label.
          urlhere - this is the value from the record containing the URL you want to send the user to:

          {site:"Adobe", url:" http://www.adobe.com"}

          <mx:LinkButton label="{data.site}" click="navigateToURL(new URLRequest({data.url}))" />