Telerik Forums
UI for WPF Forum
1 answer
247 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
255 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
130 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
49 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
190 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
46 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
567 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
226 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
905 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
6 answers
220 views
I'm trying to implement dragging from a ListBox onto a ScheduleView, using DragAndDropManager.  I'm as far as the DropInfo handler on the view where the ScheduleView resides running, and am successfully getting the information that I want from the ListBox.  What I can't figure out is how to find out which slot I am trying to drop into.  DragDropEventArgs.Options.CurrentDragPoint would seem a promising way to this information, and the demos show how to so this for the old Scheduler control, but ScheduleView appears to operate differently.  The only other piece of information that I can find suggests that DefaultDragDropBehavior.ValidateExternalDrag "could be used to add the appointments from external source".

Is there a simple example available demonstrating how to drag from an external non-ScheduleView source onto a specific slot within a ScheduldeView in order to create a new appointment based on the dragged-in object?  If not, would it at least be possible to provide some pointers as to how I can achieve this?


Thanks
Ryszard
Rosi
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?