Telerik Forums
UI for WPF Forum
1 answer
146 views
I'm trying to put Map Polygons on the InformationLayer of a map, successfully it does the work but it paints a 4th polygon joining all the previous ones, as shown in the attached image. (the three polygons are the ones that doesn't touches between them).
Petar Mladenov
Telerik team
 answered on 02 May 2017
3 answers
181 views

Can somebody point me towards examples for initializing the child/parent relationship for diagram nodes derived from HierarchicalNodeViewModel? This example code from the MVVM serialization example (http://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/raddiagrams-serialize-databound-diagram) results in a Children property with 0 entries for the rootNode:

private void BindGraphSource()
{
    int uniqueIdCounter = 0;
    GraphSource source = new GraphSource();
    OrgItem rootItem = new OrgItem() { Title = "CEO", Position = new Point(200, 20), Id = (uniqueIdCounter++).ToString() };
    source.AddNode(rootItem);
 
    OrgItem unitOne = new OrgItem() { Title = "Unit Manager USA", Position = new Point(100, 100), Id = (uniqueIdCounter++).ToString() };
    source.AddNode(unitOne);
    source.AddLink(new OrgLink(rootItem, unitOne) { Id = (uniqueIdCounter++).ToString() });
 
    OrgItem unitTwo = new OrgItem() { Title = "Unit Manager Europe", Position = new Point(300, 100), Id = (uniqueIdCounter++).ToString() };
    source.AddNode(unitTwo);
    source.AddLink(new OrgLink(rootItem, unitTwo) { Id = (uniqueIdCounter++).ToString() });
 
    this.xDiagram.GraphSource = source;
}

 

Manually setting the children doesn't seem straighforward, either: Even though the doc for the HierarchicalNodeViewModel.Children property reads "Gets or sets the children of the current node", the property only has a getter and no setter:

public ObservableCollection<HierarchicalNodeViewModel> Children { get; }
Matthias
Top achievements
Rank 1
 answered on 02 May 2017
4 answers
579 views

So I often use the BusyIndicator in my application to provide a nicely styled modal window with overlay. I am attempting to add a BusyIndicator to a view that already has 5 others set up to cover the whole view. They are not nested; they all cover the same grid rowspan. I copied the code from another already on the page and gave it a new name. I can't see any difference in the code.

For some reason this new busy indicator is blocking access to my view while it is set to IsBusy="False". It is not applying the styled colour overlay or showing the modal itself, but I can't click on any buttons or interact with the screen at all.

 

    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <telerik:RadBusyIndicator Grid.RowSpan="4" x:Name="SecurityAnswers" IsBusy="False" OverlayStyle="{StaticResource BusyIndicator_OverlayStyle}" ProgressBarStyle="{StaticResource BusyNoProgress}">
            <telerik:RadBusyIndicator.BusyContent>
                <StackPanel>
                    <!-- This is the indicator that works perfectly. There are 5 similar to this one that all work fine. -->
                </StackPanel>
            </telerik:RadBusyIndicator.BusyContent>
        </telerik:RadBusyIndicator>

        <telerik:RadBusyIndicator Grid.RowSpan="4" x:Name="SelectUserLocation" IsBusy="False" OverlayStyle="{StaticResource BusyIndicator_OverlayStyle}" ProgressBarStyle="{StaticResource BusyNoProgress}" >
            <telerik:RadBusyIndicator.BusyContent>
                <Grid >
                    <!-- this is the indicator that is causing the problems! I can't see anything to explain the different behaviour -->
                </Grid>
            </telerik:RadBusyIndicator.BusyContent>>
        </telerik:RadBusyIndicator>
    </Grid>

  

I have moved the offending BusyIndicator above and below the others, and I have removed all the others to see if there was an issue due the number of indicators on the screen. Even if its the only BusyIndicator on the screen, it still blocks the screen while not busy!

I have also tried removing the styles, the problem continues. The only thing that solves the problem is removing that one BusyIndicator

 

Any insight into this issue would be greatly appreciated! thanks

jen
Top achievements
Rank 1
 answered on 01 May 2017
1 answer
149 views

I have a complex template defining the RadPanelBar & RadPanelBarItem. I want to have these items be virtualized as I expect there to be about 1000 items and it takes enormous amount of time for my screen to load.

I know that RadPanelBar did not support virtualization previously, but is there a way to do it now? Below is my control template

------------------------------------------------------------------------------------------------------------------------------------------------------

<this:RadPanelBar x:Name="ContainerBar"
                                    Grid.Row="1"
                                    ItemsSource="{Binding Path=TheCollection}"
                                    HorizontalAlignment="Stretch"
                                    Background="{StaticResource StrongestBrush}"
                                    Orientation="Vertical"
                                    ExpandMode="Multiple"
                                    SelectionMode="Multiple">
                    <telerik:RadPanelBar.ItemContainerStyle>
                        <Style TargetType="this:RadPanelBarItem"
                               BasedOn="{StaticResource ResourceKey={x:Type this:RadPanelBarItem}}">
                            <Setter Property="IsExpanded"
                                    Value="{Binding Path=IsExpanded,
                                                Mode=TwoWay}" />
                        </Style>
                    </telerik:RadPanelBar.ItemContainerStyle>
                    <telerik:RadPanelBar.ItemTemplate>
                        <HierarchicalDataTemplate ItemsSource="{Binding Path=TheMatchingItems}"
                                                  ItemTemplate="{StaticResource DesignerHotButtonTemplate}">
                            <TextBlock Text="{Binding Path=TheHotButtonType, 
                                                      Converter={x:Static this:ButtonTypeConverter.TheInstance}}" />
                        </HierarchicalDataTemplate>
                    </telerik:RadPanelBar.ItemTemplate>
                </this:RadPanelBar>

