Telerik Forums
UI for WPF Forum
2 answers
133 views
Hi,

I have a problem with getting the child row that is selected.

I have a grid with in the first column of the child grid a checkbox to select/deselect.  When the check changed i handle the event.  But i get the parentrow in the selected row and not the child row

How can i get the selected child row?

Little info on how i fill the childcolumn
  radGridResubmit.TableDefinition.ChildTableDefinitions[0].AutoGenerateFieldDescriptors = false;  
 
                    Telerik.Windows.Controls.UI.GridViewDataColumn desc = new Telerik.Windows.Controls.UI.GridViewDataColumn();  
                    desc.HeaderText = "";  
                    desc.UniqueName = "IsSelectedForResubmit";  
                    desc.IsAutoGenerated = true;  
 
                    desc.CellStyle = new Style();  
                     
                    desc.CellStyle.Setters.Add(new Setter(TemplateProperty, FindResource("CheckBoxColumnTemplateAction")));  
                    radGridResubmit.TableDefinition.ChildTableDefinitions[0].FieldDescriptors.Add(desc);  
 
                     
                    desc = new GridViewDataColumn();  
                    desc.IsReadOnly = true;  
                    desc.HeaderText = "ActionName";  
                    desc.UniqueName = "ActionName";  
                    desc.IsAutoGenerated = true;  
                    radGridResubmit.TableDefinition.ChildTableDefinitions[0].FieldDescriptors.Add(desc);  
                    

Regards
NS
Top achievements
Rank 1
 answered on 07 Jul 2008
1 answer
92 views
Well done guys.

Is there any RadControls WPF Beta2 Documentation ?

BTW, can you give us a Roadmap for WPF & SL?

RibbonControl (WPF and SL)?

Greetings,
Michael
Nikolay
Telerik team
 answered on 07 Jul 2008
1 answer
326 views
Is there any way to increment as integers instead of two position decimal?
P.Petrelli
Top achievements
Rank 1
 answered on 05 Jul 2008
1 answer
94 views
It worries me that there is not going to be a feature complete beta of these controls - beta 1 and 2 are quite buggy for us and seem to be in some state of flux - . If features are still being added, can we expect the quality to improve?

For future releases, would you consider producing public nightly builds (similar to the way JetBrains do with Resharper) and also making debug symbols available to help with diagnosis of problems?

Kind regards,

Will Holley


Milan
Telerik team
 answered on 04 Jul 2008
3 answers
83 views
Hi,

How can i set the background of a row to a color based on the value of one of its columns?

I have written a convert that changes the statusid to a brush but i don't know how to apply it to the row

I tried this but that didn't work
 
 
 
<Grid.Resources> 
            <Style TargetType="{x:Type Telerik:GridViewRow}">  
                <Setter Property="Background">  
                    <Setter.Value> 
                        <SolidColorBrush Color="{Binding Path=StatusId, Converter={StaticResource ConvertDocumentColor}}"></SolidColorBrush> 
                    </Setter.Value> 
                </Setter> 
            </Style> 
        </Grid.Resources> 

Regards,

Bram
NS
Top achievements
Rank 1
 answered on 03 Jul 2008
1 answer
184 views
Hi,

I have a grid that i declare in xaml but i want to define the child columns of the hierarchy (not autogenarated).

How can you do that?

My code:
Defining the child relation  
GridViewTableDefinition detailDefinition = new GridViewTableDefinition();  
detailDefinition.Relation = new PropertyRelation("QueueItemActions");  
radGridResubmit.TableDefinition.ChildTableDefinitions.Add(detailDefinition);  
 
 
Grid declaration  
       <Telerik:RadGridView HorizontalAlignment="Stretch" Width="Auto" Grid.Column="0" Grid.ColumnSpan="3" x:Name="radGridResubmit" AutoGenerateColumns="False">  
                <Telerik:RadGridView.Columns> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="" UniqueName="IsSelectedForResubmit" > 
                        <Telerik:GridViewColumn.CellStyle> 
                            <Style TargetType="{x:Type Telerik:GridViewCell}">  
                                <Setter Property="Template" Value="{StaticResource CheckBoxColumnTemplate}"/>  
                            </Style> 
                        </Telerik:GridViewColumn.CellStyle> 
                    </Telerik:GridViewDataColumn> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="JobId" UniqueName="JobId" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ConfiguredBy" UniqueName="ConfiguredBy" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="BuildLocal" UniqueName="BuildLocal" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Copies" UniqueName="Copies" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ParentId" UniqueName="ParentId" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="StatusId" UniqueName="Status.Description" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="QueueItemId" UniqueName="QueueItemId" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ImportId" UniqueName="ImportId" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="QueueDescription" UniqueName="Queue.Description" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="QueueEnvironment" UniqueName="Environment" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="PrinterTray" UniqueName="PrinterTray.Description" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Printer" UniqueName="PrinterTray.Printer.Name" /> 
                    <Telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ReportService" UniqueName="PrinterTray.Printer.ReportService.Name" /> 
                </Telerik:RadGridView.Columns> 
                  
            </Telerik:RadGridView> 

Regards
Hristo Deshev
Telerik team
 answered on 02 Jul 2008
1 answer
76 views
Hi,

Is there a way to know when there's an other record selected?

Because i can't find an event like SelectedIndexChanged.

regards
Milan
Telerik team
 answered on 30 Jun 2008
