Telerik Forums
UI for WPF Forum
3 answers
736 views
Hi,

Is there a way to change the Up/Down arrow used by  the RadExpander to different images/icons.  I would like to use different .png files for Expand and Collapse state.

Thanks,

Mike
Pavel R. Pavlov
Telerik team
 answered on 12 Apr 2013
6 answers
468 views
Hi guys,
is there a way to prevent the selection change of nodes? I saw there is only a selectionchanged event which is not much of a help here since the selected node was already changed..
Thanks

Pavel R. Pavlov
Telerik team
 answered on 12 Apr 2013
1 answer
100 views
Hi,
I'm new to the Telerik family and I'm in the process of developing a prototype to allow the user to drag and drop user controls from one list to another. Each user control in turn has several lists that need to be drag enabled to allow the user to create a team of employees. The functionality is not dissimilar from you DND demo with the countries. I«,ve created the basics but I'm a long way from where I need to be and I'm struggling to figure out what is going on.  I'm looking for a few functional examples in VB that will allow me to work out where I am going wrong.  Any help would be appreciated.

Thanks
George
Telerik team
 answered on 12 Apr 2013
1 answer
136 views
Hi,

I've upgraded to library version 2013.1.403.40.
For some reason I am unable to set the SelectedIndex value in code.

Example:
if (radListBox.SelectedIndex <= -1)
{
    radListBox.SelectedIndex = 0;
}
else
{
    radListBox.SelectedIndex++;
}


When the SelectedIndex = -1 and I try to set a value of 0, then the SelectedIndex value still remains as -1.
The same applies if I try SelectedIndex++.

Does anyone have suggestions? It used to work before upgrading.

Thanks,

Rob

Ventzi
Telerik team
 answered on 12 Apr 2013
3 answers
57 views
Hello,
I have a grid where I am programatically setting focus on a control when I add a new row and show details. When I tab to go to the next control in those details, the row selection changes from the row that was selected prior to adding a new record to the record after. If I select the first control with my mouse and hit tab, the focus goes to the next control as is expected. Is there something I should be doing other than setting focus on the control?

Thanks
Dimitrina
Telerik team
 answered on 12 Apr 2013
11 answers
115 views
Hello

When I expand a row for its rowdetails by clicking the plus-sign in the GridViewToggleRowDetailsColumn the row is expanded but it does not seem to be "officially" selected. The fonts don't get fat for example. Now when I enter into a textbox with my mouse and then press TAB-Key I get an Exception. If I first click on the row and then expand it with the plus-sign I don't have this error. Any suggestions?

Here the Stacktrace:
 System.NullReferenceException  
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.Move(FocusNavigationDirection navigationDirection) 
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.ExecuteMoveCommands(FocusNavigationDirection direction) 
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.MoveNext() 
   bei Telerik.Windows.Controls.GridView.GridViewDataControl.OnMoveNextCommand(Object sender, ExecutedRoutedEventArgs e) 
   bei System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e) 

Oh and in the case that the exception does not occur, Tab still doesn't really work - it jumps to the next row instead of jumping to the next TextBox in rowdetails. I already played around with the TabIndex property but didn't find anything. Any idea for that too?

Thanks
Dimitrina
Telerik team
 answered on 12 Apr 2013
0 answers
149 views
Hi, thanks ins advance for reading this

I've been able to reproduce the Drag&Drop and Grouping examples separately. No luck making them work together.

My 2 collections and filling the source list.
Property ProductosTotal As New CollectionViewSource
Property ProductosPedido As New ObservableCollection(Of Productos)
 
'Called when initializing view
Private Sub LoadProductosTotal()
        Dim prods = operacionesProductos.GetAllProductos()
        If prods IsNot Nothing Then
            ProductosTotal = New CollectionViewSource
            ProductosTotal.Source = prods
        End If
    End Sub

On the Xaml side:
<!--Style-->
<Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem">
            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
        </Style>
 
