Telerik Forums
UI for WPF Forum
1 answer
179 views
Hi

I'm using the WPF rad control as a print server type application for our silverlight solution (i.e a windows service that prints all completed reports!)

Anyway what I cant workout is how to print a a device other than the default using native printing

I want to open up my report from the DB, check which printer this particular report is to go to and print to it (and a specific tray) without any user intervention

We did this previously with the winforms control txtextcontrol and wonder if you could advice the best way to do with telerik controls

Thanks in Advance
Iva Toteva
Telerik team
 answered on 23 May 2012
1 answer
204 views
Good evening,

Why does the following code force the caret to the line beneath? (obviously you must have multiple paragraphs in your document for this to happen).

In short I'm inserting a Annotation into an empty paragraph. The annotation when inserted does not encapsulate any content (spans etc), it will be filled with content at a later time.

RadRichTextBox radRichTextBox = ((RadRichTextBoxAutoComplete)currentPane).radRichTextBox;
 
//Set Custom Annotation
ItemGroupRangeEnd rangeEnd = new ItemGroupRangeEnd();
ItemGroupRangeStart rangeStart = (ItemGroupRangeStart)rangeEnd.CreatePairedStart();
rangeStart.Name = "GroupItem " + count++;
 
//Place annotation around newly inserted text
radRichTextBox.Document.InsertCustomAnnotationRange(radRichTextBox.Document.CaretPosition, radRichTextBox.Document.CaretPosition, rangeStart, rangeEnd);
 
//Referesh editor
radRichTextBox.UpdateEditorLayout();


It only does it if the following FieldRangeEnd property is set to "false".

public override bool SkipPositionBefore
{
    get
    {
        return false;
    }
}

If I set the return value to "true" then the caret does drop to the paragraph beneath but I don't get other behaviors that I want.

Thank you for your time,

Rob

Iva Toteva
Telerik team
 answered on 23 May 2012
0 answers
138 views
Hello, 

There seems to be a problem with RadGridView styling when it is placed in a Popup.

I have a Project where I have a RadGridView which has the Items and SelectedItem properties bound to a ViewModel.  I create a list of items in the code-behind and put them on the ViewModel, as well as selecting one of those items at random and putting that on the ViewModel to act as the SelectedItem.  At run time, everything is bound correctly, and the RadGridView is displayed with the list of items, with the SelectedItem row coloured using the default styling of the orange background. 

However, if I put the same RadGridView into a Popup, and introduce a Button which when pressed will allow the Popup to become visible, the orange styling doesn't appear.  The RadGridView is still bound correctly to both Items and SelectedItem, but the SelectedItem doesn't get the orange styling, and from a users point of view it looks like nothing is selected.  

This only happens the first time the Popup is shown.  Assuming the Popup disappears by some event (such as MouseLeave the Popup area), then the next time the Button is pressed, the SelectedItem of the RadGridView will be styled correctly.  It seems to be only the first time the Popup is shown, that the orange styling doesn't appear.  

I can provide a Project that illustrates this behaviour if required.

Stuart
Stuart
Top achievements
Rank 1
 asked on 23 May 2012
1 answer
148 views
Hi,

I'm unable to get the checkboxes working for my treeview.
I even used the example found in the latest demos, but without result. This is my code;

<telerik:RadTreeView telerik:StyleManager.Theme="Metro" 
SelectedItem="{Binding SelectedNomenclatuurnummer, Mode=OneWayToSource}"  Margin="10,5" 
IsTriStateMode="True" IsOptionElementsEnabled="True" SelectionMode="Multiple" ItemsOptionListType="CheckList" ItemsSource="{Binding Nomenclatuurnummers}" 
HorizontalAlignment="Stretch" Grid.RowSpan="4" Grid.Column="1">
</telerik:RadTreeView>

I'm using the Metro-theme. When I change the theme to e.g. Transparent or Office_Black, the checkboxes work

My telerik version is 2012.1.215.35

Any ideas on this?
Tina Stancheva
Telerik team
 answered on 23 May 2012
1 answer
83 views
I have a chart with DateTimes along the x-axis. I'd like to have those dates respond to application wide time zone changes. I've been implementing this in other places with a multibinding and multivalue converter. I bind the date and the timezone in the multibinding and the converter adds and removes the timezone offset.

Is it possible to do something simlar with the values in the x-axis labels?
Rosko
Telerik team
 answered on 23 May 2012
3 answers
135 views
Hello,
I am attempting to use a RadVerticalBulletGraph but there is a problem with the QualitativeRange object.I am attempting to implement a BulletGraph in an MVVM pattern such that the ViewModel only needs to provide the Value while the Brush is specified within the XAML (via styling). So my requiements are:

1. QualitativeRange Brush defined in XAML
2. QualitativeRange Value bound to a property on the ViewModel

Unfortunately this appears to be impossible. All working examples I've been able to find either create the QualitativeRange objects in code behind (unacceptable due to the color being defined in code) or have the value and brush hard coded (also unacceptable due to the binding requirement).

