Telerik Forums
UI for WPF Forum
1 answer
116 views
Hi,

I want to change the RadWindow's theme.
But I cannot use StyleManager like this:
<telerik:RadWindow x:Class="Eurlanda.DataShire.Squid.Views.DataGridShow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   Focusable="True" telerik:StlyeManager.Theme =""
                   Header="AcessFrom">
Please check the attachment.

But only RadGridView used StyleManager in XAML is OK. (RadWindow , RadMenu, RadDocking cannot use it.)

Telerik control version is 2013.3.1316.40
My VS version is 2013
My system is Windows 7 sp1

Thank you.

Ye HaoChen
Top achievements
Rank 1
 answered on 20 Mar 2014
1 answer
116 views
Let's assume I have a button on my window. I want to click the button and shift the focus to one of the cells in the grid and bring it in edit mode. How to got about this?
Nainil
Top achievements
Rank 1
 answered on 19 Mar 2014
3 answers
569 views
Hello,

I have a RadDiagram and RadPropertyGrid on a WPF form. I have the property grid defined as follows:

<telerik:RadPropertyGrid DockPanel.Dock="Right" LabelColumnWidth="100" HorizontalAlignment="Right" Width="250" 
                                 AutoGeneratePropertyDefinitions="True" PropertySetMode="Intersection"
                                 Item="{Binding ElementName=Diagram, Path=SelectedItems, UpdateSourceTrigger=PropertyChanged}">

The diagram's GraphSource property is bound to a view model of type "ObservableGraphSourceBase<ZoneDiagramItemViewModel, LinkViewModelBase<NodeViewModelBase>>".

The binding works in the sense that the property grid shows the selected item in the diagram with its original properties as they were in when the item was created. Whenever the item in the diagram is moved for example, the property grid is not updated. Neither does the item in the grid move after the respective property in the property grid is modified.

The ZoneDiagramItemViewModel initially inherited the NodeViewModelBase class. I then tried by re-implementing it using my own Height, Width, Position etc. properties that all fired the NotifyPropertychanged event. This did not work either.

How do I set up the binding so that properties are updated in both directions?

Thank you.

Maya
Telerik team
 answered on 19 Mar 2014
6 answers
265 views
I would like to re template the Grand Total line so that i could have 2 custom totals for each column.  Please see the attached image. 
Rosen Vladimirov
Telerik team
 answered on 19 Mar 2014
1 answer
204 views
Hi, 

I have a question about map scales. Is it possible to modify the scale associated with a zoom level in the RadMap control?

My client want that zoom level 1 represents a scale 1 : 5 500 000, zoom level 2 represents a scale 1 : 2 500 000 and so on. 

It doesn't fit with the resolution of the map i display in RadMap. 

Is there any way to configure this ? 

Thanks, 
Andrey
Telerik team
 answered on 19 Mar 2014
2 answers
182 views
I am using the following code to format the scale. 

<
telerik:RadialScale Min="0" Max="55000" Multiplier=".001" IsInteractive="True" MajorTickStep="5000" LabelLocation="OverInside" FontSize="11" LabelOffset="-25" LabelRotationMode="None" StartAngle="160" SweepAngle="220" LabelFormat="{}{0:F0}k">

Using a multiplier and a label format, I'm displaying values such as 5K, 10K, etc. instead of 5000, 10000, etc.
However, my first value shows up as '0K', while I would like just '0' (zero) to be shown.
How  can I achieve this? Thanks.
Tauqir
Top achievements
Rank 1
 answered on 19 Mar 2014
3 answers
342 views
I'm doing a project using Telerik 2011_3_1220 version. Anyother thing is nice except for one which related to the radGridView, the senario is like below:

Senario description:

I have data struction somehow like this:
a> Basic data 
Library -> Contains own properties and a List<ObjectType>
ObjectType-> Contains own typeID and other properties
ObjectInstance-> Contains own properties and a List<Property>
Property-> Contains value and name and other properties.

b> Data in ViewModel
SelectedLibraries -> List<Library>
AllObjectInstances -> Dictionary<ObjectTypeID, List<ObjectInstances>>

