Web Connection
Grid redirecting to blank targets
Gravatar is a globally recognized avatar based on your email address. Grid redirecting to blank targets
  Luca
  All
  Feb 12, 2018 @ 01:16am

Hi Rick, please how is possible to build a grid with links redirecting to blank targets?
I tried, but it does not work.
Thank you

<ww:wwWebDataGrid ID="Grid2" runat="server" DataSource="qCommesse">
  <columns>
    <ww:wwWebDataGridColumn ID="Column12" runat="server" 
      Expression="=HRef([EditCommesse.wc?Id=]+transform(Id),transform(Id))"
      HeaderText="Commesse" Style="target:_blank"
      >
    </ww:wwWebDataGridColumn>
  </columns>
</ww:wwWebDataGrid>



Gravatar is a globally recognized avatar based on your email address. re: Grid redirecting to blank targets
  Rick Strahl
  Luca
  Feb 12, 2018 @ 01:20pm

Use the lcAttributes parameter in the Href() function to set the target.

Expression="HRef([EditCommesse.wc?Id=]+transform(Id),transform(Id),[target='_blank' style='color: green'])"

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Grid redirecting to blank targets
  Luca
  Rick Strahl
  Feb 12, 2018 @ 07:08pm

Many thanks again, Rick.
Your Web Connection is a true masterpiece.

© 1996-2024