8 answers
915 views

I have used the following code to associate a table value to a button.  I would like to do a similar thing to with a textbox, but I keep getting a NullReferenceException.

<Telerik:GridViewCell Foreground="#FFFFFFFF" Width="80" ColumnName="submittal" TextBlock.FontSize="16" Margin="770,0,0,0" HorizontalAlignment="Left">
<Telerik:GridViewCell.Template>
<ControlTemplate>
<Button Click="Button_Click" Background="Transparent" Foreground="White" ClickMode="Press" Tag="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" AllowDrop="True" >
<TextBlock Width="75" Text="Submittal" />
</Button>
</ControlTemplate>
</Telerik:GridViewCell.Template>
</Telerik:GridViewCell>
What is wrong with:

<

Telerik:GridViewCell Foreground="#FFFFFFFF" Width="80" ColumnName="submittal" TextBlock.FontSize="16" Margin="770,0,0,0" HorizontalAlignment="Left">
<Telerik:GridViewCell.Template>
<ControlTemplate>
<TextBox Text="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" AllowDrop="True" >
</TextBox>
</ControlTemplate>
</Telerik:GridViewCell.Template>
</Telerik:GridViewCell>
 
?

Hristo Deshev
Telerik team
 answered on 30 Jun 2008
3 answers
151 views
Hello,

When your RadControls for WPF will be released, will it be released with source code?
Hristo Deshev
Telerik team
 answered on 26 Jun 2008
2 answers
110 views
Hi,

After restyling the grid view items control to take out the group panel I get an error when clicking on cells:

  
{System.ArgumentNullException: Value cannot be null
Parameter name: reference 
   at System.Windows.Media.VisualTreeHelper.GetDescendantBounds(Visual reference) 
   at Telerik.Windows.Controls.UI.DragDropManager.IsMouseOverTarget(Visual target, GetPositionDelegate getPosition) 
   at Telerik.Windows.Controls.UI.GridViewItemsControl.OnPreviewMouseUp(MouseButtonEventArgs e) 
   at System.Windows.UIElement.OnPreviewMouseUpThunk(Object sender, MouseButtonEventArgs e) 
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) 
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) 
   at System.Windows.Input.InputManager.ProcessStagingArea() 
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) 


My control template is as follows:

 <ControlTemplate x:Key="GridViewItemsControlTableTemplate" TargetType="{x:Type UI:GridViewItemsControl}"
    <Grid Background="{TemplateBinding Background}"
        <Grid.Resources> 
                <UI:DoubleToGridLengthConverter x:Key="DoubleToGridLengthConverter" /> 
        </Grid.Resources> 
            <Grid.RowDefinitions> 
                <RowDefinition Height="Auto" /> 
                <RowDefinition /> 
                <RowDefinition x:Name="ScrollBarRow" MinHeight="10"  
                               Height="{Binding Source={StaticResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}},  
                    Converter={StaticResource DoubleToGridLengthConverter}}"/> 
            </Grid.RowDefinitions> 
            <Grid.ColumnDefinitions> 
                <ColumnDefinition /> 
                <ColumnDefinition x:Name="ScrollBarColumn" MinWidth="10" Width="{Binding Source={StaticResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}, Converter={StaticResource DoubleToGridLengthConverter}}"/> 
            </Grid.ColumnDefinitions> 
                         
            <UI:GridViewBackground x:Name="PART_GridViewBackground" Margin="10,0,0,0" Grid.Row="0"  
                                   Grid.ColumnSpan="1" Grid.RowSpan="2"  
                                   HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsHitTestVisible="False"/> 
 
            <StackPanel Grid.Row="0"
                <Border Margin="0,0,0,0" BorderThickness="0" ClipToBounds="True" 
                        Background="{StaticResource {x:Static Resources:FunctionalBrushes.EntityTabBackgroundBrushKey}}"
                    <UI:GridViewHeaderRow Name="PART_HeaderRow" VerticalAlignment="Top"/> 
                </Border> 
                <UI:GridViewNewRow Name="PART_AddNewRow" Margin="10,0,0,0"  
                                   VerticalAlignment="Bottom" HorizontalAlignment="Stretch"  
                                   Visibility="Collapsed" /> 
            </StackPanel> 
 
            <ScrollViewer Name="PART_ItemsScrollViewer" Focusable="False" VerticalScrollBarVisibility="Auto"  
                          HorizontalScrollBarVisibility="Auto"  
                          CanContentScroll="True" Grid.Row="1" Grid.RowSpan="2" Grid.ColumnSpan="2"
                <ItemsPresenter Margin="10, 0, 0, 0"/> 
            </ScrollViewer> 
        </Grid> 
        <ControlTemplate.Triggers>           
            <Trigger Property="ComputedVerticalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed"
                <Setter Property="Width" TargetName="ScrollBarColumn" Value="10" /> 
            </Trigger> 
            <Trigger Property="ComputedHorizontalScrollBarVisibility" SourceName="PART_ItemsScrollViewer" Value="Collapsed"
                <Setter Property="Height" TargetName="ScrollBarRow" Value="10" /> 
            </Trigger> 
        </ControlTemplate.Triggers> 
    </ControlTemplate> 

Have I done something wrong or is this a bug?

Kind regards,

Will Holley

Will
Top achievements
Rank 1
 answered on 20 Jun 2008
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?