Telerik Forums
UI for WPF Forum
7 answers
898 views
I would like to have a combobox that displays a text value when an item is selected but displays a grid with headers when the user clicks on the combobox (see attachment). I used the SelectionBoxTemplate to set the selected item text value and created a comboboxitem with a radgridview inside of it. I cannot use the SelectionBoxTemplate with the radgridview. Is there something wrong with how I have it setup? Also, the radgridview does not update the combobox when an item is selected? How can I make this function like a normal combobox? I don't need autocomplete.



<telerik:RadComboBox  SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}" 
                                     IsEditable="True" Height="25" Width="200">
                    <telerik:RadComboBox.Items>
                        <telerik:RadComboBoxItem>
                            <telerik:RadComboBoxItem.Template>
                                <ControlTemplate>
                                    <telerik:RadGridView x:Name="RadGridView1" ShowGroupPanel="False" CanUserFreezeColumns="False" 
                                             RowIndicatorVisibility="Collapsed" IsReadOnly="True" 
                                             IsFilteringAllowed="False" ItemsSource="{Binding Tools}" 
                                             Width="200" Height="150" SelectedItem="{Binding Assignment, Mode=TwoWay}" AutoGenerateColumns="False">
                                        <telerik:RadGridView.Columns>
                                            <telerik:GridViewColumn Header="Item #" HeaderCellStyle="{StaticResource GridViewHeaderCellDefault}">
                                                <telerik:GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <TextBlock Style="{StaticResource TextBlockDefault}" Text="{Binding ItemNumber}" />
                                                    </DataTemplate>
                                                </telerik:GridViewColumn.CellTemplate>
                                            </telerik:GridViewColumn>
                                            <telerik:GridViewColumn Header="Tool Name" HeaderCellStyle="{StaticResource GridViewHeaderCellDefault}">
                                                <telerik:GridViewColumn.CellTemplate>
                                                    <DataTemplate>
                                                        <StackPanel>
                                                            <TextBlock Style="{StaticResource TextBlockDefault}" Text="{Binding ToolName}"/>
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </telerik:GridViewColumn.CellTemplate>
                                            </telerik:GridViewColumn>
                                        </telerik:RadGridView.Columns>
                                    </telerik:RadGridView>
                                </ControlTemplate>
                            </telerik:RadComboBoxItem.Template>
                        </telerik:RadComboBoxItem>
                    </telerik:RadComboBox.Items>
                </telerik:RadComboBox>
Kalin
Telerik team
 answered on 24 Aug 2017
1 answer
124 views
How to convert a list of System.Drawing.Color() to ChartView.Palette?
Stefan
Telerik team
 answered on 23 Aug 2017
4 answers
322 views

Hi, I'm struggling with a small display issue:

I have a bar chart with logarithmic Y scale. Evetyng is ok but if a bar has the value of 1 is not displayed. And this is correct because the logarithm of 1 is 0.
So there is no difference between a bar is not present and a bar with value 1.

I tried to set the minimum value of 0.5 but it's only displayed a gap between the X axis and the bars.

Is there a way to display small Bar when the values is 1? Like setting a small border or a padding?

Massimo
Top achievements
Rank 1
 answered on 23 Aug 2017
3 answers
293 views
IsPanEnabled="True" enables panning, but you need to hold down the Ctrl key. Is it possible to change this to the following?

Panning: Simple click
Selecting: Shift+click
Dinko | Tech Support Engineer
Telerik team
 answered on 23 Aug 2017
1 answer
176 views

Hi,

I'm trying to replace the ContentPresenter in a Frame with the TransitionControl as described here:

http://docs.telerik.com/devtools/wpf/controls/radtransitioncontrol/features/radtransition-integration-with-content-controls

If I follow this example, no content is displayed.

I also tried using TransitionPresenter, which is better in that the content does show up, but there are no transition animations?

I have successfully used a TransitionControl stand-alone, but I'm hoping to use the navigation features of Frame along with transition animations.

What am I doing wrong?

