Telerik Forums
UI for WPF Forum
1 answer
74 views

Hi,

i use a RadGridView, bound to an ObservableCollection<KennzahlenViewModel>. To show diviasions of different columns i use some GridViewExpressionColumns in one row. Now i want to set the forecolor red if the result is less than zero.

How can i do this?

Thanks
Best Regards

Dilyan Traykov
Telerik team
 answered on 05 Aug 2016
0 answers
98 views
Hi, I currently have a contextmenu with multiple menuitems. I'm looking to override the current menuitem styles and display a different background colour upon mouse over. May I ask how abouts do I do that?
Minh
Top achievements
Rank 1
 asked on 04 Aug 2016
11 answers
133 views
Hi,
I am currently using the map control with two TileProviders (bing and a custom one).
The problem is that thenever I change the TiledMapSource, the layer of this provider goes to the background.
How can I fix the order of the layers?

For further information please habe a look at the associated post: http://www.telerik.com/community/forums/wpf/map/changing-the-map-toolbar.aspx

Regards
Thomas
Jason D
Top achievements
Rank 1
Veteran
 answered on 04 Aug 2016
5 answers
447 views

I have a C# WPF application that contains a user control:

<UserControl
        x:Name="payrollEntryControl"
        x:Class="MyNamespace.PayrollEntryControl"
        [...]
        >
    [...]
</UserControl>

Within the user control, I have a Telerik RadDataForm:

<telerik:RadDataForm
        x:Name="payrollAddForm"
        CurrentItem="[...]"
        EditTemplate="{StaticResource myEditTemplate}"
        />

 

The template contains a Telerik RadGridView and a Button:

<telerik:RadGridView Grid.Row="0" Grid.Column="0"
        x:Name="workGridView"
        [...]
        ItemsSource="{Binding [...]}"
        >
    <telerik:RadGridView.Columns>
        [...]
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
<Button Grid.Row="1" Grid.Column="0"
        Command="{Binding addWorkCommand, ElementName=payrollEntryControl}"
        >
    Add
</Button>

I want the command to do is call BeginInsert() on workGridView. But I can't seem to get access to workGridView.

My command, so far:

private DelegateCommand addWorkCommand_ = null;
public DelegateCommand addWorkCommand
{
    get
    {
        if (this.addWorkCommand_ == null)
        {
            this.addWorkCommand_ = new DelegateCommand(
                o => addWork(o)
            );
        }
 
        return this.addWorkCommand_;
    }
}
 
private void addWork(object o)
{
    var addForm = this.payrollAddForm;
    var editTemplate = addForm.EditTemplate;
    var workGrid = editTemplate.FindName("workGridView", addForm);
}

 

My problem? When I make the call to editTemplate.FindName(), I get an exception:

This operation is valid only on elements that have this template applied.

I don't understand. I'm getting the template from the form. How can it not be applied?

Jeff
Top achievements
Rank 1
 answered on 04 Aug 2016
5 answers
1.3K+ views
I'm trying to have a Groupbox with a list of other controls, very similar to a login form. I don't need a header, so I set the property called header with an empty string. As you see in the picture, there is a gap in the border - look at where the red arrow points to. How can I fix this, so there is no gap.

I'm also open to any solution where by I can achieve some other control to achieve what I want. I want to group a list of controls and have a background. Can I use a grid and setting the border style and background and achieve the same?
ardmore
Top achievements
Rank 1
 answered on 04 Aug 2016
5 answers
181 views

Hi, 

 

I'm having persistent issues with the grid when I try to set a saved list of selected rows when loading data into the grid in my WPF project. 

The basic logic is as follows:

1. Load the ViewModel, get saved data and populate an observable collection for the ItemsSource property on the grid. 

2. Set the SelectedItems property in the same procedure

3. Explicitly call the property changed event for the selected items collection.

I have implemented a custom behaviour to allow the RadGridView to use the Extended selection option and retain all selected items, and it works perfectly in this project and others, when setting the collection in the UI and binding to the collection in the ViewModel. 

I put an OnCollectionChanged event onto my selected items collection, and while it gets called as expected when I set the items, it also seems to get called after the grid itself is rendered, which causes the saved selection to be lost. 

If I use only a single item, i.e. SelectedItem, this does not get lost, and if I set SelectedItem by using the first line in the collection before setting SelectedItems collection itself, the UI retains the first one, but wipes the others. 

I have tried a number of ways to work around this, including trying to fire an event after the selection is overridden but it's proving very tricky to get the right event, and anyway this behaviour should surely not be happening in the first place. 

I am attaching a sample project which demonstrates a simpler version of this scenario, with the same problems. 

Please advise.

Dilyan Traykov
Telerik team
 answered on 04 Aug 2016
2 answers
220 views

Hi,

    I am trying to use Telerik RadMap (OpenStreet Map) in offline mode(i.e without internet acess).For this purpose I am using Easy Openstreet Map downloader.So

    I have some below queries.

   1) Can we get whole world map as image tiles upto street level zooming by this downloader and integrate the same with radmap or there is some better approach to use offline map(upto street level zooming is a must) ?

   2) How can we search a location by name on radmap (offline mode)[on open street map provider] ?

  3) How to add a place i.e if we want to name a place not marked or already marked on radmap(openstreet map) and it will be permanently stored on the map tiles?

 

Petar Mladenov
Telerik team
 answered on 04 Aug 2016
1 answer
306 views

I have a requirement for displaying multiple charts side by side and share a common axis. Do you have any hints how I can implement this? I know I can display multiple series within a same chart. But in my case, the series should be laid out side by side, I think I should use multiple charts but somehow tie them to a common axis.

I attached a mock image to illustrate this problem.

 

 

Petar Marchev
Telerik team
 answered on 04 Aug 2016
1 answer
125 views

Hi, 

I need to catch the preview of ActivePaneChanged  event so I can check if the changes was saved etc and to prevent ActivePaneChanged if the user cancel the navigation. 

How can I do that? 

Thanks

 

Nasko
Telerik team
 answered on 04 Aug 2016
4 answers
490 views
Hi,

I want to change the Title when I using "RadWindow.Alert()" and "RadWindow.Confirm()" method.

Please watch this codes:
RadWindow.Alert("aaaa");

and please watch the attachment.

Kalin
Telerik team
 answered on 04 Aug 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?