Telerik Forums
UI for WPF Forum
3 answers
204 views
Hi, sorry but my english is not well. I´m newby in development WPF app.

I have a problem with implement drag drop between two treeview and i need help.
That´s what i want to do:
  1. I have two treeview. First treeview has hierarchy like:

      A1
          A1.1
             A.1.1.1
          B1.2
             B.1.2.1
             B.1.2.2
                B.1.2.2.1
                B.1.2.2.2
             B.1.2.3
             ...
2. The other treeview is empty

Well, i like drag both elements as parents from treeview (1) to (2). 
The first requirement is that drag drop from 1 to 2 the elements from 1 are deleted and can drag parents complete with all its child
The second requirement is when drag from 2 to 1 can only be done on the parent element to which it belongs for example:
    Subitem B.1.2.2.2 can only drag about B.1.2.2
The third requirement is that within the tree two items can be sorted between them

Can I help me?, please

Milena
Telerik team
 answered on 30 Jan 2015
3 answers
86 views
Hello Telerik,

I created a custom RadDatePicker and I'm trying to use a custom data template selector. The solution worked for disabling some dates, no problem.

Now my problem is that whenever you go back and forward in the calendar it does not update it's visual style. It works fine when going from one month to another , however when you try to go to year/10 year/100 year view and go back and forward, it does not update correctly.

In the example u provided it also has this exact behavior, try the raddatetimepickerlocalization.zip from the following post:

http://www.telerik.com/forums/daytemplateselector

Thanks in advance,
Ben
Kalin
Telerik team
 answered on 30 Jan 2015
6 answers
453 views
I'm trying to add a CellStyleSelector on autogenerated columns, but no style is being applied.  The grid is below.

<telerik:RadGridView Name="rgridProgramSearchResults" AutoGenerateColumns="True" AutoGeneratingColumn="rgridProgramSearchResults_AutoGeneratingColumn" CanUserFreezeColumns="False" IsReadOnly="True" Grid.Column="1"
                ItemsSource="{Binding}" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" Margin="0,0,0,30" SelectionMode="Multiple" >
    <telerik:RadGridView.Columns>
        <telerik:GridViewSelectColumn UniqueName="Select" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

and the style
<me:ImportStyle x:Key="stadiumCapacityStyle">
    <me:ImportStyle.BigStadiumStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="Red"/>
        </Style>
    </me:ImportStyle.BigStadiumStyle>
    <me:ImportStyle.SmallStadiumStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="Yellow" />
        </Style>
    </me:ImportStyle.SmallStadiumStyle>
</me:ImportStyle>

The auto generate event
private void rgridProgramSearchResults_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
     e.Column.CellStyleSelector = Application.Current.Resources["stadiumCapacityStyle"] as StyleSelector;
}


and the class

public class ImportStyle : StyleSelector
{
    public override Style SelectStyle(object item, DependencyObject container)
    {
        return BigStadiumStyle;
 
    }
    public Style BigStadiumStyle { get; set; }
    public Style SmallStadiumStyle { get; set; }
}
Boris
Telerik team
 answered on 30 Jan 2015
1 answer
357 views
Hi

we have a RadGridView in which we want to have a column which is bound to a Boolean property in view model, doing this we also want to use SelectAll functionality provided by GridViewSelectColumn

so when select all is performed, all the rows also have their bound object property set to true as well.

Is there any way by which we can bind a property to SelectColumn ?

Thanks
M.
Stefan
Telerik team
 answered on 30 Jan 2015
10 answers
545 views
Hi team,

Say class A has a property which is a collection of Class B. Now i want to design a UI attached. 

So I wonder if propertygrid has such a built support, if not, how am i gonna do this? A self defined a data template for the property?

Maya
Telerik team
 answered on 30 Jan 2015
3 answers
176 views
Hi,

Is it possible, on RadDatePicker control, to handle click event on week number ?

If so, how to get the clicked week number ?

Thanks
saw
Top achievements
Rank 1
 answered on 30 Jan 2015
1 answer
349 views
hi
how can i use image and text in same Cell?
like this
(Image)-MyName
(Image)-ID
????
Stefan
Telerik team
 answered on 29 Jan 2015
5 answers
325 views
Hi,

I would like to know if it's possible to change the cursor in the resize process when we try to resize an appointment over a slot that I don't want to permit. A cursor like we have when we block the drop operation.

Also, I would like to know if it's possible to resize of an readonly slot depending on a specific scenario?

Thank's
Alain
Scott
Top achievements
Rank 1
 answered on 29 Jan 2015
1 answer
283 views
Hi,

My application is in MVVM. I have a RadGridview where 2 columns are Databound and I have to generate third column dynamically with RowNumbers.
Here is my code. I am getting (collection) in the third column. The other 2 columns are fine. Please help me on this. 

XAML:

<telerik:RadGridView  Name="TestGridView"  ItemsSource="{Binding TestListView}" AutoGenerateColumns="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewColumn Header="RowCount">
                                <telerik:GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <TextBlock Text="{Binding TestRowNumber}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:GridViewColumn.CellTemplate>
                            </telerik:GridViewColumn>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="NetBIOS Name" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Salary}" Header="Model" />
     </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

ViewModel:

public void Testupdate()
        {
            RadObservableCollection<int> rno = new RadObservableCollection<int>();
            for (int i = 1; i <= TestList.Count; i++)
            {
                rno.Add(i);      
             }  
          TestRowNumber= rno;
         } 

  private RadObservableCollection<int> _testRowNumber;
        public RadObservableCollection<int> TestRowNumber
        {
            get { return _testRowNumber; }
            set
            {
                _testRowNumber = value;
             
                OnPropertyChanged();
            }
        }

Its showing correct count in the rno with items 1 to 6. But when displaying on the grid, its showing (collection). I am not able to trace where I am going wrong. Please correct me.

Thank you.










Boris
Telerik team
 answered on 29 Jan 2015
1 answer
71 views
Hi everybody, I am using RadGridView, and I want to do keyboard arrow key navigation like end to beginning and also beginning to end. I saw there is an "AllowActiveRowCycle" property in Telerik UI for ASP.NET but I can't find such a property in UI for WPF. Is there anything like this or another solution to provide this feature in WPF RadGridView ?
Boris
Telerik team
 answered on 29 Jan 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?