<Frame x:Name="NavFrame" NavigationUIVisibility="Visible" Margin="0,50,0,0">
    <Frame.Template>
        <ControlTemplate TargetType="{x:Type Frame}">
            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
                <teleriktp:TransitionPresenter CurrentContent="{TemplateBinding Content}" Duration="0:0:3">
                    <teleriktp:TransitionPresenter.Transition>
                        <telerikTransitions:WaveTransition />
                    </teleriktp:TransitionPresenter.Transition>
                </teleriktp:TransitionPresenter>
            </Border>
        </ControlTemplate>
    </Frame.Template>
</Frame>
Martin Ivanov
Telerik team
 answered on 23 Aug 2017
4 answers
235 views
How to make the X-axis at '0' in stead of '1'?
Dinko | Tech Support Engineer
Telerik team
 answered on 23 Aug 2017
1 answer
137 views

What is the best way to customize the timebar selection?

 

Could we simply add the XAML with the style for the selection, overwrite it and keep using the dll's that contain the xaml (meaning not the noXaml dll's as recommended) ?

 

Or is there any side effect you'd expect?

Martin Ivanov
Telerik team
 answered on 23 Aug 2017
1 answer
149 views

I have a diagram control, I'm using GraphSource to bind to a list of my business objects. I then use protected override IConnection GetConnectionContainerForItemOverride(object item) to choose a connection based on the specific business object. In my case I'm either using RadDiagramConnection directly, or a custom implementation that inherits from RadDiagramConnection.

My goal is to disable the ability for my users to disconnect the start point of my connector in some situations  - thus the GetConnectionContainerForItemOverride override to select a custom implementation of RadDiagramConnection.

In my custom implementation of RadDiagramConnection constructor I've tried to listen to various events, I've tried to clear the connection points, and manipulation points, but no no affect. I cannot detect that the user is trying to move the start point, and then cancel, nor can I remove the point so the users cannot drag it around when the connection is selected in the diagram at run time.

Any thoughts on how I can disable the ability for my users to remove the start connection of my connection line on a diagram control?

Thanks for any thoughts you have about this!

Petar Mladenov
Telerik team
 answered on 23 Aug 2017
2 answers
126 views

Hi, I'm currently going trough the process of styling the PanelBarItems and I can't get the mouse over on the currently selected item in the PanelBar.

Repro : 

1.MouseOver item1, it works

2.Click on item1, mouse over style is still applied

3.mouse out and back in item1, mouse over style is no longer working.

 

Repro project : https://drive.google.com/file/d/0B9yNrE596_TZcUhhNDNtTkJqaFE/view?usp=sharing

Louis
Top achievements
Rank 1
 answered on 22 Aug 2017
4 answers
143 views
I try this but they don't position on right place
01.<telerik:InformationLayer ItemsSource="{Binding MapItems}">
02.               <telerik:InformationLayer.ItemTemplate>
03.                   <DataTemplate>
04.                       <Grid>
05.                           <Ellipse Width="35" Height="35" Name="HotSpot1" Fill="Red" telerik:MapLayer.Location="{Binding Location}"
06.                                telerik:MapLayer.ZoomRange="5,20"
07.                                telerik:MapLayer.MaxScale="5"
08.                                telerik:MapLayer.MinScale="1">
09.                               <telerik:MapLayer.HotSpot>
10.                                   <telerik:HotSpot X="0.5" Y="0.5" ElementName="HotSpot1" />
11.                               </telerik:MapLayer.HotSpot>
12.                           </Ellipse>
13.                           <TextBlock Text="{Binding Text}" Name="HotSpot2" telerik:MapLayer.Location="{Binding Location}"
14.                                telerik:MapLayer.ZoomRange="5,20"
15.                                telerik:MapLayer.MaxScale="5"
16.                                telerik:MapLayer.MinScale="1">
17.                           <telerik:MapLayer.HotSpot>
18.                               <telerik:HotSpot X="0.5" Y="0.5" ElementName="HotSpot2" />
19.                           </telerik:MapLayer.HotSpot>
20.                           </TextBlock>
21.                         
22.                       </Grid>
23.                   </DataTemplate>
24.               </telerik:InformationLayer.ItemTemplate>
25.           </telerik:InformationLayer>
Martin Ivanov
Telerik team
 answered on 22 Aug 2017
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?