Now on my UI I have a treeview on left panel and gridview on right. Treeview is bind with SelectedLibraries which shows a hierarchical structure of Library and ObjectType for user to select. Upon user's selection of ObjectType, gridiview on the right side will be populated with data of the corresponding ObjectType. The data of the gridview is from AllObjectInstances[SelectedObjectTypeID]. Each ObjectInstance stand for one row, each ObjectInstance.Property.name stand for one column and each ObjectInstance.Property.value stands for the content poped into each gridview cell.



My solution:
Upon user's selection, I'll look for the corresponding collection of AllObjectInstances[SelectedObjectTypeID] and pass into a function which will translate this into a DataTable. The DataTable will take name of Property.name as column name and fill up the table with Property.value.
The gridview will be bind to this DataTable. So each time user select another ObjectType, the DataType will be re-formed again and Notify UI update. 



Problem:
If the Property contains in an ObjectInstance is not so many (less than 100), the performance is acceptable. But if the Property is more than that, every time user switch selection will take long to wait UI update which will fed up users.
For the gridview, I already enabled both row and columns virtulization.


This problem looks to me is like every time I need to do a data re-binding which could be comparatively slow, but I didn't expect can slow like this.
Is there any advise or solution to conquer this problem? Or even my solution is totally wrong I won't mind to re-structure, as long can improve the performance significantly.

Deni
Telerik team
 answered on 19 Mar 2014
4 answers
735 views
Hi, I'm using a RadRibbonWindow and RadRibbonView, I want to hide the title bar to save room so I set TitleBarVisibility="Collapsed", but this hides the windows close/maximise/minimise buttons, so I thought I would just make my own ones (see xaml below), but this doesn't work because the click event doesn't work on the buttons, also when the windowstate is normal you can see the top of the original close/maximise buttons and it doesn't look good.

Is there any good solution for hiding the title bar but maintaining the button?


<telerik:RadRibbonWindow x:Class="TelerikTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Name="dlgMain" Height="350" Width="525" >
    <Grid>
        <!-- Custom close/maximise/minimise buttons -->
        <Grid Panel.ZIndex="1" Margin="180,0,26,0" Height="24" HorizontalAlignment="Stretch"  VerticalAlignment="Top"  >
            <Button Name="btnClose" HorizontalAlignment="Right" Width="22" Content="❌" ToolTip="Close" Click="btnClose_Click" />
            <Button Name="btnMaximise" HorizontalAlignment="Right" Width="22" Content="▭" Margin="0,0,24,0" ToolTip="Toggle maximise" Click="btnMaximise_Click"/>
            <Button Name="btnMinimise" HorizontalAlignment="Right" Width="22" Content="‗‗" Margin="0,0,48,0" ToolTip="Minimise" Click="btnMinimise_Click"/>
        </Grid>
 
        <telerik:RadRibbonView Name="xRadRibbonBar"  Title="Test" ApplicationName="" IsBackstageOpen="False" SelectedIndex="0"
                               ApplicationButtonVisibility="Visible" TitleBarVisibility="Collapsed"  ContentHeight="72"
                              MinimizeButtonVisibility="Visible" >
 
            <telerik:RadRibbonView.ApplicationButtonContent>
                <TextBlock Text="File" />
            </telerik:RadRibbonView.ApplicationButtonContent>
 
            <telerik:RadRibbonTab Header="Home" >
                <telerik:RadRibbonGroup Header="Group" >
                    <telerik:RadRibbonButton Size="Large" Text="Item" >
                    </telerik:RadRibbonButton>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
 
    </Grid>
</telerik:RadRibbonWindow>
Martin
Top achievements
Rank 1
 answered on 19 Mar 2014
1 answer
83 views
Hi,

We are using a GridView in .Net 4.5 WPF application.

We have a GridView with items bound to an instance of a class which is implementing INotifyPropertyChanged.

All changes to data are correctly displayed when the GridView is unsorted and unfiltered.
However, if the GridView is either sorted or filtered, the data is not refreshed until the next sort when all the changes made in the meantime appear correctly.

Any help or ideas as to how we could fix this would be greatly appreciated.

Regards,
Tanja
Vera
Telerik team
 answered on 19 Mar 2014
3 answers
292 views
Hi Support,

I want to modify the behavior of editor to accept .dotx files also. Kindly, let me know the fastest way to achieve it.

Regards,
Kushagra
Missing User
 answered on 19 Mar 2014
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?