Telerik Forums
UI for WPF Forum
2 answers
223 views

Hi Guys,

 

I am creating a dynamic canvas to send to the printer and on this canvas I try add an EAN-13 barcode but I can't get it done.

Then I saw, telerik ui for wpf has "RadBarcodeEAN13" but this doesn't show anything.

RadBarcodeEAN13 BarCode = new RadBarcodeEAN13();
BarCode.Text = "871038168385";
cnvPrint.Children.Add(BarCode);
Canvas.SetLeft(BarCode, template.x * positionfactor);
 Canvas.SetTop(BarCode, template.y * positionfactor);
however,
when I do something like this
TextBlock BarCode = new TextBlock();

the specified textBlock is added ad as text to the canvas (cnvPrint) and ends up in my printer.

 

where do I go wrong? unfortunately I'm unable to find any examples for this.

Thank you for your help

Bart
Top achievements
Rank 1
 answered on 16 Nov 2016
1 answer
168 views

Hello,

I'm using a RadDateTimePicker because I need both date and time but I show only the date.

I want to know how to show in the center of the screen the popup that appears when I click on the icon to select a date (possibly in a responsive way).

Here is the XAML code of my RadDateTimePicker:

<telerik:RadDateTimePicker Grid.Column="1" Width="200" VerticalAlignment="Center" Margin="0, 0, 10, 0" InputMode="DatePicker" SelectedDate="{Binding Path=StartLashing,Mode=TwoWay}" />

 

The problem is that my calendar is not streched out, as you can see in the attached image, so I think that a solution could be to open it in the center of the screen to avoid this problem.

 

Kalin
Telerik team
 answered on 16 Nov 2016
4 answers
711 views
Hi All,

I am getting following error message.

Could not load file or assembly 'Telerik.Windows.Controls.RibbonView, Version=2011.3.1116.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried Telerik version 2011.2.0712.35,2011.3.1220.40,2011.3.1220.35 versions. But I am not able to resolve this issue.

Let me know how can I resolve this issue.

Thanks

Kris
Top achievements
Rank 1
 answered on 15 Nov 2016
2 answers
389 views

Hi,

I would like to draw a path on a RadMap using locations from an ObservableCollection. I looked at MapPathFigureView (from http://www.telerik.com/forums/draw-a-curve-on-the-map#62RbZ0kLxkCXT7mDVmvT8A) but I didn't find a way to bind to segments collection.

So is there a way to do that ?

Thanks,

Etienne

Etienne
Top achievements
Rank 1
 answered on 15 Nov 2016
3 answers
154 views

Hi,

I'm having this issue with WMS that when I zoom out, the tiles get refreshed but somehow end up having two tiles next to each other showing the same image. This only occurs to some certain WMS servers that we have. I'm using WmsTiledProvider. I specify the base url, the layer Id, and version. I thought it might have something to do with SRS but our server does serve WGS84 (EPSG:4326)

Petar Mladenov
Telerik team
 answered on 15 Nov 2016
1 answer
204 views

Hey,

I've seen some other threads on this topic, so here's my example scenario. If you have a Window with an OK button with IsDefault=true, and you show the window in modal mode (dialog), the Enter key is supposed to be able to dismiss (close) the dialog. Unfortunately, if there's a RadTreeView in the window, which has keyboard focus, and the selection is on a node that does NOT have any children (so can't be expanded/collapsed anyway), the RadTreeView eats the Enter key and the window is not closed automatically. (Look at the ToggleExpandCollapseCommandCanExecute method, canExecute is set to true whether the RadTreeViewItem has Items or not).

 

I know, there's a super-easy workaround and that's to override OnPreviewKeyDown or OnKeyDown in the window code behind, which I'll do, but, the point of posting this thread is that this is not how Microsoft's TreeView works. They don't care about the Enter key probably precisely for this reason. Maybe provide a property to enable/disable this Enter key behavior would be nice.

Petar Mladenov
Telerik team
 answered on 15 Nov 2016
12 answers
663 views

Hello,

 

In my RadCartesianChart, I have a legend which is created implicitly by serie. I want to know if is it possible to insert a picture to replace the actual square for the legend ?

I want to do it in code because it's just for one serie.

 

I tried to create a MarkerGeometry (type of Gemoetry Class), but I don't done it..

serieImprecise.LegendSettings.MarkerGeometry = ??

 

You can see the attached file for an "exemple".

 

Thank you !

Martin Ivanov
Telerik team
 answered on 15 Nov 2016
1 answer
193 views

Hi,

 

When I apply the RibbonView XAML as a windows level resource ribbon view backstage does not show. It only works if I move the resources to an application resource.

I need window level theming for my application is this supported with Telerik WPF ribbon control or am I doing something wrong ?

 

Below is the XAML:-

