Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For some reason the problem was that I was using a button in the datatemplate as</p> <pre><code>&lt;Button Content="Edit" Style="{StaticResource HyperLinkButtonStyle}" Click="EditButton_Click" /&gt; </code></pre> <p>Something about the Button was making the gridview have to first focus itself into the view before a subsequent click on that button would fire the click event in the cases where it was not fully fitting on the screen..</p> <p>I ended up doing the workaround of simply using a telerik label and giving it a MouseLeftButtonDown event</p> <pre><code>&lt;telerik:Label Content="Edit" TouchDown="EditButton_Click" MouseLeftButtonDown="EditButton_Click" Style="{StaticResource HyperLinkStyle}"/&gt; </code></pre> <p>Pretty sure you should be able to use a regular label as well</p> <p>The HyperLinkStyle is just a style that makes the label underlined and gives it a color and hover state</p> <pre><code>&lt;UserControl.Resources&gt; &lt;Style x:Key='HyperLinkStyle' TargetType='telerik:Label'&gt; &lt;Setter Property='Template'&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType='telerik:Label'&gt; &lt;TextBlock TextDecorations='Underline'&gt; &lt;ContentPresenter TextBlock.FontFamily='Segoe UI' TextBlock.FontSize='13'/&gt; &lt;/TextBlock&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;Setter Property='Foreground' Value='#195AE0' /&gt; &lt;Style.Triggers&gt; &lt;Trigger Property='IsMouseOver' Value='true'&gt; &lt;Setter Property='Foreground' Value='Red' /&gt; &lt;Setter Property='Cursor' Value='Hand' /&gt; &lt;/Trigger&gt; &lt;/Style.Triggers&gt; &lt;/Style&gt; &lt;/UserControl.Resources&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload