In WPF RadRichTextBox (2015.2.623.45 build).
how to get number of lines while text get wrapped in DocumentContentChanged event?
Thanks
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.
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
<
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
>
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
http://stackoverflow.com/questions/19590930/fluid-layout-wrap-panel-variablesizedwrapgrid-in-desktop-applications
How best to build something like that with Telerik WPF?
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
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
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!