<!--SOURCE RADLISTBOX-->
<telerik:RadListBox Grid.Column="0" ItemContainerStyle="{StaticResource DraggableListBoxItem}"
                            ItemsSource="{Binding ProductosTotal.View}" ItemTemplate="{StaticResource ListBoxItemTemplate}">
                            <telerik:RadListBox.GroupStyle >
                                <GroupStyle>
                                    <GroupStyle.HeaderTemplate>
                                        <DataTemplate>
                                            <StackPanel Height="Auto" Background="{telerik:Windows8Resource ResourceKey=AccentBrush}" Margin="0 5 0 5">
                                                <TextBlock Text="{Binding Name}" FontFamily="Segoe UI Light" FontWeight="Bold" FontSize="16"
                                           Margin="10 3 0 0" Foreground="{telerik:Windows8Resource ResourceKey=MainBrush}"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </GroupStyle.HeaderTemplate>
                                </GroupStyle>
                            </telerik:RadListBox.GroupStyle>
 
                            <telerik:RadListBox.DragDropBehavior>
                                <Behaviors:ListBoxDragDropBehaviorCopy />
                            </telerik:RadListBox.DragDropBehavior>
                            <telerik:RadListBox.DragVisualProvider>
                                <telerik:ScreenshotDragVisualProvider />
                            </telerik:RadListBox.DragVisualProvider>
                        </telerik:RadListBox>
 
<!--DESTINATION RADLISTBOX-->
 <telerik:RadListBox  Grid.Row="1" ItemsSource="{Binding ProductosPedido}" AllowDrop="True"
                            ItemTemplate="{StaticResource ListBoxItemTemplate}">
                        <telerik:RadListBox.DragDropBehavior >
                            <telerik:ListBoxDragDropBehavior />
                        </telerik:RadListBox.DragDropBehavior>
                    </telerik:RadListBox>

Notice the ListBoxDragDropBehaviorCopy I inherited the ListBoxDragDropBehavior to supress the remove operation because it threw an exception.

I need to copy from the source list, not move, I've tried the DragDropManager but I cant understand completely the documentation.
Could someone point me in the right direction, i feel like is something small what im missing

Thanks again

Vedha
Top achievements
Rank 1
 asked on 12 Apr 2013
0 answers
66 views
Hi,

I have 2 controls: TreeView and TreeListView .
Both controls have same ItemsSource business object (ObservableCollection<TDG_DataTable>).

TreeView  displays all items everytime.
TDG_DataTable has Boolean member "Included".
Depends on Included value, TDG_DataTable item should be visible/hidden in TreeListView

So both controls should have same source.
How I can achieve this.

Many thanks.
Dejan
Dejan Jovanov
Top achievements
Rank 1
 asked on 11 Apr 2013
1 answer
137 views
Hi,
I am using the GridView control, and have all my columns and rows generated on the fly, so nothing is known until runtime. By using Row and Column virtualization, I'm able to speed up the load time quite a bit. There's really only 1 problem left I'm seeing. With row virtualization, as you scroll down, it waits until you stop, then loads the appropriate rows. However with column virtualization, it scrolls over and loads the columns as you're scrolling, so you then end up having to let go of the scrollbar, and grab it again to continue scrolling, as more columns are loaded. Can we get the column loading to work similarly to the row loading, and not have them load one by one and causing the scrollbar to act jumpy?

Thanks,
Ryan
Nedyalko Nikolov
Telerik team
 answered on 11 Apr 2013
2 answers
98 views
I am getting an InvalidCastException when there are 2 different classes at the same level of the tree hierarchy. For example, I have an MvDirectory class and an MvFile class. They both implement an int property called Size. They also share a common interface that implements Size. If I have a level of the hierarchy that consists of only MvDirectory instances, the filtering works fine. As soon as I add an instance of MvFile to the same level, I get an exception saying that MvFile cannot be cast to MvDirectory. I'm not sure why it is assuming all nodes at the same level are of the same type. Is there some way of getting it to use the shared interface or am I going to have to populate my tree with instances of the same class? Or am I just missing something?

Thanks,
Joe
Joe
Top achievements
Rank 2
 answered on 11 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?