Telerik Forums
UI for WPF Forum
1 answer
137 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
268 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
275 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
181 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
59 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
207 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
53 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
594 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
250 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
11 answers
1.0K+ views
I'm trying to bind RadGridView SelectedItems property to a property on my ViewModel using the custom Behavior approach mentioned in the blog post, but it's not working.

I remember some folks having trouble with it when setting the dataContext at runtime rather than as a static resource. I'm using Prism's Dependency Injection to inject the viewModel into a property on the View. I can see that my ObservableCollection on my viewModel is being populated, but it's not showing up as selected items on my grid.

I need help getting this to work properly.
Milan
Telerik team
 answered on 16 Dec 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?