Telerik Forums
UI for WPF Forum
11 answers
577 views
Greetings.

I am using the Telerik RadGridView control to display data. In one screen I am using it without the rowstyleselector, in another I am using it with the rowstyleselector.

In the instance without the rowstyleselector, I use GridLinesVisibility="None"> and it works fine, the gridlines are gone.

But in the instance with the rowstyleselector, I use the following code, but the gridlines are still visible.

<Queue:TelephonyCallQueueRowStyleSelector.ConnectedToOtherStyle>
            <Style TargetType="TelerikGridView:GridViewRow">
                <Setter Property="Background">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="Black" Offset="0.96"/>
                            <GradientStop Color="#FFBDFDBD" Offset="0.95"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
                
                <Setter Property="Grid.ShowGridLines" Value="False" />
            </Style>
        </Queue:TelephonyCallQueueRowStyleSelector.ConnectedToOtherStyle>

Why won't the gridlines go away?

Thanks,

Wade
Stefan
Telerik team
 answered on 18 Dec 2018
1 answer
141 views
We are facing issue while opening a word document in radrichtextbox control using ribbon button UI as well as importing the document using DocxFormatProvider and XamlFormatProvider. The control renders the word file in a very messy format. Common features of MS office are used in the file. Sample file, code and video evidence is attached. Kindly look into this issue. Thank you
Boby
Telerik team
 answered on 18 Dec 2018
3 answers
151 views

Hello.
I am testing a WPF Org Chart Diagram and I need to dynamic create child nodes when user clicks the Node (lazy loading).
But I have a problem. When I create new node and link and call diagram.Layout(...), routing is corrupted.

How to fix it?

Konstantin
Top achievements
Rank 1
 answered on 18 Dec 2018
2 answers
314 views

I have a RadCartesianChart in that I am adding different series (Area/Line mainly)  and calculating datapoint on mouse hover .

I would like to prioritize to line series and calculate datapoint of Line series  if line series is over lapped with area series.

I can get the selected series if mouse click happened and chartBehavior is associated with RadCartesianChart , but looking for solution which give me current hovered series.

Is there any way in code behind or in event I can get which series of chart is currently hovered ?

appreciate your help

Regards,

Jyoti

Jyoti
Top achievements
Rank 1
 answered on 17 Dec 2018
3 answers
322 views

Hi Telerik,

Can you advice me how to handle my issue with ChartTrackBallBehavior. As you can see in attached image, ChartTrackBallBehavior  hides chart itself. I would like to know what is my options to solve this issue?

Is it possible to change position of ChartTrackBallBehavior when it start hiding chart?

My another idea is change vertical range so tracking ball will be always above chart. telerik:LinearAxis has Maximum property. I would like to stay with auto calculated range and just increase it about 20%. Is there some way how to achieve this? This is my current axes definition:

 

<telerik:RadCartesianChart.VerticalAxis>

                        <telerik:LinearAxis MajorStep="100" SmartLabelsMode="SmartStepAndRange" />
</telerik:RadCartesianChart.VerticalAxis>

 

Thanks,

Vaclav

 

Martin Ivanov
Telerik team
 answered on 17 Dec 2018
2 answers
147 views

Hello,

First thank you for xaml-sdk\Map\WPF\SQLGeospatialData\ example

As i can see telerik:SqlGeospatialDataReader has property PointTemplate, but how i can set template for all other Sql Geospatial Data Types?

The SqlGeospatialDataReader supports the following geometry types:
Point
LineString
Polygon
Triangle
MultiPoint
MultiLineString
MultiPolygon
GeometryCollection

Martin Ivanov
Telerik team
 answered on 17 Dec 2018
6 answers
260 views

In winform demos, it use FastLineSeries and have nice fps, very smooth.

how can i do it in wpf?

Si
Top achievements
Rank 1
 answered on 15 Dec 2018
1 answer
339 views
Hi, I'm currently using Radsplitcontainer, radpanegroup and radpane and I'm having a problem with settings which of the tab in the radpanegroup should be active. I got two viewmodels, and I want to use a bool to make the tabs active according to which ViewModel event that is invoking. How can I do this?

Because I'm using a gridView, and by selecting an item in the grid, I the tab to be active depending on which gridview I'm selecting an item on. This mean that I'll have 2 gridviews, and the radpane is supposed to be a tab window that shows the details of the item selected.

<telerik:RadPaneGroup TabStripPlacement="Top" telerik:ProportionalStackPanel.RelativeSize="100,300" >
                        <telerik:RadPane Header="{Binding viewModel1.Title, Mode=TwoWay}" CanUserClose="False" CanDockInDocumentHost="True" >
                            <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                                <ContentControl Content="{Binding viewModel1}"
    ContentTemplate="{StaticResource ViewEditorTemplate1}" />
                            </ScrollViewer>
                        </telerik:RadPane>
                        <telerik:RadPane Header="{Binding viewModel2.Title}" CanUserClose="False" CanDockInDocumentHost="True" telerik:ProportionalStackPanel.RelativeSize="200, 100" >
                            <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                                <ContentControl Content="{Binding viewModel2}"
                                                ContentTemplate="{StaticResource ViewEditorTemplate1}"/>
                            </ScrollViewer>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
Vladimir Stoyanov
Telerik team
 answered on 14 Dec 2018
11 answers
1.0K+ views
The focus events for the RadRichTextBox don't appear to be firing correctly.  There's a number of issues, which I'll list in turn.  We need to do things according to whether the control has the focus or not, and currently its unexpected behaviour is causing us a lot of problems.

For the purpose of reproducing the behaviour, simply place a RadRichTextBox control on a view, and handle its GotFocus and LostFocus events with the following event handlers, which will write to Visual Studio's Output window so you can see that they've been called.

private void RadRichTextBoxEx_LostFocus(object sender, RoutedEventArgs e)
{
    Console.WriteLine("LostFocus");
}
 
private void RadRichTextBoxEx_GotFocus(object sender, RoutedEventArgs e)
{
    Console.WriteLine("GotFocus");
}


#1 - Clicking the mouse anywhere within the control fires the events

Let's say the RadRichTextbox control has the focus.  Clicking the mouse anywhere within the control fires the LostFocus and GotFocus events twice, with the following output in the VS Output window:

LostFocus
GotFocus
LostFocus
GotFocus

I would expect neither the LostFocus not the GotFocus events to be fired, as the control already has the focus.

If the control doesn't have the focus and you click in it (giving it the focus), then the following events are currently raised:

GotFocus
LostFocus
GotFocus

In this situation, I would expect only the first GotFocus event to be raised.

NOTE: I have tried handling the KeyboardGotFocus/KeyboardLostFocus events, and they behave the same way.

#2 - Clicking on a control that doesn't take focus, still fires these events

Let's say the RadRichTextBox control has the focus, and you click on a different control that doesn't steal the focus from the RadRichTextBox control, such as a ribbon button (note, we aren't using the Telerik ribbon currently, but that shouldn't matter).  Doing so fires the events like so:

LostFocus
GotFocus

The expected behaviour is that neither of those events should be called.

#3 - When overriding the RadRichTextBox control, neither the OnGotFocus, nor the OnLostFocus methods fire

While this is not really an issue for me, I tried overriding the RadRichTextBox control to add my own behaviour to it, and found that if I override the OnGotFocus and OnLostFocus methods, they never get called.  Something maybe to look at as part of this problem.

Please note that all these scenarios have been tried on a plan TextBox control, and it fires its GotFocus/LostFocus events as per my expected behaviour described.  Therefore, I would expect the RadRichTextBox control to behave in the same manner.

Thanks

Chris Anderson
Boby
Telerik team
 answered on 14 Dec 2018
3 answers
335 views

Hello,

In our application we are using a few separator that are used to resize the two panels (right & left), those two panels contain GridViews. It used to work perfectly but when switching to .NET 4.7.2 (from 4.5.2), this resizing causes the app to freeze entirely. Removing the GridView controls seems to fix the issue, hence why I think there is something wrong with the GridView (or one of the Windows API its using)

Now, the issue only seems to happen on a specific hardware and some kind of setup. An easy way to reproduce it is (in our case) to run the app on the main screen on a Lenovo E580 laptop. We are currently running WPF 2018 R2, but upgrading to R3 doesn't fix the issue.

I was simply wondering, before I open a bug and build a test app to show the error, if you were aware of an issue with the GridView (or other Telerik control for that matter) when running .NET 4.7.2?

 

Best Regards,

Bastian

Vladimir Stoyanov
Telerik team
 answered on 14 Dec 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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?