Telerik Forums
UI for WPF Forum
1 answer
149 views
Hi

Is it possible to have a Barcode column in a gridview?  If so do you have an example?

Regards,
Joe
Vanya Pavlova
Telerik team
 answered on 20 Dec 2013
7 answers
270 views
Hi,

I'm having trouble with the scroll and zoom feature on the RadChart. I have a 2D Range bar set up to mimic a Gantt style chart where certain products are on sale over different weeks and the chart allows users to keep track of the movement.

I have the chart set up to use the High/Low co-ordinates for start week and end week respectively, with the Y axis labels using the Low value while the X axis uses the product name as a label instead of the High value.

The trouble I'm having is when i add the scroll bar to the chart as per the example in the demos, it only works for the Y axis and not the X. The actual scroll bar does appear and the zoom buttons do change the dimensions of the scroller, and the drag select option also seems to work properly, but the actual chart remains unchanged for some reason...

As you can see, the scroll bar on the left is set to a high level of zoom, yet the entire chart is still displayed and no zooming actually happens.



The XAML that I use looks like this:

<telerik:ChartArea Grid.Row="0" x:Name="ChartArea" NoDataString="" LabelFormatBehavior="None" ItemClick="ChartArea_ItemClick"
                                            PaletteBrushesRepeat="False" EnableAnimations="False" >
                            <telerik:ChartArea.ZoomScrollSettingsX>
                                <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom" MinZoomRange="0.005"/>
                            </telerik:ChartArea.ZoomScrollSettingsX>
                            <telerik:ChartArea.PaletteBrushes>
                                <SolidColorBrush Color="Orange"/>
                            </telerik:ChartArea.PaletteBrushes>
                            <telerik:ChartArea.AxisY>
                                <telerik:AxisY Title="Week" ExtendDirection="Up" DefaultLabelFormat="W20#VAL" AutoRange="True">
                                    <telerik:AxisY.AxisStyles>
                                        <telerik:AxisStyles TitleStyle="{StaticResource CustomAxisTitleStyle}" />
                                    </telerik:AxisY.AxisStyles>
                                </telerik:AxisY>
                            </telerik:ChartArea.AxisY>
                            <telerik:ChartArea.AxisX>
                                <telerik:AxisX LayoutMode="Between" />
                            </telerik:ChartArea.AxisX>
                        </telerik:ChartArea>


The code for the zoom is the same as in the demo and works fine if I set it for the Y axis but for some reason, not the X...

public void ZoomIn(object parameter)
        {
            this.ChartArea.ZoomScrollSettingsX.SuspendNotifications();
 
            double zoomCenter = this.ChartArea.ZoomScrollSettingsX.RangeStart + (this.ChartArea.ZoomScrollSettingsX.Range / 2);
            double newRange = Math.Max(this.ChartArea.ZoomScrollSettingsX.MinZoomRange, this.ChartArea.ZoomScrollSettingsX.Range) / 2;
            this.ChartArea.ZoomScrollSettingsX.RangeStart = Math.Max(0, zoomCenter - (newRange / 2));
            this.ChartArea.ZoomScrollSettingsX.RangeEnd = Math.Min(1, zoomCenter + (newRange / 2));
 
            this.ChartArea.ZoomScrollSettingsX.ResumeNotifications();
 
            ((Telerik.Windows.Controls.DelegateCommand)_zoomInCommand).InvalidateCanExecute();
            ((Telerik.Windows.Controls.DelegateCommand)_zoomOutCommand).InvalidateCanExecute();
        }


What am I doing wrong?

Regards,
Nemanja
Peshito
Telerik team
 answered on 20 Dec 2013
5 answers
370 views
Hi
I’m working on a project to create pivot table dynamically.

The goal is to build a pivot table based on 2 Collections, which is generated by reading some file. The 1st collection defines the column names and type (e.g. double, string, etc.) of the data. The 2nd one contains a list of strings, which represents all the data, so the type of the data is only known at run time.

I'd like to know is it possible to bind the above data structure to the RadPivotGrid. 

I've tried to set a Collection of dynamic objects to the ItemsSource by using LocalDataSourceProvider, but it seems the data are not shown in the pivot table.

An example of the dynamic object.
dynamic dObject1 = new ExpandoObject();
dObject1.Name = "Name1";
dObject1.Value = 1;

Thanks in advance.

