Telerik Forums
UI for WPF Forum
4 answers
271 views

Hi,

I'm searching a way to highlight all supported drop zone in a control, when a drag start (and of course reverse to normal when drag end)... and using MVVM.

Is there something already existing about this use case ?

Thanks !

Regards,

Lagrange
Top achievements
Rank 1
 answered on 26 Jul 2016
13 answers
196 views

Hi,

I want to achive that the nested RadGridView in my RadComboBox gets the focus when the ComboBox' DropDown is opened. For this I want the reference of the nested GridView but ComboBox.FindChildByType<RadGridView> doesn't work.

Here is the XAML Code of my ComboBox

<telerik:RadComboBox Name="cbMachineType" Text="{Binding Fleet}" Grid.Row="2" Grid.Column="2" IsEditable="True"
                     Width="150" Height="{Binding ActualHeight, ElementName=txtName}"
                      DropDownOpened="cbMachineType_DropDownOpened">
    <telerik:RadComboBox.Items>
        <telerik:RadComboBoxItem>
            <telerik:RadComboBoxItem.Template>
                <ControlTemplate>
                    <telerik:RadGridView x:Name="gvMachineType" ShowGroupPanel="False" CanUserFreezeColumns="False" IsReadOnly="True" IsFilteringAllowed="False"
                                         SelectionMode="Single" RowIndicatorVisibility="Collapsed"
                                         SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadComboBox}},Path=DataContext.SelectedMachineType}"
                                         DataContext="{StaticResource MachineTypeViewModel}" ItemsSource="{Binding MachineTypes}"
                                         Width="{Binding Width, ElementName=cbMachineType}" Height="150" AutoGenerateColumns="False"
                                         SelectionChanged="gvMachineType_SelectionChanged">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Width="*" Name="cSubDescription" Header="Beschreibung" DataMemberBinding="{Binding Type}"/>
                            <telerik:GridViewDataColumn Width="1*" Name="cSubFleet" Header="Flotte" DataMemberBinding="{Binding Fleet}"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </ControlTemplate>
            </telerik:RadComboBoxItem.Template>
        </telerik:RadComboBoxItem>
    </telerik:RadComboBox.Items>
</telerik:RadComboBox>

How can I achive this?

 

Greetings

Alexander

Stefan Nenchev
Telerik team
 answered on 26 Jul 2016
2 answers
97 views

General description of the project:
In our project we load MVVM-Architectured windows using C# Reflection and put them onto a RadDockPanel, that way it corresponds with our high demands of flexibility, you can specify which windows you want to load when the program starts or afterwards and also close them mid run without affecting the rest of the loaded windows.

The problem: for some reason when we load MVVM-windows that contain the RadGridView controls, they don't update in accordance to their binded-source.

The attachment contains a very stripped down version of loading a window that contains both, a RadGridView and a regular Microsoft DataGrid both of which are bound to the the same property(ObservableCollection). While the DataGrid is updating on every new Item added, the RadGridView does not. Even when explicitly told to do so using the CollectionChaged event.

Also, there's an attached project (ModuleConsoleStarter) that simply runs the same window not loading it with Reflection. In that project both controls are updating perfectly in accordance with theirs source!

My network security provider doesn't allow me to upload files so here is a Google Drive link:

https://drive.google.com/folderview?id=0B2kbmdtjQ0m_X0Zxajk4bkpiSFk&usp=sharing

Pituah
Top achievements
Rank 1
 answered on 26 Jul 2016
1 answer
63 views

Hi,

I tried to use the WPF telerik demo code to load modules of my application as done with the demo but I had a problem when trying to navigate to an example exp1 twice, the second time I am not able to navigate, but when I navigate to another example exp2 then exp1, it works:

exp1 -> home -> exp1: bug during the second navigation.
exp1 -> home -> exp2 -> home -> exp1: no problem.

I thought that may be the problem is with selector object in "SelectorHelper" class.

Can you give me any explanation or ideas about this problem.

Thanks,

Georgi
Telerik team
 answered on 26 Jul 2016
1 answer
154 views

Hi and thanks in advance!

I have a two-part wpf window, RadGridView on left, RadTreeView on right like the "Tree to grid drag example".

I need to drag&drop items from grid to tree (tree must be an Idef0 tree so I need to implement some custom logic in GridViewDragDropBehavior and TreeViewDragDropBehavior to avoid drop in some cases and notify user updating the DragVisual during drag).

All DragDropManager events are fired correctly and a I use DataTemplate and DropIndicationDetails (like your example) to initialize the DragVisual inside OnDragInitialize and update it inside OnDragOver...and I can populate the tree.

