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

    hyper link in DataGridColumn

    jaimon_jaimon Level 1
      hi, happy new year

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

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

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

          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}))" />