Telerik Forums
UI for WPF Forum
8 answers
1.0K+ views
I'm using DragDropManager to reposition ListViewItems within a single ListView. How can I prevent a ListViewItem from being dragged out of the ListView? RadDragAndDropManager used to have a DragQueryEvent, but I cannot find a similar event with the new  DragDropManager  framework.
Kalin
Telerik team
 answered on 17 Mar 2015
2 answers
157 views
I am trying to delete a field in database(using linq) corresponding to item on which delete button is clicked. the code is same as:http://demos.telerik.com/silverlight/#DataForm/FirstLook.how can i implement that?
Pranav
Top achievements
Rank 1
 answered on 17 Mar 2015
3 answers
289 views
Greetings.

In our web application we implemented the Telerik RadEditor.
Now we have a problem exporting a document to word.

When we export the document,  the text aligned to the right, keeps normal (from left to right).
However if we align the text with spaces to the right, the format keeps well.

Any idea what might be going on for right alignment not working? Don't know if it helps, put left align and center align are working and are well exported.

Regards.
Tanya
Telerik team
 answered on 17 Mar 2015
1 answer
99 views
Hi,
I use a VirtualCollection binded to a RadGridView (Version 2015.1.225.45    framework 4.5.1 ) 
My scenario is : when i click on the button move last  VirtualCollectionPays.MoveCurrentToLast(); the scrollbar of gridview move to last position and when i click on the button move fist  VirtualCollectionPays.MoveCurrentToFirst(); the scrollbar of gridview move to fist position .

Error :  when i move to the last and come back to first position the loading event in virtual collection make a recursive call and load all Items in the database .
I use a plain wcf services  not rest nether data services .
i use an async methode in the loading event .

//
public async void LoadData()
       {
           VirtualCollectionPays = new VirtualQueryableCollectionViewExtended<Pay>() { LoadSize = SizePage };
           VirtualCollectionPays.ItemsLoading += VirtualCollectionPays_ItemsLoading;
           
           PayDataPage datapager = null;
            
           var slowTask = Task.Run(() =>
           {
               datapager = _dataProvider.GetQueryableLazyPay(SizePage, position, PayFilterDescriptor, PaySortDescriptor, PayGroupDescriptor);
           });
 
           await slowTask;
 
           VirtualCollectionPays.VirtualItemCount = datapager.TotalCount;
           VirtualCollectionPays.Load(0, datapager.DataItems);
       }


 
async void VirtualCollectionPays_ItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs e)
        {
             
            BusyIndicatorGrid = true;
            try
            {
                PayDataPage datapager = null;
                ItemsLoading = Task.Run(() =>
                {
                    datapager = _dataProvider.GetQueryableLazyPay(SizePage, e.StartIndex, PayFilterDescriptor, PaySortDescriptor, PayGroupDescriptor);
                });
 
                await ItemsLoading;
                 
                VirtualCollectionPays.Load(e.StartIndex, datapager.DataItems);
                 
                BusyIndicatorGrid = false;
            }
            catch (Exception ex)
            {
                string mg = ex.Message;
            }
 
        }

when selected change of gridView the scrollbar change position 

void radGridViewPay_SelectionChanged(object sender, SelectionChangeEventArgs e)
       {
           var VMListePay = this.DataContext as VMListePay;
           radGridViewPay.ScrollIndexIntoView(VMListePay.VirtualCollectionPays.CurrentPosition);
        
       }


same problem when i change SelectionChanged with PropertyChanged

void VirtualCollectionPays_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
       {
           var VMListePay = this.DataContext as VMListePay;
           if (e.PropertyName == "CurrentPosition")
           {
               if (VMListePay.VirtualCollectionPays.CurrentPosition >= 0)
               {
                   radGridViewPay.ScrollIndexIntoView(VMListePay.VirtualCollectionPays.CurrentPosition);
               }
 
           }
       }










Dimitrina
Telerik team
 answered on 17 Mar 2015