If anyone is able to provide an example that meets my two requirements I would be extremely grateful to see it. Thanks,
Jason
Jason
Top achievements
Rank 1
 answered on 23 May 2012
4 answers
272 views
Hi,

We are using the RadCarousel in our project and have the requirement to display the ControlTemplate into the Ellipse shape.
Please refer the attached screenshot for better understanding.

I need to know is it possible to do in Ellipse form? If so, please provide me the way to do that and will be appreciated if you could provide me the sample application which has the solution.

Thanks,
Maya
Telerik team
 answered on 23 May 2012
0 answers
61 views
Hello,
I want to disable the animation which shows up when I'm changing dayView (DayViewDefinition) to weekView (WeekViewDefinition).
I tried to disable the animation with Animation.AnimationManager.SetIsAnimationEnabled(this.myScheduleViewUI, false); => does not work.
(I'm using a normal WPF-window)

How can I disable the animation?
Is there even a way to disable the animation?


KR
M
Top achievements
Rank 1
 asked on 23 May 2012
7 answers
200 views
I'm testing your new diagram component. Keep up the good work !
This being said, I noticed that an exception raised (InvalidOperationException:"Cannot modify the Items collection when GraphSource is set.") is  when I edit my diagram ( copy/paste...) if GrapSource is bound to a datasource.

Do you plan to support this scenario ? It would be very useful.

Rgds,
Robert
Miro Miroslavov
Telerik team
 answered on 23 May 2012
3 answers
59 views
Hi,

I have a problem with tiles maximizing as a result from the following steps:
  1. Start in restored state.
  2. User drags a tile from one position to another.
  3. User clicks on the white space within the tile that was dragged.
  4. Tile maximizes.

Is there a way to force the tiles to ONLY maximize when the tile header is clicked?

Thanks
Tracy

Here is my xaml for reference:

<telerik:RadTileView x:Name="ChartTiles"
                                Background="Transparent"
                                TileStateChangeTrigger="SingleClick"
                                telerik:StyleManager.Theme="Office_Blue"
                                ColumnWidth="Auto"
                                RowHeight="Auto"
                                MinimizedColumnWidth="300"
                                MinimizedRowHeight="300"
                                PreservePositionWhenMaximized="true"
                                IsItemsSizeInPercentages="True"
                                ItemsSource="{Binding Charts}"
                                telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                                telerik:TileViewPanel.IsRowsShrinkEnabled="True"
                                telerik:TileViewPanel.IsSizeBoundToPosition="True"
                                >
 
    <telerik:RadTileView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name}" Style="{StaticResource tileItemStyle}"/>
        </DataTemplate>
    </telerik:RadTileView.ItemTemplate>
 
    <telerik:RadTileView.ItemContainerStyle>
        <Style TargetType="telerik:RadTileViewItem">
            <Setter Property="RestoredHeight" Value="{Binding TileRestoredHeight, Mode=TwoWay}" />
            <Setter Property="RestoredWidth" Value="{Binding TileRestoredWidth, Mode=TwoWay}" />
            <Setter Property="MinimizedHeight" Value="{Binding TileMinimizedHeight, Mode=TwoWay}" />
            <Setter Property="Position" Value="{Binding TilePosition, Mode=TwoWay}" />
            <Setter Property="TileState" Value="{Binding TileState, Mode=TwoWay}" />
            <Setter Property="Background" Value="Transparent" />
        </Style>
    </telerik:RadTileView.ItemContainerStyle>
 
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <Grid x:Name="ChartTileGrid" Background="Transparent"
                  Height="{Binding Path=ActualHeight, RelativeSource={RelativeSource TemplatedParent}}" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
 
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
 
                <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top"
                            Orientation="Horizontal" Height="30"
                            Visibility="{Binding PieBarChartSwitchVisibility}">
                    <RadioButton Content="Pie Chart" IsChecked="{Binding Path=IsPieChartActive}" Margin="0,5,0,5"/>
                    <RadioButton Content="Bar Chart" IsChecked="{Binding Path=IsBarChartActive}" Margin="5"/>
                </StackPanel>
 
                <ecaCharting:PieChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                             Height="{Binding ElementName=ChartTileGrid, Path=ActualHeight}"
                                             Width="{Binding ElementName=ChartTileGrid, Path=ActualWidth}"
                                             Visibility="{Binding Path=PieChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"                                                
                                             />
 
                <ecaCharting:BarChartControl Grid.Row="1" Grid.ColumnSpan="2"
                                        Visibility="{Binding Path=BarChartVisibility, TargetNullValue=Collapsed, FallbackValue=Collapsed}"
                                        />
 
            </Grid>
 
        </DataTemplate>
    </telerik:RadTileView.ContentTemplate>
 
</telerik:RadTileView>

 

Tina Stancheva
Telerik team
 answered on 23 May 2012
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
Book
FileDialogs
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?