Telerik Forums
UI for WPF Forum
3 answers
260 views
Found the issue: User settings was storing a layout with CanUserClose set to false

The XAML below does everything we want except the close button on a floating window is always disabled. We manage the IsHidden property from the menu but users still complain that the close button on a floating window does not do anything. I need to either hide it or make it do what they expect, which is hide the pane, or pin it.


<telerik:RadDocking x:Name="radAppointmentDocking" Grid.Row="0" Grid.Column="0">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane x:Name="AppointmentsPane" Header="    Appointments    " 
                                         Title="Appointments" CanUserClose="True"
                                         telerik:RadDocking.SerializationTag="AppointmentsPane"
                                         telerik:RadDocking.FloatingSize="1200, 800">
                            <telerik:RadPane.Content>
                                <ContentControl regions:RegionManager.RegionName="{x:Static inf:RegionNames.AppointmentsRegion}"> </ContentControl>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                        <telerik:RadPane x:Name="WorkInProgressPane" Header="    Work In Progress    " 
                                         Title="Work In Progress" CanUserClose="True" 
                                         telerik:RadDocking.SerializationTag="WIPPane"
                                         telerik:RadDocking.FloatingSize="1200, 800">
                            <telerik:RadPane.Content>
                                <ContentControl regions:RegionManager.RegionName="{x:Static inf:RegionNames.WorkInProgressRegion}"> </ContentControl>
                            </telerik:RadPane.Content>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
Kalin
Telerik team
 answered on 06 Apr 2016
0 answers
115 views
Hi, I'm trying to send an email while using the richtextbox as the body. I use a HtmlDataProvider and I've tried multiple imageexport options but the image still appears as an empty box. May I ask how do I properly export to html with inline images, MVVM.
Minh
Top achievements
Rank 1
 asked on 05 Apr 2016
1 answer
392 views

Hi Telerik,

I really like how the TimeSpanPicker has a "StringFormat" property on it, but I'm having challenges getting it to do what I want.

I want the selected timespan to show as:

"x Days and y Hours".

StringFormats like the following aren't working:

{0:d} Days and {0:h} Hours

Can you please help me out?  what do I need to do to make it show the way I want it to?

Nasko
Telerik team
 answered on 05 Apr 2016
3 answers
175 views

Here is a simplified version of what i'm trying to achieve.

I have a product class with a collection of user defined fields

public class Product
{
    public string ProductName { get; set; }
    public string Category { get; set; }
    public List<UserDefinedField> userDefinedfields;
}
public class UserDefinedField
{
    public string Name { get; set; }
    public string Value { get; set; }
}

I can bind the name and category easily in Xaml.

<telerik:GridViewDataColumn DataMemberBinding="{Binding ProductName}"  />
<telerik:GridViewDataColumn DataMemberBinding="{Binding Category}" />

I'd like to also bind the collection of user defined field to the end of the grid in code behind.  I've tried this but no luck, the columns are created but no data is loaded.

foreach (UserDefinedField udf in products[0].UserDefinedFields)
{
    ProductGrid.Columns.Add(
         new GridViewDataColumn
         {
             Header = udf.Name,
             DataMemberBinding = new Binding(udf.Value)
         });
 }

 

Thank you in advance.

 

 

 

 

 

Yoan
Telerik team
 answered on 05 Apr 2016
2 answers
185 views

Hi,

I am displaying multiple serie charts on a single page which all have the same categoryAxis. What I would like to do is display the tooltip in floating panel and crosshair for every chart when hovering over a single one.

I've synchronized TrackBall in every graphic, I've proved with TrackInfoUpdated event, but I've only get the information from one single graphic, not from all of them. Can I get the information from all set of points in this event? there are any other ideas to attach every point from different graphics?

 

Thanks,
Gerard

 

Gerard
Top achievements
Rank 1
 answered on 05 Apr 2016
1 answer
707 views

Hello,

is it possible to test an application that uses the Touchmanager events on a machine that has no touchscreen? My main development machine has no touchscreen and it is a little cumbersome to deploy the application for each test on the target device.

Is there a way to simulate at least the Tap-event with a mouse click?

 

Beste regards,
Thomas

Petar Mladenov
Telerik team
 answered on 05 Apr 2016
6 answers
229 views

Hi,

Is there a way to bind the fill color of a map shape to a property of my DataContext but I can't do it. Here's what I've tried:

<DataTemplate x:Key="FooTemplate" DataType="Foo">
    <telerik:MapPathView>
        <telerik:MapPathView.Data>
            <tmpl:FooView .../>
        </telerik:MapPathView.Data>
        <telerik:MapPathView.ShapeFill>
            <telerik:MapShapeFill Fill="{Binding SomeProperty, Converter={StaticResource SomePropertyToBrushConverter}}" StrokeThickness="1"/>
        </telerik:MapPathView.ShapeFill>
    </telerik:MapPathView>
</DataTemplate>

When I run, I have an error "Cannot find source for binding with reference ..." because MapSahpeFill doesn't inherit the "inheritance context".

So is there a way to achieve what I want ?

Thank you,

Etienne

Petar Mladenov
Telerik team
 answered on 05 Apr 2016
5 answers
106 views
I have a custom queue-like collection that implements INotifyCollectionChanged and IList<>. Rather than raising CollectionChanged for every Enqueue() operation, it raises CollectionChanged once for every 5 Enqueue() operations: NotifyCollectionChangedEventArgs.NewItems contains a list of the 5 items added since the last CollectionChanged call, and NotifyCollectionChangedEventArgs.NewStartingIndex is set to my collection's Count property - 5.

This collection is being used as a data binding source to a RadCartesianChart with a DateTimeContinuousAxis. Unfortunately, when my collection raises CollectionChanged, an ArgumentOutOfRangeException is thrown out of ChartSeriesDataSource.GenerateDataPoint(). It appears that ChartSeriesDataSource's internal List<> is out of sync with my collection. NotifyCollectionChangedEventArgs.NewStartingIndex lies within my collection, but is several indices (1-4) beyond the end of ChartSeriesDataSource's internal List<>. 

Questions:

1. Does ChartSeriesDataSource (and ChartView generally) play nicely when it receives a NotifyCollectionChangedEventArgs.NewItems that contains more than one item? Especially if the source collection already contains data when the data binding is set up?

2. If not, is there another way to throttle ChartView's updates?
Martin Ivanov
Telerik team
 answered on 05 Apr 2016
2 answers
101 views

Hi,

1. I want to open a tool window with content. 
2. after the tool window is shown, i want to docking it  (by dragging) to existing radDaocking control.


I saw this telerik documentation for telerik winform:
ToolWindow windowTop = new ToolWindow();
windowTop.Text = "Window Top";
RadDocking radDock1 = new RadDocking();
this.radDock1.DockWindow(windowTop, DockPosition.Top);

what is the replacement code for this sample for telerik wpf?

(i don't have windowTop.Text neither  radDock1.DockWindow(windowTop, DockPosition.Top))

Thanks

shay
Top achievements
Rank 1
 answered on 05 Apr 2016
1 answer
375 views

Hi,

Need to remove the vertical girdlines for only specific columns in the Grid. As pointed out in the attached grid screenshot we need to remove the last gridline.

 

Or can we make sure that existing column fill the entire space of the grid. [Already tried ColumnWidth = "*", not working ]

 

Any suggestion are welcome.

 

Thanks in advance

Stefan Nenchev
Telerik team
 answered on 04 Apr 2016
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?