Telerik Forums
UI for WPF Forum
3 answers
135 views
Hi

I want to know. How can I apply Sorting on a Column by default when grid load. If I want that on a column "Customer Name" than How will I do this.
Veselin Vasilev
Telerik team
 answered on 17 Dec 2010
1 answer
115 views
Hi,

I do I set the theme propery in code? 
I've tried something like : myGrid.Skin = "Vista" , but it tells me there is no "Skin" property in the RadGridView Object.

Thank you
Veselin Vasilev
Telerik team
 answered on 17 Dec 2010
1 answer
240 views
Hi

I want to Know how can I achieve the Fuctinality in using GridViewToggleRowDetailsColumn in the RadGridView.

I have a requirment that while user Click on the Plus button on the grid show the Row Details for that row. and now I have a scenario that If user already clicked on plus button for any row and again clicking on plus button on other row. The previous expaned row get collapse automatically.

So kindly help me on in this.

 

Veselin Vasilev
Telerik team
 answered on 17 Dec 2010
1 answer
247 views
Hi All,

I want to create a Radgrid in WPF in which i want to merge 7 sub-columns of weekdays (sunday to monday) into one column header (Days).
I am new to wpf ,so dont know how to do this. Is it possible in telerik grid ? Is telerik:GridBoundColumn used for it ?

If yes , then kindly tell me the XAML syntax .

Eg.




DAYS



S M T W TH F Sat Sun
















Veselin Vasilev
Telerik team
 answered on 17 Dec 2010
0 answers
123 views
Hi,
i got datagrid with datepicker columns and textbox colums, i need to save some data when date is changed or text in textbox is changed. I had no problems with textbox i just used event on lostfocus and than:

TextBox textbox = sender as TextBox;
GridViewRow parentRow = textbox.ParentOfType<GridViewRow>();
if (parentRow != null)
{
    parentRow.IsSelected = true;
    Item item = this.listGridView.SelectedItem as Item;               
    Save(item);
}

but i cant use ParentOfType with RadDatePicker how can i achiv this?

EDIT
Ah never mind :P i just forgot about using Telerik.Windows.Controls.GridView;   sorry for this post ;)
Zbigniew Kozłowski
Top achievements
Rank 1
 asked on 17 Dec 2010
1 answer
48 views
Hi.

I wanrt to know how can I Clubb 4 Columns while moving the columns in a grid.
Pavel Pavlov
Telerik team
 answered on 17 Dec 2010
1 answer
184 views
Hi

I am using a telerik rad grid view  where i want to make 2 columns editable out of 5 columns present in the grid view.I want that columns to be saved to database after editing.I have to use "Insert" key  as an input from keyboard to add a new row to the rad grid view , then add the data in each cells  wherever required and then then update that rad grid view and pass it on to the database for saving.As well as for updating I want to edit selected columns and then update it to the database.I would be thankful if you can send me a sample application completely based on the above requirements (If possible send it in visual studio 2008 version ) 

THIS IS A VERY IMPORTANT REQUIREMENT
Please help  me as soon as possible.
Pavel Pavlov
Telerik team
 answered on 17 Dec 2010
1 answer
40 views
I'd like to have a close button (X) in the top right corner of my TileViewItems.
Can someone suggest how I might implement this?

Thanks
Buzz
Buzz
Top achievements
Rank 1
 answered on 16 Dec 2010
4 answers
559 views
Hi,  This may be a WPF Databinding question but I think this should be simple.

I have a RadGridView that displays a collection of objects and allows a user to drill down into a subcollection of the databound object.  I use the following XAML to define the GridView:

 <telerik:RadGridView ItemsSource="{Binding L2SClasses}" ColumnsWidthMode="Fill" telPres:StyleManager.Theme="Vista" CanUserInsertRows="False" CanUserDeleteRows="False" IsReadOnly="True" 
                                         SelectedItem="{Binding SelectedClass}" AutoGenerateColumns="False"  ShowGroupPanel="False" > 
                        <telerik:RadGridView.Columns> 
                            <telerik:GridViewToggleRowDetailsColumn /> 
                            <telerik:GridViewDataColumn Header="Class Name">  
                                <telerik:GridViewDataColumn.CellTemplate> 
                                    <DataTemplate> 
                                        <TextBlock Text="{Binding ClassName}" /> 
                                    </DataTemplate> 
                                </telerik:GridViewDataColumn.CellTemplate> 
                            </telerik:GridViewDataColumn> 
                        </telerik:RadGridView.Columns> 
                        <telerik:RadGridView.RowDetailsTemplate> 
                            <DataTemplate> 
                                <telerik:RadGridView ItemsSource="{Binding Properties}" CanUserInsertRows="False" CanUserDeleteRows="False" IsReadOnly="True" ColumnsWidthMode="Fill" 
                             telPres:StyleManager.Theme="Vista" MaxWidth="600" ShowGroupPanel="False" SelectedItem="{Binding SelectedProperty,Mode=TwoWay}">  
                                    <telerik:RadGridView.Columns> 
                                        <telerik:GridViewDataColumn Header="Name">  
                                            <telerik:GridViewDataColumn.CellTemplate> 
                                                <DataTemplate> 
                                                    <TextBlock Text="{Binding Name}" /> 
                                                </DataTemplate> 
                                            </telerik:GridViewDataColumn.CellTemplate> 
                                        </telerik:GridViewDataColumn> 
                                        <telerik:GridViewDataColumn Header="Type">  
                                            <telerik:GridViewDataColumn.CellTemplate> 
                                                <DataTemplate> 
                                                    <TextBlock Text="{Binding Type}" /> 
                                                </DataTemplate> 
                                            </telerik:GridViewDataColumn.CellTemplate> 
                                        </telerik:GridViewDataColumn> 
                                        <telerik:GridViewColumn> 
                                            <telerik:GridViewColumn.CellTemplate> 
                                                <DataTemplate> 
                                                    <Button Content="Add to Model >>" Name="btnAddToModel" Click="btnAddToModel_Click" /> 
                                                </DataTemplate> 
                                            </telerik:GridViewColumn.CellTemplate> 
                                        </telerik:GridViewColumn> 
                                    </telerik:RadGridView.Columns> 
                                </telerik:RadGridView> 
                            </DataTemplate> 
                        </telerik:RadGridView.RowDetailsTemplate> 
                    </telerik:RadGridView> 

The SelectedItem of the master GridView works great.  When a row is selected the SelectedItem is set in my ViewModel.  The problem is that the same functionality is not happening in the child GridView.  I think I need to define the DataContext on the sub GridView somehow but I am unsure of how to do this.  I would like the sub-GridView (child) to set the SelectedProperty property of my ViewModel but it does not work. 

Any assistance would be greatly appreciated!

Thanks,
David Sandor
Rick Glos
Top achievements
Rank 1
 answered on 16 Dec 2010
1 answer
221 views
Is there a way (example) to disable (in code) ticks on a RadSlider? Practically, imagine two sliders, one shows years, the other Months. When you select the current year and it is July all months AFTER that would be disabled and the slider would not go to them (would stop at July).

Thanks!
Kiril Stanoev
Telerik team
 answered on 16 Dec 2010
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?