Telerik Forums
UI for WPF Forum
2 answers
119 views
I want tab controls to go vertically up the lefthand side.  But what is happening is space is always allocated in the grid for if it where horizontal and then the ViewModel name is shown in the Grid.  I have looked at there is nothing else being render in that column of hte control.  So I don't know how to refresh the screen after the tabcontrol has went verical and get rid of the viewmodel name being displayed.

Here is XAML

<Border Grid.Row="1" telerikControls:StyleManager.Theme="Expression_Dark">
            <Grid>
            	<!--<Grid.Effect>
            		<DropShadowEffect BlurRadius="10" Color="Black"/>
            	</Grid.Effect>-->
 
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <telerik:RadTabControl x:Name="tabDisplays" Grid.Column="0" TabOrientation="Horizontal"
                                       TabStripPlacement="Left" Align="Right"
                                       telerikControls:StyleManager.Theme="Expression_Dark"
                                       ItemsSource="{Binding Path=DisplayTabs}" SelectionChanged="RadTabControl_SelectionChanged_1">
                    <telerik:RadTabControl.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" />
                        </DataTemplate>

Code behind
this.DataContext = new MainWindowViewModel();

heavywoody
Top achievements
Rank 1
 answered on 05 Mar 2013
9 answers
193 views
I like the Windows8Theme.  But when I tried to type in Windows8Theme(), it cannot found and compiled it in WPF application.  But all the other themes are working properly.

 

 

StyleManager.ApplicationTheme = new Office_BlackTheme();

 

Dimitrina
Telerik team
 answered on 05 Mar 2013
1 answer
148 views
Hi

I am using the richtextbox to display email content (html) that i have downloaded from exchange via the exchange web api.

This fails to show images as the images are in the following format - is their anyway i can hook into the richtextbox and resolve these images (i can get them from exchange and save them to local disk or stream)



<img width="387" height="164" id="Picture_x0020_3" src="cid:image001.png@01CE15AF.A375F5C0">
RICHARD FRIEND
Top achievements
Rank 2
 answered on 05 Mar 2013
3 answers
83 views
I have a SemicircleWestScale and I am attempting to use a custom item for a marker.  I also have a coupld of ranges setup.  The background is set to an imagebrush.  The custom item is showing behind the background range.  What needs to change to get the custom item to the foreground. 

Thanks,

Joe

<telerik:SemicircleWestScale.Ranges>
                            <telerik:GaugeRange Min="0" Max="100">
                                <telerik:GaugeRange.Background>
                                    <ImageBrush ImageSource="pack://siteoforigin:,,,/Resources/radiation_scale.png"/>
                                </telerik:GaugeRange.Background>
                            </telerik:GaugeRange>
                            <telerik:GaugeRange Min="20" Max="80" >
                                <telerik:GaugeRange.Background>
                                    <ImageBrush ImageSource="pack://siteoforigin:,,,/Resources/radiation_scale_green.png"/>
                                </telerik:GaugeRange.Background>
                            </telerik:GaugeRange>
                        </telerik:SemicircleWestScale.Ranges>
                        <telerik:SemicircleWestScale.CustomItems>
                            <Image  telerik:ScaleObject.Value="{Binding Data.Value, UpdateSourceTrigger=PropertyChanged}" Source="pack://siteoforigin:,,,/Resources/radiation_marker.png" IsHitTestVisible="False" />
                        </telerik:SemicircleWestScale.CustomItems>
Andrey
Telerik team
 answered on 05 Mar 2013
4 answers
855 views
A combobox in my gridview needs to have different ItemsSource depending on the value of another column.
I've tried to solve this by listening on the gridview's PreparingCellForEdit event:
private void RadGridView_PreparingCellForEdit(object sender, GridViewPreparingCellForEditEventArgs e)  
{  
    switch (e.column.Name) 
    
        case "MyDynamicColumn"
            var combobox = e.EditingElement as RadComboBox;  
            combobox.ItemsSource = List<string> { "1", "2", "3" }; //TODO: Replace with some dynamic business logic here  
            combobox.SetBinding(RadComboBox.SelectedValueProperty, "MyComboValue");   
            break
        
    
}

...and this kind-of works. The combobox displays its SelectedValue once it is selected and the dropdown shows the correct list of values.

However, when the combobox is not in edit-mode, it looks empty. I'd like to bind a TextBlock with the SelectedValue for display, but don't know how to accomplish that.

Any thoughts would be appreciated.
Yoan
Telerik team
 answered on 05 Mar 2013
1 answer
166 views
I've been fiddling for a little bit now, I have to admit I haven't put a huge amount of time into learning the charting control as it is only used for this one display in my app.

How can I force the line to only go forwards, and never return "back", there will never be a need to go back as I order the objects before binding. 

I've removed all data points bar these 4 to make it a bit more obvious. I can just use a normal line but the spline I think is better suited, if this behaviour is modifiable.
Missing User
 answered on 05 Mar 2013
1 answer
152 views
Hi,

When I paste data from clipboard to the RadGriView cell, which type is GridViewMaskedTextBoxColumn, I need to validate the data and trim out some empty spaces from clipboard data before pasting it to the cell.

How can I do that?

I tried to use PastingCellClipboardContext-event but it not raised when GridViewMaskedTextBoxColumn cell is in editing mode.

I create maskedtext type of columns in code behind...
GridViewMaskedTextBoxColumn column = new GridViewMaskedTextBoxColumn();
column.DataMemberBinding = new Binding(bindKey);
column.Header = headerText;
column.UniqueName = uniqueName;
column.IsReadOnly = readOnly;
column.TextAlignment = textAlign;
column.MaskType = MaskType.Standard;
column.Mask = mask;


and I'm using RadControls version 2012.1.326.40

Regards,
Auvo
Maya
Telerik team
 answered on 05 Mar 2013
1 answer
113 views
Hello,

The data in my carousel can be filtered by search, which means it's possible for the ItemsSource's count to go down to 2 and 1.  In the case were there are 2 items, I would rather the carousel would NOT animate on selection of an item and bring it to the front; there is no "front" with two items.  It looks very off trying to swirl.  How can I achieve this? 
Maya
Telerik team
 answered on 05 Mar 2013
12 answers
430 views
How can I make the item that is currently in focus (currently in view) automatically selected? 

Can someone give me a code snippet please?

Thanks
Maya
Telerik team
 answered on 05 Mar 2013
1 answer
92 views
Hi there,

I've already posted this question in the RadTreeListView forum, but without luck. I guess if it's doable for the RadGridView, I should be able to transfer the solution to the TreeListView, shouldn't I? So, here's the cross-post:

Can arbitrary controls, in my case RadGridView Controls, be embbeded in a cell?

I need a control, where the first column represents a hierarchie and the second colum contains a list of items for each hierarchie-level.

The nested / grouped RadGridView looks similiar, however I need the group to be in another column. Like this:

hierarchy  |      items
==============================
root       |         
------------------------------
 > child   |  -------------
        |  |item 1 | 1 |
        |  |item 2 | 2 |
        |  -------------
------------------------------

Thanks for any hints!

Cheers,

Jan
Maya
Telerik team
 answered on 05 Mar 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
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?