We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to display a popup Window when the HyperLink cell is clicked

Platform: Silverlight |
Control: PivotGridControl |
Published Date: November 26, 2014 |
Last Revised Date: November 26, 2014

XAML

<TextBlock Text="Popup window with hyperlinkcellclick value" Foreground="DeepPink" FontSize="10" Grid.Row="0" Grid.ColumnSpan="2" />

                                <TextBlock Text="Value" Grid.Row="2" Grid.Column="0" />

                                <TextBlock Name="value" Grid.Row="2" Grid.Column="1" Foreground="Maroon"/>

                                <Button Content="Close pop Up" Click="Button_Click" Grid.Row="4" Grid.ColumnSpan="2"/>

 

C#

this.pivotGridControl1.HyperlinkCellClick +=new HyperlinkCellClick(pivotGrid1_HyperlinkCellClick);

 

private void pivotGrid1_HyperlinkCellClick(object sender, HyperlinkCellClickEventArgs e)

        {

            popup.IsOpen = true;

            popup.Visibility = Visibility.Visible;

            value.Text = e.PivotCellInfo.FormattedText;

        }

 

 

        private void Button_Click(object sender, RoutedEventArgs e)

        {

            popup.IsOpen = false;

            popup.Visibility = Visibility.Collapsed;

        }

 

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.38.02.png

Figure: Normal Pivot Grid

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.39.26.png

Figure: Pivot Grid with pop up Window

 

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon