Telerik Forums
UI for WPF Forum
1 answer
137 views
Dear Sirs,

I work with RadVirtualGrid with DataProvider with which I would like to have a border on the entire row when it is selected, instead of having a border only on the cell.

Follows attached two files with images of what I would like to have and what I have now.
Dilyan Traykov
Telerik team
 answered on 19 Dec 2017
1 answer
207 views

Hello, I found a weird behavior with the trackball display when the chart is a bit large. Right now I'm displaying some statistics for a year worth of data, which demands a user scroll. I'm not using the Pan and Zoom as it adds complexity to the experience with the chart, so I'm just expanding the RadCartesianChart Width until it display all the data that I need to show, like this:

<ScrollViewer VerticalScrollBarVisibility="Disabled"
      HorizontalScrollBarVisibility="Auto"
      HorizontalAlignment="Stretch"
      VerticalAlignment="Stretch">
         <telerik:RadCartesianChart HorizontalAlignment="Left" Height="Auto"
                          Width="{Binding ItemsCount, Converter={StaticResource ChartBarSeriesCountToWidthConverter}}">
         </telerik:RadCartesianChart>
</ScrollViewer>

 

The problem is that, when I'm displaying the TrackBallInfoControl, and the Width of the Chart is higher than 15000 px, the Trackball control stops to move with the mouse and gets stuck at the 15000 px mark. The TrackBallLines are working fine, the problem only happens with the modal (tooltip) that is displayed.

The problem seems to be in the ChartTrackBallBehavior.

Why do you have such restriction, and how can I overcome it? Are there any workarounds for the RadCartesianChart and TrackBallInfoControl to make it work without facing this problem?

Thanks in advance

Martin Ivanov
Telerik team
 answered on 19 Dec 2017
3 answers
119 views
I am working on an application and using the Persistence Framework to save the settings of the Gridview I am using. I have the code from your demos in place and everything seems to work except I continue to get an InvalidCastException on the ColumnSortDescriptors when I save the seetings only in certain situations. If I group one column then save the settings the application will throw the exception, however, if I only change the sort of one column and save then everything saves perfectly and the exception is not thrown on the same line of code. Any help would be greatly appreciated. I will attach a picture of the exception to the post.
Vladimir Stoyanov
Telerik team
 answered on 19 Dec 2017
1 answer
247 views

I am developing an application and I used LayoutControl , I noticed that the window persist in memory when I close it  , even if I use GC.Collect() to wake up garbage collector, there is a memory leaks concerning LayoutControl.  

Otherwise, if I put any other telerik component like RadGridView or RadMenu the window object is removed from the memory after closing .

Please help because I use  LayoutControl in 120 interfaces.

I use ANTS Memory Profiler 8 , Telerik UI for WPF R3 2017 SP1 , win7 sp1 x64 , visual studio 2013.

Demo application : https://drive.google.com/open?id=1jzyLK9w6YMURHIIF4dkDUxUbzJrBWWPU

Petar Mladenov
Telerik team
 answered on 19 Dec 2017
2 answers
234 views
Hello, is it possible to force PDfViwer select only the whole words, but not the parts of them ? Thanks in advance
FirstName
Top achievements
Rank 1
 answered on 19 Dec 2017
1 answer
222 views

Hello

I need change some PropertyDefinition's IsEnabled on run time,my solution is change PropertyDefinition's IsReadonly
public virtual void SetEnabled() 
{
            var squidProperties = this.FindChildByType<RadPropertyGrid>() as RadPropertyGrid;
            if (squidProperties == null)
                return;
            foreach (var item in squidProperties.PropertyDefinitions)
            {
                item.IsReadOnly = !_enable;
                if (item.HasNestedProperties) 
                {
                    foreach (var subItem in item.NestedProperties) 
                    {
                        subItem.IsReadOnly = !_enable;
                    }
                }
            }
  }

when the PropertyDefinition has  EditorTemplate, when  the EditorTemplate is single control  as the following code  it is works right

<telerik:PropertyDefinition.EditorTemplate>
              <DataTemplate>    
                         <telerik:RadWatermarkTextBox 
                                                             IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
                                                             Text="{Binding Filter}" />                                
                 </DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>

but  when the EditorTemplate is nested controls  as the following code,  it is works wrong

   <telerik:PropertyDefinition.EditorTemplate>
                        <DataTemplate>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="auto" />
                                </Grid.ColumnDefinitions>
                                <telerik:RadWatermarkTextBox Grid.Column="0"
                                                             IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
                                                             Text="{Binding Filter}" />
                                <telerik:RadButton  />
                            </Grid>
                        </DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>

the RadWatermarkTextBox status is not readonly, when set the PropertyDefinition isreadonly true 

what is the reason for this?

Dilyan Traykov
Telerik team
 answered on 19 Dec 2017
1 answer
395 views
I have a datatble with 2 columns:
1. Name
2. IsEnabled
I want to bind each toggle button's IsEnabled to DataTable
for example if a toggle button's content is "Test" and there is row in
datatable with {Test,True}, this radio button's IsEnabled marks as True.
Martin Ivanov
Telerik team
 answered on 19 Dec 2017
8 answers
547 views
Does the WaterMarkTextBox work for passwords too? If so, do you have any examples?

For example, a standard authentication dialog may have user name and password prompt. We would like to be able to use a watermark text box both for fields, so that the password characters are not visible when typing.
Kalin
Telerik team
 answered on 18 Dec 2017
1 answer
114 views

Hello,

I have been digging through the documentation and I am unable to find any information on the ability to include the header/row values when copying the cells from a pivot grid.  The actual values copy in to excel just fine, but I would like to include the header/row values.

Would someone be able to point me in the right direction?  Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Dec 2017
2 answers
1.3K+ views

Hey guys,

since i dont get it to work since 3 hours now i registered here in the hope you have a solution.

I have a GridView in my View:

<tel:RadGridView ItemsSource="{Binding CompareTablesResultView, Mode=OneWay}" ColumnWidth="Auto" x:Name="grdComparedData"
                         IsFilteringAllowed="False" CanUserReorderColumns="False" CanUserFreezeColumns="False"
                         CanUserSortColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False"
                         tel:StyleManager.Theme="Windows7" DataLoaded="grdComparedData_DataLoaded">
        </tel:RadGridView>
        <tel:RadDataPager x:Name="DataPager" Source="{Binding Items, ElementName=grdComparedData}"
                          PageSize="30"  Grid.Row="1" tel:StyleManager.Theme="Windows7"/>

The GridView Itemssource is bound to a DataView Property in my ViewModel.

The DataView is simply the .DefaultView of the Datatable i want to display.

With the data in my datatable i did some validation. In my validation i receive information which cells are invalid (rownumber and columnnumber/columnname).

Now my target is to set the style for the cells that are invalid (foreground color to red). But i cant get it working to get the GridViewCell based on the infos if have.

In some forum posts i saw code like MyGridView.Rows(index).Cells(anotherIndex) but the RadGridView dont have an accessable Row property for me.

I also tried some other things to get the cell like to get access the .Items Property or some attempts with the .ChildrenOfType<> method but nothing worked for me.

Is there any way to set the Cell-Style for a specific cell when bound to a DataTable or DataView? I cant use a cellstyle selector cause its not the value of the cell itself that is invalid, its only invalid in the context of row and column. The same value can be valid in another row or in another column.

You guys have any ideas?

Could i mark the DataView Cell in any way that i could react from a cellstyle selector on it or something like that?

Stefan
Top achievements
Rank 1
 answered on 18 Dec 2017
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?