19 answers
285 views
I've trying to test automatically a RadGridView using UI Automation / Coded UI from Microsoft. Everything is fine using the RadGridView built for .Net 3.5 SP2. Each cell is detected and I can click into it to modify the cell's value.
However, we have switched to .Net 4.0 and the corresponding Telerik version. Unfortunately, I'm facing the problem that I am just able to click into the cells of the last rows.

Any suggestions how to fix this problem?
bhadram
Top achievements
Rank 1
 answered on 17 Mar 2015
1 answer
249 views
Hi,

I have RadListBox in windwo. Now I want to change the Item color based on the variable value then  I am using below code to do that but it is not doing anything..so whats the wrong in it? Can someone tell me or how to do like this?

  <telerik:RadListBox.Resources>
                                    <Style TargetType="{x:Type telerik:RadListBoxItem}">
                                        <Style.Triggers>
                                            <DataTrigger x:Name="dtCovert" Binding="{Binding iscovert}" Value="true">
                                                <Setter Property="Foreground" Value="Blue" />
                                            </DataTrigger>
                                        </Style.Triggers>
                                    </Style>
                                </telerik:RadListBox.Resources>-


My Control Usage
-------------------------
  <telerik:RadListBox SelectionMode="Extended" Grid.Row="1" Grid.Column="0" Grid.RowSpan="5" Name="listBoxAvailableList"  TabIndex="9" Width="260" Margin="2,0"  ItemsSource="{Binding AvailableCameraList}" TypedText="{Binding cameraName}" PreviewMouseDoubleClick="listBoxAvailableList_PreviewMouseDoubleClick">                             
                                <telerik:RadListBox.ItemTemplate >
                                    <DataTemplate>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="0*" />
                                                <ColumnDefinition Width="4*" />
                                            </Grid.ColumnDefinitions>
                                            <Label Name="lblCameraName" Grid.Column="1" Visibility="Visible" Content="{Binding Path=cameraName,Mode=TwoWay}" Width="150"></Label>
                                        </Grid>
                                    </DataTemplate>
                                </telerik:RadListBox.ItemTemplate>
                            </telerik:RadListBox>
Kalin
Telerik team
 answered on 17 Mar 2015
3 answers
132 views
Is there a way to override the NextAppointment or PreviousAppointment button actions?

I have different types of appointments in a timeline view. And I need the previous and next buttons to ignore some of these types when navigating.

Is there a way to override this functionality ?
Nasko
Telerik team
 answered on 17 Mar 2015
1 answer
510 views
Is there a way to specify the minWidth for the Group column, For ex I have 2 resource type and user select a resource of each type, I will get 2 columns one for each resource, Currently Schedule control determines the width, I would like to set the min width.
I do not change the width or do nay modification, just set the intial minwidth.

Thanks
vikas
Kalin
Telerik team
 answered on 17 Mar 2015
2 answers
131 views
Hi,

i have scanario which i have to implement in my project.

I have some items in radtreeview controls.and i have tileview control.

right as per the treeview item selection i am creating the tileviewitem in the tileview dashboard.

But the requirement is i have ti implement the drag and drop from only treeview to tileview.

Could you help me out to implement this.

i have attached the screen shot of my application.

and i have to show the treeviewitem when i am doing to drag and until to drop in the respective area of tileview.

i want to implement darg and drop from treeview to tileview only. not needed to do from tileview to treeview.
 Thank you
sai
Top achievements
Rank 1
 answered on 17 Mar 2015
2 answers
274 views
This is a bit of a nit but I am using the RadTreeView and registering an event handler for ItemDoubleClick which I handle or not depending on the contents of the node. Apparently the default behavior of the double click in the tree view is to expand or collapse the node which is good. However if I handle the double click I would prefer that it NOT expand or collapse. I tried setting e.Handled = true in the double click event handler but that does not seem to make a difference. Any thoughts?

Thanks
Dave
David
Top achievements
Rank 1
 answered on 16 Mar 2015
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?