Telerik Forums
UI for WPF Forum
0 answers
153 views

Hello!

      I'm using a "RadGridView" in my application. The grid is in a border with HorizontalAlignment="Stretch". I'm having 8 columns with only 2 of them given fixed widths. Since I want my grid to fill the horizontal space I'm setting the columns width in form of "*" values (e.g. 50* or 100*). Every thing works fine if the amount of data bound is small up-till around 50-70 max. When I bind a collection with more data like around 100-200 the UI starts to distort. The columns do not resize to take the whole space (Se the attached image). I need help asap on this.

 

Regards

Tushar Gupta

 

tushar
Top achievements
Rank 1
 asked on 12 Jan 2017
1 answer
70 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
88 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
960 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
125 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
716 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
409 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
279 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
129 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
144 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?