Telerik Forums
UI for WPF Forum
13 answers
173 views
Hi, i Have a gridview binded in code-behind to a list of entities, and the group panel is visible. but i cant drag the column header to the group panel. im missing something.???

btw im using it inside a elementhost.
Tsvyatko
Telerik team
 answered on 16 Feb 2011
3 answers
63 views
Is there a way to keep the item in the treeView when you drag it to the listBox?


Tsvyatko
Telerik team
 answered on 16 Feb 2011
4 answers
110 views
Can I override a column's behavior so that drag-and-dropping will allow not only to sort but to delete (or generate an event with delete request) them as well? 
Nikolay
Top achievements
Rank 1
 answered on 16 Feb 2011
6 answers
135 views
Hi,

Is there any can i generate Gridview column dynamically from code.

thanks
sarag.
sarag
Top achievements
Rank 1
 answered on 16 Feb 2011
1 answer
125 views
I'm trying to get the treeview lines to show up, but they don't.
I'm using a hyerarchical template, is that the reason?

thanks.
Petar Mladenov
Telerik team
 answered on 15 Feb 2011
1 answer
178 views
Hello Telerik Team,
                           In my latest wpf project we are using telerik controls.
In my customer entry form contains 5 fields including rad color picker.

here i want to display all details in radgrid view.Whenever user adding details they give colors also.
i want to display all details in radgrid view with diffrent color.The color is user given when adding details.

how to make this?

anybody help me?
Ivan Ivanov
Telerik team
 answered on 15 Feb 2011
1 answer
78 views
Hi there, 

I follow this example to customize Rad component using custom theme (Telerik support also gave me the sample code)
http://www.telerik.com/help/wpf/common-styling-apperance-themes-custom-theme-project-telerik-approach.html

However, when I tried to do the same thing with TreeListView, the TreeListView formatting is not what I expected.
I included these xaml file from InstallationRootPath\Telerik\RadControls for WPF Q3 2010\Themes\Windows7\Themes\Windows7
  1. RadTreeListView.xaml
  2. TreeListViewRow.xaml
And modify Telerik.Windows.Control.xaml into this:
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <!--Controls-->
        <ResourceDictionary Source="/MyTheme;component/Themes/Slider.xaml" />
        <ResourceDictionary Source="/MyTheme;component/Themes/RadTreeListView.xaml" />
        <ResourceDictionary Source="/MyTheme;component/Themes/TreeListViewRow.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

But, the resulting RadTreeListView is not as I expect. Do I miss some steps to configure RadTreeListView?
Here is the link to sample code given by Telerik support from another thread.

Regards, 

Arinto
Vanya Pavlova
Telerik team
 answered on 15 Feb 2011
5 answers
160 views

Hello

How can I change the validation template of the row? (See attached picture).

How can I do validation in data Source Level and paint all the border of the grid in red if there errors?

Best regards

Ehud.

Vanya Pavlova
Telerik team
 answered on 15 Feb 2011
5 answers
522 views
Hi,

I know the windows explorer is not part of the WPF app. However, I need to create a WPF app that can actually drag the file from the windows explorer and drop it to a textbox control. As a result, the full path of the file appears on the textbox control. Does anyone know how to do this? do I need to create a wpf window to make a windows explorer so that I can have a full control over the drag and drop?

thanks
ronald
Top achievements
Rank 1
 answered on 15 Feb 2011
1 answer
84 views
Dear Telerik forum :)

I have a parent-child relation between two business objects (defined in Linq to SQL):
  - Parent: TransactionAccount
  - Child: Transaction

I want to show all transactions in a grid. Each transaction shall have a combobox displaying all available transactions. I also want to use the built in grouping and sorting functionality. After a bit of struggling with different options I came up with the following solution.

<telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding TransactionAccount.Name, Mode=OneWay}" Header="AccountName">
        <telerik:GridViewDataColumn.CellEditTemplate>
            <DataTemplate>
                <ComboBox
                    DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadGridView}, Path=DataContext}"
                    DisplayMemberPath="Name"
                    IsEditable="False"
                    IsReadOnly="True"
                    ItemsSource="{Binding TransactionAccounts}"
                    SelectedItem="{Binding CurrentTransaction.TransactionAccount, Mode=TwoWay}" />
            </DataTemplate>
        </telerik:GridViewDataColumn.CellEditTemplate>
        <telerik:GridViewDataColumn.AggregateFunctions>
            <Data:CountFunction Caption="Count: " />
        </telerik:GridViewDataColumn.AggregateFunctions>
    </telerik:GridViewDataColumn>

This seems to work fine but in some particular cases (that I just cannot put my finger on) the parent Name is changed. So if I have two accounts Account1 and Account2, suddenly both have the same name.

ISSUE 1: So my question is: is this really the right approach? If so why does the binding update a property on my BO? I have tried every possible way to prevent that (IsEditable, IsReadOnly etc). 

ISSUE 2: Another issue is that when I have the combo open on the last row and press Enter the focus goes "somewhere else" and the only way to resume navigation with the keyboard is to click on the application.

Thanks for any input!
Maya
Telerik team
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?