<telerik:RadRibbonWindow x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    
    <telerik:RadRibbonWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </telerik:RadRibbonWindow.Resources>
    
    <Grid>
        <telerik:RadRibbonView Grid.Row="0" x:Name="Ribbon" ApplicationName="Theme test" ApplicationButtonContent="System" >
            <telerik:RadRibbonView.Backstage>
                <telerik:RadRibbonBackstage x:Name="Backstage"  >
                    <telerik:RadRibbonBackstageItem Header="Overview" IsSelectable="true" IsSelected="True" />
                    <telerik:RadRibbonBackstageItem Header="System Configuration" IsSelectable="false" />
                    <telerik:RadRibbonBackstageItem Header="Setup Display" IsSelectable="false" />
                </telerik:RadRibbonBackstage>
            </telerik:RadRibbonView.Backstage>
        </telerik:RadRibbonView>
    </Grid>
</telerik:RadRibbonWindow>

Regards

Evgenia
Telerik team
 answered on 15 Nov 2016
3 answers
113 views

hello,

i'm currently create a simple application that using radgridview. but i get this error from the beginning, and can't figure it out why. i had try the example from the telerik documentation, but still no luck. please find the attachment for detail, and tell me what did i miss.

thanks in advance.

Dilyan Traykov
Telerik team
 answered on 15 Nov 2016
1 answer
956 views

I'm just getting into this and I just can't figure out what I am doing wrong.

I have the following XAML (at least the relevant part) followed by the code in the Viewmodel to load it.

In the seachcommand function I make a db call and load the results into my observable collection of SearchResultBag.

The query runs fun and I get data. It just doesn't show in the grid. What is the magic sauce I am missing. This seems like it should be trivial.

If I get rid of the SearchResultsBag and ONLY return a string (for testing purposes) the string(s) get displayed in the grid. Why won't my SearchResultsBag display it's contents. I've been a good boy and defined the template columns. It's gotta be something simple but I just can't see what I am missing.

While I'm at it, can anyone point me to a good MVVM databound RadGridView example. The telerik demo app is WAAAAY to complicated for a newb like me to pick up the basics from. I'm sure if I can get this simple search thing working I can get the rest.

Thanks ... Ed

 

<Button x:Name="cmdSearch"  Grid.Row="8" Grid.Column="1"        Content="Search" HorizontalAlignment="Left"         Command="{Binding SearchCommand }" Margin="0,5,0,5"/>


<telerik:RadGridView Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="3" x:Name="ssSearch"
     Visibility="{Binding ShowResults, Converter={StaticResource bResultsVisibleConverter}}"
     ItemsSource="{Binding SearchResults, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay }"
     Height="200"
                     >
             <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Request #" DataMemberBinding="{Binding CustomKey}"/>
                <telerik:GridViewDataColumn Header="ClientName" DataMemberBinding="{Binding ClientName}"/>
                <telerik:GridViewDataColumn Header="ClientId" DataMemberBinding="{Binding ClientId}"/>
                <telerik:GridViewDataColumn Header="OpenedBy" DataMemberBinding="{Binding OpenedBy}"/>
                <telerik:GridViewDataColumn Header="ProjectId" DataMemberBinding="{Binding ProjectId}"/>
                <telerik:GridViewDataColumn Header="OpenedDate" DataMemberBinding="{Binding OpenedDate}"/>
                <telerik:GridViewDataColumn Header="RequestedDate" DataMemberBinding="{Binding RequestedDate}"/>
                <telerik:GridViewDataColumn Header="CloseDate" DataMemberBinding="{Binding CloseDate}"/>


            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

 

 

SearchCommand = new Prism.Commands.DelegateCommand(Search).ObservesProperty(() => SearchResults);
private ObservableCollection<SearchResultsBag> _searchResults;

public ObservableCollection<SearchResultsBag> SearchResults
{
get { return _searchResults; }
set { SetProperty(ref _searchResults, value); }
}
private void Search()
{
this.SearchResults = new ObservableCollection<SearchResultsBag>();
var q = from a in db.CALMS_Request
where a.Custom_Key == CustomKey
select new SearchResultsBag
{
CustomKey = a.Custom_Key,
ClientName = a.Client.ClientName,
ClientId = a.Client.ClientId.ToString(),
OpenedBy = "OpenedBy",
ProjectId = a.ProjectID,
OpenDate = a.DateCreated.ToString(),
RequestedDate = a.RequestedDate,
CloseDate = a.ClosedDate
};
if (string.IsNullOrWhiteSpace(CustomKey))
q = q.Where(a => a.CustomKey.ToLower() == CustomKey.ToLower());


foreach (SearchResultsBag item in q)
this.SearchResults.Add(item);
ShowResults = true;
}
public class SearchResultsBag
{
public string CustomKey;
public string ClientName;
public string ClientId;
public string OpenedBy;
public string ProjectId;
public string OpenDate;
public string RequestedDate;
public string CloseDate;
}

 

Stefan Nenchev
Telerik team
 answered on 14 Nov 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?