But DragVisual is never visible and I don't know why!

Without DragVisual notification and update (made with binding on DropIndicationDetails) it's pretty impossibile to understand the drop position and then notify the user if the operation is possible or not.

I'm using no xaml binaries dll and in MainSkin.xaml I have a ResourceDictionary with the following

<ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
    </ResourceDictionary.MergedDictionaries>

Please help!

Yana
Telerik team
 answered on 26 Jul 2016
14 answers
1.5K+ views
Trying to display a RadBusyIndicator in an WPF MVVM application however the control does not appear when IsBusy binding occurs.

Here is a portion of what is in the user control xaml...

<Grid>
  <telerik:RadBusyIndicator IsBusy="{Binding IsBusy}" Grid.Row="0" >
    <Grid>
      <StackPanel Margin="10,10,10,10">
          ...some content here...                 
      </StackPanel>
    </Grid>
  </telerik:RadBusyIndicator>
</Grid>

I bind the IsBusy to a property in my ViewModel, set the property to true, and then fire OnPropertyChanged to rebind the view. Unfortunately the BusyIndicator does not show.

Has anyone experienced this challenge before, and if so, what was done to resolve it?

I'll follow up this post with an example solution that recreates the problem. Until then, let me know if you have any insights into this.

Cheers, 

Paul
Rob
Top achievements
Rank 1
 answered on 26 Jul 2016
2 answers
89 views

I have read-only RadGridView columns displaying error messages.

They tend to be long, but due to the read-only attribute, I cannot navigate to the end of them.

Other than extending the column width, is there any way to navigate the whole cell width, or to set a wrapper property?

Dodd
Top achievements
Rank 1
 answered on 26 Jul 2016
2 answers
208 views

In my RadGridView I group data by two columns: first by column1 and then by column2. When I set ShowGroupFooters="true" I end up with two footers - one for column1 and another for column2. How can I hide footers for the nested groups (over column2) and leave only footers for the groups over column1?

thank you

Dmitriy
Top achievements
Rank 1
 answered on 25 Jul 2016
4 answers
1.1K+ views
Not sure if doing something wrong but mouse double click input bindings does not appear to work on the grid view (if I hook up an event it works, but don't really want to have event code behind in view:)  is this suposed to function? NB using .NET 4
I should mention that this works on the header cell to the top left of the control but not the actual data cells themselves - and when the input bindings are against the  <telerik:GridViewDataColumn.InputBindings> it does not work either
<telerik:RadGridView x:Name="ResultsView" IsReadOnly="True" ItemsSource="{Binding Path=Dossiers,Mode=OneWay}" AutoGenerateColumns="False" SelectedItem="{Binding CurrentDossier, Mode=OneWayToSource}"  Grid.Column="0" Grid.Row="1">
              <telerik:RadGridView.InputBindings>
                  <MouseBinding MouseAction="LeftDoubleClick" Command="{Binding SearchCommand}" CommandParameter="{Binding ElementName=ResultsView,Path=SelectedCells,Mode=OneWay}"></MouseBinding>
              </telerik:RadGridView.InputBindiIngs>
Ivan Ivanov
Telerik team
 answered on 25 Jul 2016
1 answer
186 views

hello Telerik,

I'm trying to use RadWindow AS user control

I'm having a problem with RadWIndow's Show() method.

I was going over your 'Use RadWindow as User Control' explanation and there is a part where is says :

RadWindowControl window = new RadWindowControl();

window.Show();

 

in my code, the way that my RadWIndow (CapabilityLayer) created is from ResourseDictionary:

<ResourseDictionary>

<DataTemplate DataType="{x:Type localVM:CapabilityViewModel}">

<localVIew:CapabilityLayer/>

</DataTemplate>

</ResourseDictionary>

 

I'm only using "new" in order  to create CapabilityViewModel but CapabilityLayer is automatically created, this is why I dont know where to invoke the Show() method I dont have instance to CapabilityLayer.xaml .

at the moment no errors or exceptions it just that the window is not shown

I tried to invoke Show() in the RadWindow's OnLoad event but it still no show.

I tried to find the radwindow through Application.Current.Windows but I didnt find it there.

where is the right place to put this method ? I saw that some time it is recommended to use ShowDIalog() what is the different?  Show() is where RadWindow create or it is only some kind of visibility set?  

thank you

 

 

Yana
Telerik team
 answered on 25 Jul 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
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
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
Iron
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
Iron
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?