Regards,
Gong
Kalin
Telerik team
 answered on 20 Dec 2013
1 answer
111 views
How do I raise a RowDeleting event manually in code behind?

The RadGridView has the "Deleting" event for which you can specify an event handler in XAML. So when the user presses the Del-Key, this event handler will be called. I'd like to do the same programatically from C# code.
Dimitrina
Telerik team
 answered on 20 Dec 2013
3 answers
491 views

Hi, 
  
   I have been using the RadMaskedTextBox with MaskType "Numeric" and am getting an issue "Input string not in correct format" when following the below steps:

1) Enter a number
2) Modify the number to a negative value (-)
3) Delete the number using BackSpace
 
  i.e., Exception thrown with negative symbols.

As a workaround to this issue , telerik forums suggested to use RadMaskedNumericInput instead. But there comes another issue that I have to give fixed number of digits only in the Mask.

My concerns are :-

1) How to give the mask if the maximum number of numeric places is 18 and decimal digits as 2 ( say for eg., 123456789122345567.55)? 
2) Is there any alternative other than giving mask?
3) Can I give negative symbols as well ? If so, will it figure out the exception thrown with negative symbols.

Please help to figure out this issue..

Thanks
Petar Mladenov
Telerik team
 answered on 20 Dec 2013
5 answers
531 views
I have the following style defined in my WPF;

<Style TargetType="{x:Type telerik:GridViewRow}">
    <Style.Triggers>
        <MultiDataTrigger>
            <MultiDataTrigger.Conditions>
                <Condition Binding="{Binding Path=IsActive}" Value="False" />
                <Condition Binding="{Binding Path=InPlan}" Value="True" />
            </MultiDataTrigger.Conditions>
 
            <Setter Property="Background" Value="AntiqueWhite" />
            <Setter Property="Foreground" Value="Red" />
        </MultiDataTrigger>
    </Style.Triggers>
</Style>

My problem is that this style is only applicable to one grid on the form, consequently I am getting binding errors on each of the other grids when the form loads.  How do I apply this style to the appropriate grid?

Thanks in advance.
Raymond
Top achievements
Rank 1
 answered on 19 Dec 2013
2 answers
134 views
I'm using the Telerik themes provided in the 'Binaries.NoXaml' folder of the RadControls installation folder and setting and switching the themes at runtime using the tutorial provided here: http://www.telerik.com/help/wpf/styling-apperance-themes-runtime.html

When I switch themes all RadControls update to the new theme except the RadMap control. I can see in the WPF demos that the RadMap control has many different themes (i.e. Windows7, Windows8, Windows8Touch, OfficeBlack, etc...) but it doesn't seem to use them. Any advice?
Mel
Top achievements
Rank 1
 answered on 19 Dec 2013
7 answers
163 views
when the outlook bar's splitter is dragged to resize, it occupies the entire area of the main region. Here is a simplified layout within the Shell.
In Outlook, the main region would have a minimum width set. Even if i set the min width to the border or within the content control inside it is not working as expected
<DockPanel x:Name="LayoutRoot">
 
        <ContentControl x:Name="RibbonPanel" />
        <ContentControl x:Name="StatusBarPanel" />
        <ContentControl x:Name="ControlPanelRegion"  />
        <ContentControl x:Name="OutlookBarPanel"  />
        <Border  BorderThickness="2" Padding="0" >           
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <ContentControl x:Name="MainRegion" />
                <ContentControl x:Name="AnotherRegion"  />
            </Grid>
        </Border>
</DockPanel>
Tina Stancheva
Telerik team
 answered on 19 Dec 2013
0 answers
100 views
Hello,

I'm using the Gridview version 2013.3.1016.40.

I can't seem to find a way to use an itemspaneltemplate for each GridViewRow.

What I'm actually trying to do is add a behavior on a row.

Is it possible to do this without replacing the Template as a whole?

Best regards,

Stefaan.
Stefaan
Top achievements
Rank 1
 asked on 19 Dec 2013
2 answers
256 views
Is there an MVVM way of using the RadPdfViewer to silently print a document? We currently are using the following line in the DocumentChanged event handler to do the silent printing.

((RadPdfViewer)sender).Print(new PrintSettings("Document 1", true));


Thank you,
Mark
Mark
Top achievements
Rank 1
 answered on 19 Dec 2013
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?