Telerik Forums
UI for WPF Forum
1 answer
71 views
Hello;

I am using the telerik FluidContentControl to define a dashbaord with different tiles. In my requirement, I need to  set the header of small and medium views with the short descripton of a translatbale string and the header of large view with the long description.

Is it possible to do this ?
I tried to used selectors, but without any success.
Thanks for your help
Sam
Boris
Telerik team
 answered on 20 Mar 2014
2 answers
2.9K+ views
Hi,

I'm experiencing some issues with Observablecollection<T> bound to the RadGridView.
As long as I'm inserting or deleting items in the Collection it updates just fine, but if I try to
update an item with a new value, the GridView doesn't do anything.

What I have is this:

ObservableCollection(OverviewData) ocOverviewData = new ObservableCollection(OverviewData);

which I then bind to the grid using
rgvItems.ItemSource = ocOverviewData;

When an update occurs it's just a simple iteration over the Collection like this:

foreach(OverviewData d in ocOverviewData)
{
    if(d.ReceiverName != newValue)
{
   d.ReceiverName = newValue;
}
}

The object looks like this:
public class OverviewData : INotifyPropertyChanged
{
    private string _ReceiverName;
    public string ReceiverName
    {
        get { return _ReceiverName; }
        set
        {
            if (_ReceiverName == value)
                return;                _ReceiverName = value;
            OnPropertyChanged(new PropertyChangedEventArgs("ReceiverName"));
        }
    }        private string _ReceiverAddress;
    public string ReceiverAddress
    {
        get { return _ReceiverAddress; }
        set
        {
            if (_ReceiverAddress == value)
                return;                _ReceiverAddress = value;
            OnPropertyChanged(new PropertyChangedEventArgs("ReceiverAddress"));
        }
    }        public event PropertyChangedEventHandler PropertyChanged;
    public void OnPropertyChanged(PropertyChangedEventArgs e)
    {
        if (PropertyChanged != null)
            PropertyChanged(this, e);
    }
}

Yet, if I update any value in the observablecollection, as previously mentioned, nothing updates in the UI of the grid.
The main reason I use observablecollection is to have the grid update only the items and properties needed, not rebind
the whole grid (which can be a couple of 1000 items at a time) which would ruin the grouping, sorting and so on and incur
a break in the work process for the people using the program.

How can I make the gridview update on value changes in the items?

Thanks in advance. :)

//Johannes

Yoan
Telerik team
 answered on 20 Mar 2014
1 answer
166 views
Hi

Is it possible to increase thickness of the rectangle which appears when a RadDiagramShape is selected (The rectangle with thumbs at the corners).

Regards
Jeevan
Petar Mladenov
Telerik team
 answered on 20 Mar 2014
7 answers
975 views
I am using a DatePicker as follows;

<telerik:RadDatePicker Name="dtpPublished"
    Margin="2"  
    Grid.Row="2"
    Grid.Column="1"
    HorizontalAlignment="Left"
    HorizontalContentAlignment="Left"
    VerticalAlignment="Center"
    MinWidth="500"
    MaxWidth="500"
    DateTimeWatermarkContent="Leave blank or enter the date this Scenario was published"
    SelectedDate="{Binding Path=PublishedDt, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
</telerik:RadDatePicker>

In the code behind I am setting the Culture and date format as follows;

With dtpPublished
    .Culture = New System.Globalization.CultureInfo("en-AU")
    .Culture.DateTimeFormat.ShortDatePattern = "d-MM-yyyy"
    .Culture.DateTimeFormat.ShortTimePattern = "hh:mm"
 
    .Culture.DateTimeFormat.LongDatePattern = "ddd, d MMM yyyy"
    .Culture.DateTimeFormat.LongTimePattern = "h:mm:ss tt"
 
    .DisplayFormat = Telerik.Windows.Controls.DateTimePickerFormat.Long
End With

My problem is if I clear the displayed date by pressing delete when the date text is highlighted I want the control to update the source as if a date wasn't entered.  Effectively it should set the source to Nothing or to Date.MinValue.  Even after I Tab off the control the source isn't updated?

Preferably the control should display a blank entry rather than "1/01/0001" as the date.
Kalin
Telerik team
 answered on 20 Mar 2014
2 answers
193 views
Hello. I decided to create my own DocumentPane based on RadDocumentPane. Then I tried to save and load RadDocking layout. Saving layout operation works good, but loading layout operation gives me a error:

​Specified argument was out of the range of valid values.
Parameter name: elementTypeName

How can I load layout with my custom documentPanes?
Sergey
Top achievements
Rank 1
 answered on 20 Mar 2014
1 answer
108 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
109 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
549 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
253 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
193 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
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?