------------------------------------------------------------------------------------------------------------------------

---------------------- control template --------------------------------

  <ControlTemplate TargetType="telerik:RadPanelBar">
                    <Grid>

                        <telerik:LayoutTransformControl x:Name="transformationRoot">
                            <Border BorderThickness="{TemplateBinding BorderThickness}"
                                    BorderBrush="{TemplateBinding BorderBrush}"
                                    Background="{TemplateBinding Background}">
                                <ScrollViewer x:Name="ScrollViewer"
                                              IsTabStop="False"
                                              HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                              VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                                              BorderBrush="Transparent"
                                              BorderThickness="0"
                                              Padding="{TemplateBinding Padding}"
                                              Margin="0"
                                              telerik:StyleManager.Theme="{StaticResource Theme}"
                                              HorizontalScrollBarVisibility="Auto"
                                              VerticalScrollBarVisibility="Auto"
                                              CanContentScroll="True">
                                    <ItemsPresenter />
                                </ScrollViewer>
                            </Border>
                        </telerik:LayoutTransformControl>
                    </Grid>
                </ControlTemplate>

Martin Ivanov
Telerik team
 answered on 28 Apr 2017
1 answer
167 views

The documentation for RadDataBar mentions a set of 4 controls: 

  1. RadDataBar
  2. RadStackedDataBar
  3. RadStacked100DataBar
  4. RadHorizontalAxis

Number 4, RadHorizontalAxis, is what I need, but I can't find this control anywhere in R1 2017. Also no documentation on how to use it nor an example. What am I missing???

Regards
Heiko

Evgenia
Telerik team
 answered on 28 Apr 2017
2 answers
191 views

Hello,

 

I have an issue about your VisualizationLayer.

I bind the layer's ItemsSource on an ObservableCollection<Element> and each Element has a Location bind on MapLayer.Location (as in your samples)

But when I clear my collection et reload all data (without manipulating the map) all my points disappear

I tried a few things like use another property with a converter for the location but it's worse then if my map is centered on the correct location all my points are in lat :0, lng : 0 and if the map isn't centered on the location (the view doesn't show the location) my points are correctly loaded when I move the map on the correct location

 

I only use your sample and adjust the collection loading or reloading

 

Do you see what i'm doing wrong please ?

 

Thank You

Martin Ivanov
Telerik team
 answered on 28 Apr 2017
3 answers
317 views
I have fallowing code:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Role, Converter={StaticResource conv}}" >
   <telerik:GridViewDataColumn.AggregateFunctions>
       <telerik:SumFunction Caption="sum:"  />
    </telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>

I cannot get this to work as AggregateFunction is not taking convert into account how I can change that ?

I am using latest release of telerik controls with .Net 4.
Dilyan Traykov
Telerik team
 answered on 28 Apr 2017
3 answers
197 views

Hi all,

I am starting a spellchecker on a textbox createad at run time like this:

RadSpellChecker.Check(internalTextBox, SpellCheckingMode.AllAtOnce);

 

I see multiple threads on client/server solutions, but no help on WPF on this message "the spelling check is complete"

So how to remove or hide it, both in:

  1. on the main spellcheck window, when finished and waiting for "OK"
  2. on the small final popup window with warning triangle (similar to a MessageBox)

Both have almost not added value, and are very user-annoying if you call the spellcheck frequently in a loop

Any code or trick for that in WPF ?

 

Thanks,

Favrice

Boby
Telerik team
 answered on 27 Apr 2017
3 answers
221 views
What is this grey box in the upper right corner of the RichTextBox which
starts exactly where the ruler ends and how to get rid of it (please
look at the attached screenshot)
Tanya
Telerik team
 answered on 27 Apr 2017
1 answer
258 views

Hello!

I have a question about the Calendar that is used in the RadDateTimePicker control.

I want to know if there is a way to style the BlackoutDates?

In our application we have a calendar function where holidays etc are planned. I would like to mark these dates in a RadDateTimePicker control but I still want them to be selectable so that the users can override the planned holidays etc.

Could I use the BlackoutDates in such a way?

Thanks!

Dilyan Traykov
Telerik team
 answered on 27 Apr 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?