Telerik Forums
UI for WPF Forum
2 answers
815 views

I want whenever an item is added for it to start expanded.

My treeview is bound to a viewmodel.

I am using code examples from the forums to bind the isexpanded to a viewmodel isexpanded property like below.

The code worked for a bit and then recently stopped . the treeview does not render at all if the style is applied. if I remove the style it works fine.

Any ideas. is there a simpler way to do it .

Any help would be appreciated.

 

<Style TargetType="{x:Type telerik:RadTreeViewItem}" x:Key="Cola"  >
    <Setter Property="IsSelected" Value="{Binding Path=IsSelected,Mode=TwoWay}"  />
    <Setter Property="IsExpanded" Value="{Binding Path=IsExpanded,Mode=TwoWay}"/>
</Style>

<telerik:RadTreeView Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Margin="4"
                       SelectedItem="{Binding SelectedTreeViewModel,Mode=TwoWay}" ItemContainerStyle="{StaticResource Cola}"
                       ItemsSource="{Binding TreeViewModels}"  >
      <telerik:RadTreeView.ItemTemplate>
          <HierarchicalDataTemplate ItemsSource="{Binding TreeViewModels}"  >
              <StackPanel Orientation="Horizontal" >
                  <Image Source="{Binding Image}" Height="16" Width="16" VerticalAlignment="Center"  />
                  <TextBlock Text="{Binding Name}" Margin="4,0,0,0" VerticalAlignment="Center" />
              </StackPanel>
          </HierarchicalDataTemplate>
      </telerik:RadTreeView.ItemTemplate>
  </telerik:RadTreeView>

David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 04 May 2016
1 answer
73 views
Is it possible to change the layout of MapScale control -> display the Text block next to the rectangle, not under it? 
Yarema
Top achievements
Rank 1
 answered on 04 May 2016
5 answers
283 views

I want to put a circle of a certain radius on a map, that can be selected and I can move it around with a mouse.

SelectionChanged event is only available on VisualizationLayer, however I cannot put MapEllipse or MapEllipseView on the layer - I see nothing. With MapEllipse, for example - when I put it onto the InformationLayer it is displayed properly. But I cannot do anything with selection on that layer... I could use EllipseData, but that doesn't have HotSpot property, and I would like to set the hotspot to the center of the shape rather than left upper corner as it is by default.

Do you have any tips how I can reach my goal?

Dinko | Tech Support Engineer
Telerik team
 answered on 04 May 2016
7 answers
291 views

Hi everybody,

 

I'm using a RadRibbonView. When the window is full screen, i've no problem (file_1).

When the window is more small, the width of RadRibbonView is decreasing, and the RadRibbonTab witdh, too (file_2). The components are grouped in the same menu ("Navigation").

But, the space between the title ("Navigation") and his components is created (file_3), and I can't delete it.

 

My code :

<telerik:RadRibbonView Grid.Row="0" Grid.Column="1" HelpButtonVisibility="Hidden" ApplicationButtonVisibility="Hidden" 
                                        TitleBarVisibility="Collapsed" HorizontalAlignment="Left" TitleBarBackground="{x:Null}" 
                                        IsMinimizable="False" Height="82">

I've tried to change de Height ("Auto" for example"), but it dosen't work.

 

<telerik:RadRibbonTab Header="Graphiques" Height="Auto" VerticalAlignment="Top" >

(The all of RadRibbonTab have the similar code)

<telerik:RadRibbonGroup Header="Navigation" Height="Auto" VerticalAlignment="Top">

(The all of RadRibbonGroupe have the similar code)

Martin
Telerik team
 answered on 04 May 2016
3 answers
360 views
Hi.

I'm using a grid that has parent child heirarchy details using heirarchychildtemplate using MVVM and EF. There is a plus sign in the left-most column for the user to click on to expand the row. When the user clicks on a cell in the row, the details expand normally and the row is selected. But when the user just clicks on the plus sign, the row is expanded but the row does not get selected and SelectedItem is not changing. But according to our functionality, selected item should be updated when the user clicks on the expand button also. 

Please give an idea how to change the selected item of the radgriew of the parent grid when the user clicks on the expand button of the left-most column of the gridview.

I'm relatively new to WPF so apologies if I'm overlooking the obvious

Thanks & Regards
Somasekharan Thampi S
Stefan
Telerik team
 answered on 04 May 2016
1 answer
289 views

I am trying to add nodes for a radtreeview from vb. But the property nodes is not getting visibled for radtreeview.

I referred this tutorial to add but when ever i tried to call this Nodes property RadTreeView1.Nodes  its throwing an error as  'Nodes' is not a member of 'Telerik.Windows.Controls.RadTreeView'. 

 Why does it showing like this and whats the workaround for this ..??/

 

 

 

Thanks 

Arshad

Martin Ivanov
Telerik team
 answered on 04 May 2016
1 answer
283 views

Hi there!

Now i have spreedsheet that gets its data from entity data base and  bind it to the page the question is :

i have save button , So how can i save the data i inserted in the spreedsheet to the data base i tried some times but the data i entered in the spreed sheets is deleted automatically once i clicked on the button so i want to catch the cells i inserted or edited data on it and save the values of it in the data base

Thanks in advance

Nikolay Demirev
Telerik team
 answered on 04 May 2016
3 answers
355 views
Hello
I have following code:

<telerik:TxtDataProvider Name="txtProvider"  RichTextBox="{Binding ElementName=rtbLog}" Text="{Binding Path=Log, Mode=OneWay}" />
<telerik:RadRichTextBox Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Left" IsContextMenuEnabled="True" IsReadOnly="True" Margin="5,3,0,0" IsSelectionMiniToolBarEnabled="False" IsSpellCheckingEnabled="False" Name="rtbLog" VerticalAlignment="Top" />
All I want is to display text, but I have following issues:

1. I cannot set font size and familly. It is very big on the beggining. Even if I set font size for richtextbox it is simple not working.
2. I have context menu enabled but no context menu is displayed. This is for read only purposes only so I would simply have copy context menu.
Tanya
Telerik team
 answered on 03 May 2016
2 answers
193 views

Hi to all,

I'm developing a MVVM Application, I have a global context for application, I have a provider class that exposes me a method that returns a List<MyModel>

MyModel is a class that I use internally in application:

My entityframework context (EF5 & FW4.0) exposes MyTable (this table corresponde to MyModel class).

My provider get IQuarable<MyTable> by linq and convert all items in MyModel, then return List<MyModel>.

Now, If I have a lot of records and I have to show all items into ComboBox, I could user VirtualQueryableCollectionView.

But how can I use List<MyModel> to do this? I will get the same result?

Dario Concilio
Top achievements
Rank 2
 answered on 03 May 2016
1 answer
138 views

Hi,

I'm using a RadScatterSparkline object inside a RadTimeBar. It works perfectly but I would like to make the points bigger because some times they are difficult to see (I'm using the RadScatterSparkline in combination with a RadLinearSparline).

Since I'm adding the RadScatterSparkline dynamically I would like to change the size of the points programmatically.

I've tried setting the Height and Width properties but it did not work.

Do you know if this is possible at all? If so, any idea on how to do it?

 

Many thanks!

 

Regards.

Peshito
Telerik team
 answered on 03 May 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
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?