Telerik Forums
UI for WPF Forum
1 answer
166 views
Working with: Version 2009.1.526.35

Trying to set SelectedItem.
Code:

<telerik:RadGridView AutoGenerateColumns="False"
                             SelectedItem="{Binding Path=Entity, Mode=TwoWay}" IsReadOnly="False"
            ItemsSource="{Binding Path=Entities}"

In my constructor of my model I create a instance of Entity (Selected) and a List of Entities(ItemSource).

When I run, I get a Object Reference not Set... exception.
The same code works fine with a ListBox.

Rossen Hristov
Telerik team
 answered on 10 Aug 2009
1 answer
205 views
Hy
I want to add a Radio button column to my grid
I used the follwing code
how can I let only one radio button to be select
(a kind of a radio button group)
Thanks

<telerik:RadGridView.Resources> 
                        <ControlTemplate x:Key="cellTemplate1" TargetType="{x:Type telerik:GridViewCell}">  
                            <RadioButton IsChecked="{Binding Field.Record.Data.RB, RelativeSource={RelativeSource TemplatedParent}}"   
                                            HorizontalAlignment="Center" VerticalAlignment="Center"  /> 
                        </ControlTemplate> 
                        <Style x:Key="RBbooleanCellStyle">  
                            <Setter Property="telerik:GridViewCell.Template" Value="{StaticResource cellTemplate1}" /> 
                        </Style> 
                    </telerik:RadGridView.Resources> 
Orit
Top achievements
Rank 1
 answered on 10 Aug 2009
2 answers
65 views
Hello guys,
I've rebuilded the First Look Example with ChildTemplate, foto... etc.
Now my problem ist, that whenever I group by a column by dragging it into the header, only the first and the last record's childtemplate show up, when clicking the plus (+). When I click the plus of other records, the plus only changes to a minus and nothing happens. But when I cancel grouping this records, the record's childTemplates are expanded and shown. It looks like they are expanded in the background but cannot be shown in the grouped grid.

I'm using following methods seen in one of your examples. The first I'm using to have default collapsed grouping and the second to change selected row on first click (needs your sample class DependencyObjectExtensions.cs).

private void GridViewGroupRow_Loaded(object sender, RoutedEventArgs args)
{
GridViewGroupRow groupRow = (GridViewGroupRow)args.OriginalSource;
groupRow.IsExpanded = 
false; }

private
 void HeaderButton_Click(object sender, RoutedEventArgs e) {
FrameworkElement element = (FrameworkElement)sender;
var row = element.GetVisualParent<GridViewRow>();
row.IsSelected = 
true;

Is possibly here something going wrong?


Any help would be appreciated
flo ulmé
Top achievements
Rank 1
 answered on 07 Aug 2009
2 answers
472 views
Hi,

I'm having a problem with the GridView control on a client's machine. When I or my colleagues compile and run it everything goes right. However, when we deploy on a client's machine we get an error message saying "Cannot add content of type 'Telerik.Windows.Controls.GridViewDataColumn' to an object of type 'Telerik.Windows.Controls.GridViewColumnCollection'. Error at object 'Telerik.Windows.Controls.GridViewDataColumn' in markup file 'CowculationsWindows;component/useradmin.xaml' Line 57 Position 18."

This is the code:

<telerik:RadGridView Margin="15,66,9,46" Name="rgvUsers" AutoGenerateColumns="False" AddingNewDataItem="rgvUsers_AddingNewDataItem" ValidationMode="Row" AutoGenerateHierarchyFromDataSet="True" ColumnsWidthMode="Auto">   
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Full Name" UniqueName="UserFullName" Header="Full Name"/>
                <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="User Name" UniqueName="UserName" Header="User Name"/>
                <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Password" UniqueName="Password"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

The particular line where the error happens is this:

<telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Full Name" UniqueName="UserFullName" Header="Full Name"/>

The GridView uses hierarchy, so that might be an issue.

Please help.

Regards,

-Harun



Harun Residbegovic
Top achievements
Rank 1
 answered on 07 Aug 2009
1 answer
770 views

Hello,

I know how to create a combobox column and fill it with value, however

each combobox cell in the column does not show the drop down arrow, unless

the user clicks on the cell.

I tries using a combobox template on the column and visually it works, however when I do so

the combobox's possible values are not displayed in its drop down.

Hope you can assist.

Erez

 

Rossen Hristov
Telerik team
 answered on 07 Aug 2009
6 answers
531 views
After populating RadGridView with AutoGenerateColumns = true i try to change the column header text:

RGVBBoxRecords.Columns[idx].HeaderText = headerstr[idx];
or
RGVBBoxRecords.Columns[idx].Header = headerstr[idx];

but nothing changes.

How to do it?

 

Stefano Zambonin
Top achievements
Rank 1
 answered on 06 Aug 2009
9 answers
390 views
In my project I want to use a "lookup" gridviewcomboboxcolumn in the radgridview. I don't  make use of  foreign key id-values, but entity framework associations instead. Is this possible and how should this be done?

Thanks,
Thomas.
Thomas
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
222 views
Dear all,

I'm having a slight problem with programmatically changing Themes (Office_Black, Summer, etc) for my RadControls. It works perfectly fine when doing it beforehand in xaml, and changing Themes at runtime works fine for all controls except the RadComboBox and the RadPanelBar controls- these simply don't ever change from the default Office_Black theme, while all other controls change theme just fine. Note that I have tried both using StyleManager.SetTheme() and instance.SetValue(StyleManager.ThemeProperty, theme), both of which yield the exact same result.

Here is a small project that demonstrates this.

Any thoughts on what I could be doing wrong would be much appreciated.

Cheers,

Frits Verhoef.
Frits Verhoef
Top achievements
Rank 1
 answered on 06 Aug 2009
1 answer
114 views
We need to display data which are collected from a instrument.
Does the RadControls chart support this real time data update?
Can we scale the X-axis? At the beginning, it display as 1-10 unit,
As more data collected, it display as 1-100 unit.
Thx!
Dwight
Telerik team
 answered on 06 Aug 2009
2 answers
219 views
Hi,

I have downloaded a trial version of Rad controls for WPF and started using it one of my projects.
Trying to use the themes provided by telerik. In some of my pages I've used RadNumericUpDown control. When I try apply Office_Blue, Office_Silver and Summer themes, this control gets disabled. Basically, the  theme gets applied but the default values of the control disappears and the control doesnt respond to any clicks. Wiith the other two themes: Vista and Office_Black the controls works fine.
Here is the code:
<telerikComboBox:RadNumericUpDown x:Name="updownStartTime" Margin="2,0,2,0" Maximum="10"                                                                               telerik:StyleManager.Theme="Office_Blue" Minimum="0" RepeatInterval="1" Width="60" Height="20"></telerikComboBox:RadNumericUpDown>

I cant understand what the problem is. I tried d same with combobox, but it's working fine with it. The themes are getting applied and the control is working fine too. Since I've just started I dont know if this problem exists with other controls and other themes too. Looks like certain combinations are not working. There no documentation available for the same too.
Also, please provide a solution to change themes dynamically.

Frits Verhoef
Top achievements
Rank 1
 answered on 06 Aug 2009
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?