Telerik Forums
UI for WPF Forum
1 answer
256 views

I can't seem to find how I can intercept the hyperlink clicked event from a hyperlink in a cell in a RadSpreadSheet .The RadSpreadSheet is inside a RadRibbonWindow, if that makes a difference.

I've tried doing the following, but it does not work:

public MainWindow()
{
    InitializeComponent();
    this.AddHandler(Hyperlink.ClickEvent, new RoutedEventHandler(HyperlinkClicked));

}

private static void HyperlinkClicked(object sender, RoutedEventArgs e)
{

   // Some code

}

 

What is the correct solution to handle when a hyperlink is clicked?

Martin
Telerik team
 answered on 29 Oct 2018
1 answer
196 views

I want to use MaskedTextInput to replace textbox with StringFormat, it is pretty simple.

<telerik:RadMaskedTextInput Text="{Binding SSN, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" InputBehavior="Replace"  Mask="###-##-####" />

I use it to display the SSN in the certain format when I get it from the service. Also I want to update it as well.

At the beginning, it is empty. I tried to insert a random value. But I can only insert the first two number. Sometimes even I can't insert a letter. There is a red X on the right of the textbox, Not sure what is wrong.

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 29 Oct 2018
3 answers
182 views

Hello,

I am using Telerik testing framework.

I need to test RadVerticalLinearGauge/RadHorizontalLinearGauge and RadRadialGauge that contains RadialScale/LinearScale, GaugeRanges, BarIndicator and Needles.

How can I get their properties like: ticks, colors, values of needle and bar, max, min etc.?

Thank's!

Nikolai
Telerik team
 answered on 29 Oct 2018
14 answers
150 views

Hi,
I'm testing your Outlook Template for visual studio, and I see that by marking an e-mail in the data-grid, you can mark the e-mail as read/unread, which make the font bold for the selected e-mail. But this read/unread command only apply for a single marked e-mail in the data-grid. 

I have now made it possible to mark multiple e-mails in the data-grid, but when I upon read/unread command, only the first e-mail I selected is marked unread/read and the rest is ignored. 
How do I enable the read/unread command to apply for all the selected e-mails?

Is it possible to set the documenthost window empty at application startup, instead of viewing the first mail?

Martin Ivanov
Telerik team
 answered on 29 Oct 2018
2 answers
311 views

Hello!

 

I'm using RadDiagramConnection to draw Line with Arrows. When I set StrokeDashArray to some array, for example "5 1" to draw dashed line, I get this dashed line on the border of my arrows.

So would you be so kind to tell me how I can remove these borders from my arrows please?

This is my code:

<telerik:RadDiagramConnection StartPoint="410,100" EndPoint="100,420"
                                                                  SourceCapType="Arrow1Filled" TargetCapType="Arrow1Filled"
                                                                  SourceCapSize="40,40" TargetCapSize="40, 40" StrokeDashArray="5 1"
                                                                  StrokeThickness="5" Background="White" BorderBrush="Transparent"
                                                                  Stroke="Red"
                                                                  />

Best regards,
Tatiana

Tatiana
Top achievements
Rank 1
 answered on 29 Oct 2018
1 answer
773 views

Hi,

I want radgridview to scroll like Datagid  (ScrollViewer.CanContentScroll="True")

 

<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <DataGrid ItemsSource="{Binding SampleDataList}"  ScrollViewer.CanContentScroll="True" Grid.Row="0" RowHeight="40" />
        <telerik:RadGridView  ItemsSource="{Binding SampleDataList}" Grid.Row="1" ScrollViewer.CanContentScroll="True" RowHeight="40"  />
    </Grid>
</Window>

Dilyan Traykov
Telerik team
 answered on 29 Oct 2018
4 answers
369 views

Hello,

 

I work with version 2016 R3.

 

I have a series of Data like this

DataType | DataPoint | Value

I displayed correctly all values with either DataType and DataPoint in column or row

 

Now I want to use different string format according to which DataType it corresponds.

I found the StringFormatSelector on the PropertyAggregateDescription and I thought I could use it like any [...]Selector but I don't have in input of the SelectStringFormat method the CellAggregateValue associated.

 

For now the only way to do that is by using a converter on the CellTemplateSelector of the PivotGrid

(I'm currently implementing it, it's not working as expected yet)

 

Is there a best way to achieve different string format according to a celldata ?

 

Regards

Thomas

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
1 answer
151 views

Hi,

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" >
                    <telerik:GridViewColumn.CellStyle>
                        <Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="ContentTemplate">
                                <Setter.Value>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <CheckBox x:Name="checkBox"/>
                                            <TextBlock x:Name="textBlockA" Text="AAAAAAA"/>
                                            <TextBlock x:Name="textBlockB" Text="BBBBBBB"/>
                                        </StackPanel>
                                        <DataTemplate.Triggers>
                                            <DataTrigger Binding="{Binding ElementName=checkBox,Path=IsChecked}" Value="false">
                                                <Setter TargetName="textBlockB" Property="Visibility" Value="Collapsed"/>
                                            </DataTrigger>
                                        </DataTemplate.Triggers>
                                    </DataTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerik:GridViewColumn.CellStyle>
                </telerik:GridViewDataColumn>

    I use your demo do a test about gridviewcolumn width, As the attach video show. 

 When I check the checkBox in column style,the column with stretch automatically, 

 when I unchecked, the column width  do not get shorter. Is there any method make the column get shorter When I unchecked in the NameColumn

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
0 answers
67 views

Hi,

I'm using the Outlook Template from Telerik.

What I've done is that I've swapped the current grid with my own item source which list the categories the 1. grid.

What I want to do is upon selecting a row, I want upon choosing a row from the 1.grid to send categoryID parameter to viewmodel, and viewmodel is going to run the sample function which retrieves the data from the database. 

My function is retrieving the data just fine. I just need to find out how to make selected row in grid 1, call on this retrieve data function and update the gridview 2 with new items. If I decide to choose another row in grid 1, it would call on the retrieve data function again with new categoryID as parameter

How can I achieve this?

Khoa
Top achievements
Rank 1
 asked on 26 Oct 2018
5 answers
682 views

Hello

I am in vb.net with wpf, I have an existing radgridview with custom validationDiffProperty. I am using telerik v 2017.3.1018.45

My goal is to add a radgriview row with radcombox (see attach image). I know how to add a radcombobox column in a radgridview, but I don't know how to add a "radcombobox row" in a radgriview.

Could you please help me ?

Regards

Jean-Christophe

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?