Telerik Forums
UI for WPF Forum
1 answer
68 views
In WPF RadRichTextBox (2015.2.623.45 build), how to get number of lines in DocumentContentChanged event while text get wrapped?
Tanya
Telerik team
 answered on 12 Jan 2017
1 answer
85 views

In WPF RadRichTextBox (2015.2.623.45 build).

how to get number of lines while text get wrapped in DocumentContentChanged event?

 

Thanks

 

Tanya
Telerik team
 answered on 12 Jan 2017
2 answers
943 views

Hi ,

I am binding one of the Property "Location" of  a class to Gridview column as combobox.Its ItemSource is another property in ViewModel of type List<string>.

But here the problem is I am not able to see the value of Location when Grid is loaded.The following is Xaml related to GridviewComboColumn.

 <telerik:RadGridView.Columns>
                    <telerik:GridViewComboBoxColumn  DataMemberBinding="{Binding Location}"  ItemsSource="{Binding LocationList}" IsComboBoxEditable="False"  Width="*" />               
                </telerik:RadGridView.Columns>

Here what should be the selectedValueMemberPath and DisplayMemberPath values will be ?? Location List is a simple List<string> not a class type.

How to make Location value to be seen when grid loaded?/

Regards,

Nagasree.

Dharmavaram
Top achievements
Rank 1
 answered on 12 Jan 2017
2 answers
121 views

Hi,

I am using RadTreeListView to display the data hierarchy in UI. I have a requirement to shuffle/re-order the columns. I had achieved this functionality by setting CanUserReorderColumns property to True.

 

UI:

Three Data Columns Naming - Col1|Col2|Col3

XAML is written such a way that Col1 is freezed (cannot reorder) setting GridViewDataColumn.IsReorderable="False". Means Col2 & Col3 can reshuffle there positions.

Everything works well till this point. The issue is with DropIcon.

When I drag Col2 on top of Col1 a DropIcon showing cannot drop is displayed (that is expected), but from this point without dropping i drag Col2 on top Col3 still a cannot drop drop icon is display (actually user can drop Col2 on top of Col3 position).

 

Please let me know how to fix this issue.

 

 

Thanks,

Lakshman Siddireddy

Lakshman
Top achievements
Rank 1
 answered on 12 Jan 2017
29 answers
700 views
Hi

I've got an app with some Telerik Docking contols, and in one of the RadPanes is a WPF Frame control, displaying a webpage. This works fine when the pane is docked, but when I undock the pane, the content disappears. It re-appears when I re-dock the pane. Any idea what is happening here?

XAML:
<telerik:RadPane Header="Test" CanDockInDocumentHost="False" Name="Tese"
ContextMenuTemplate="{x:Null}">
    <telerik:RadPane.Content>
        <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
     </telerik:RadPane.Content>
</telerik:RadPane>

 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
  
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
                             </telerik:RadPane.Content>
  
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
                     </telerik:RadPane>


Thanks
Tom Davies
Peavey Digital Research.
Kabir
Top achievements
Rank 1
 answered on 11 Jan 2017
4 answers
391 views

Hi.   I've been working off of the OrgChart example, which is a great example and is exactly what I need.  However, I'm still having issues when updating the graph source and having that layout correctly.   Now, all the nodes get stacked on top of each other.  Can you provide an example of how to get this working?  Take for example, the OrgChart sample app and provide a new demo where you can click a button and have it reload a completely new data set and have that layout correctly in the diagram?

 

Thanks very much

Jamie
Top achievements
Rank 1
 answered on 11 Jan 2017
3 answers
273 views

http://stackoverflow.com/questions/19590930/fluid-layout-wrap-panel-variablesizedwrapgrid-in-desktop-applications

How best to build something like that with Telerik WPF?

Martin Ivanov
Telerik team
 answered on 11 Jan 2017
1 answer
122 views

Hello,

it is possible to collapse the content area of the RadOutlookBar?

I want to show the item list at the start of the application. At this moment any item is selected. Only when the user selects an item then the content should showed on the content area.

Thank for tipps,

Richrad

Stefan
Telerik team
 answered on 11 Jan 2017
1 answer
137 views

I have the following xaml for a button in the column header of my gridview.

<telerik:GridViewDataColumn Width="auto" >
    <telerik:GridViewDataColumn.Header>
        <Button Content="Add New" x:Name="cmdAddNew"
            Command="{Binding DataContext.AddCommand,
                                  RelativeSource={RelativeSource FindAncestor,
                                  AncestorType={x:Type UserControl}}}"
                                  Margin="0,5,5,5"/>
    </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

 

When I run the app I get the following error:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.UserControl', AncestorLevel='1''. BindingExpression:Path=DataContext.AddCommand; DataItem=null; target element is 'Button' (Name='cmdAddNew'); target property is 'Command' (type 'ICommand')

I can't make heads or tails of what is wrong.

The really strange part is if I add a click handler to my view and call:

    var vm = (TechniquesViewModel) this.DataContext;
    vm.AddCommand.Execute(null);

 

Everything works perfect.

What am I missing? I know I shouldn't be putting that code in my view, but I can't make it work with the xaml I have.

Thanks ... Ed

 

 

 

Ivan Ivanov
Telerik team
 answered on 11 Jan 2017
7 answers
159 views

Hi,

We have a few classes that inherits from our CustomShape class that inherits from RadDiagramShape, we also have a CustomConnector (inherits from RadDiagramConnector) class and we would like to have our ports always visible, we did try to edit the default template of RadDiagramShape and change the visibility to visible but it is not working.

Would you be able to tell us to change the visibility of the ports to make them visible even when the shape is not clicked?

Thanks!

Petar Mladenov
Telerik team
 answered on 11 Jan 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?