Telerik Forums
UI for WPF Forum
4 answers
147 views
Hy
How can I make the width of the grid to be strech on all window width?
Thanks
Orit
Top achievements
Rank 1
 answered on 11 Aug 2009
1 answer
291 views
If a I create a simple form with just a RadGridView control:

<Grid>
        <telerik:RadGridView Name="radGridView1"/>
</Grid>

As I resize the window, the grid streches with the window and vertical/horizontal scrollbars appear if there's any extra rows/columns in the grid.  But if I change the container to a canvas:

<Canvas>
        <telerik:RadGridView Name="radGridView1"/>
</Canvas>

Then any overflow is hidden.  Even if I wrap the RadGridView in it's own grid under the canvas no scrollbars appear.  This seems to happen if there's a canvas element anywhere in the container hierarchy.  
Hristo
Telerik team
 answered on 10 Aug 2009
1 answer
170 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
210 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
66 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
477 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
790 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
538 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
410 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
224 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
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
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?