Telerik Forums
UI for WPF Forum
2 answers
70 views
When databinding, the items appear in reverse order.  Is there a reason why they do this?
David Ribb
Top achievements
Rank 1
 answered on 20 Apr 2010
15 answers
1.8K+ views
I have a silverlight page that have a radgridview, it loads list of employee records.
when a user clicks on the (+) sign before each row, another section is opened (just like in the examples). The section that opens below the row has textboxes. 

1. I would like to know if there is a way to define an event when the row is selected?
 i would need this as i will fill values to textboxes only when a user selects a record. 

2. is it possible not to display the (+) and/or (-) sign before each row and instead the event is triggered when a user click the row?

i am currently using the Q1 release.

Any help will be appreciated. 
Ben
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
145 views
I'm experiencing some performance issues when setting the AllowDrag and AllowDrop with the RadGridView.

            <UserControl.Resources>
                <converters:LineBackgroundConverter x:Key="lineBackground"/>
                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="Background" Value="{Binding LineNumber, Converter={StaticResource lineBackground}}" />
                    <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrag" Value="True" />
                    <Setter Property="telerikDragDrop:RadDragAndDropManager.AllowDrop" Value="True" />
                </Style>
            </UserControl.Resources>

Rick Knicely
Top achievements
Rank 1
 answered on 20 Apr 2010
3 answers
229 views
Hello

I would like to expand rows on double click and show rowdetails. I hooked the MouseDoubleClick of the rows in RowLoaded event. Now when the event occurs, I set the "IsExpanded" property of the row which expands an empty row details, only clicking on the row expander column will really expand it.

Is there some kind of "Load" I first have to execute? I didn't find anything in the documentation...

Thanks
NoRyb
Top achievements
Rank 1
 answered on 20 Apr 2010
2 answers
173 views
Hello,

Currently I am trying to set the ItemsSource of a ComboBoxColumn that is in a grid in my RowDetails for a higher level Grid. I would a child table but I currently have other controls in the RowDetails I am binding to plus I don't really think that will fix my problem.

<telerik:RadGridView.RowDetailsTemplate> 
    <DataTemplate> 
        <Grid> 
            <TextBlock Margin="125,8,0,0" Text="Rate" TextWrapping="Wrap" TextAlignment="Center" Height="17.001" VerticalAlignment="Top" HorizontalAlignment="Left" Width="70" /> 
            <telerik:RadMaskedTextBox HorizontalContentAlignment="Right" Mask="P" MaskType="Numeric" Margin="127.007,25.001,406,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="19.96" Width="67.993" /> 
            <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding Path=Payments, Mode=TwoWay}" Margin="8,53,8,8" ShowGroupPanel="False" AreRowDetailsFrozen="True" > 
                <telerik:RadGridView.Columns> 
                    <telerik:GridViewComboBoxColumn ItemsSource="{Binding Path=AllTypes}" DisplayMemberPath="Type" DataMemberBinding="{Binding Path=TypeOfPayment}"/> 
                    <telerik:GridViewDataColumn  Header="Event" DataMemberBinding="{Binding Path=TypeOfPayment.Type, Mode=TwoWay}" /> 
                    <telerik:GridViewDataColumn Header="Amount" TextAlignment="Right" DataMemberBinding="{Binding Path=Amount, Mode=TwoWay}" DataFormatString="{}{0:c}" /> 
                    <telerik:GridViewDataColumn Header="Number" TextAlignment="Right" DataMemberBinding="{Binding Path=Term, Mode=TwoWay}" /> 
                    <telerik:GridViewDataColumn Header="Period" TextAlignment="Right" DataMemberBinding="{Binding Path=Period, Mode=TwoWay}" /> 
                    <telerik:GridViewDataColumn Header="Notes" TextAlignment="Right" DataMemberBinding="{Binding Path=Notes, Mode=TwoWay}" /> 
                </telerik:RadGridView.Columns> 
                <Navigation:RadContextMenu.ContextMenu> 
                    <Navigation:RadContextMenu Opened="RadContextMenu_Opened" ItemClick="RadContextMenu_ItemClick"
                        <Navigation:RadContextMenu.Items> 
                            <Navigation:RadMenuItem Header="Add" /> 
                            <Navigation:RadMenuItem Header="Delete" /> 
                        </Navigation:RadContextMenu.Items> 
                    </Navigation:RadContextMenu> 
                </Navigation:RadContextMenu.ContextMenu> 
            </telerik:RadGridView> 
            <Button Style="{DynamicResource RoundButton}" Click="btnClick" Foreground="{DynamicResource CalculateIcon}" Height="39" HorizontalAlignment="Right" Margin="0,8,8,0" Name="btnGenerate" VerticalAlignment="Top" Width="44">Button</Button> 
        </Grid> 
    </DataTemplate> 
</telerik:RadGridView.RowDetailsTemplate> 


In the code block above, I tried binding the ItemsSource in the Xaml file to a property that returns a List<T> of what I want to bind to but the combo box shows no options to select which makes me believe that nothing was being loaded into the ItemsSource even though the debugger shows that the property is being accessed. I have also tried to find a way to access the comboboxcolumn in code but I cannot figure out how to access the controls in the RowDetails. If I did something wrong in my binding or if there is someway I could set the ItemsSource, even manually in either Xaml or code, for the ComboBoxColumn in a Grid in my RowDetails, then that would be most helpful.

Alex Mitchell
Alex Mitchell
Top achievements
Rank 1
 answered on 19 Apr 2010
4 answers
162 views
Hello,

I was wondering if its possible to add an item to the comboboxs of the FilteringDropDown? I'd like to add a between for string values.

Thanks Much

~Boots
Xoma
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
92 views
Hi there,

when I insert decimal values in datagrid I get diferent results if pressed ',' or '.'

Eg. value 7,25

When I insert 7,25 with ',' the final result is 725

but

When I insert 7,25 with '.' the final result is 7,25

I want that was indiferent press ',' or '.' the final result was always the same!

I check every char insert on the grid but  I Can´t assign olther value to a routed event that is already in use !

 void RadGridView1_KeyDown(object sender, KeyEventArgs e) 
        { 
            if (e.Key == Key.Decimal) 
            { 
                e.Handled = true
                e.Source = "2"; // ==> error 
            } 
            if (e.Key == Key.OemComma) 
            { 
                e.Handled = true
            } 
            if (e.Key == Key.OemPeriod) 
            { 
                e.Handled = true
            } 
        } 




it's possible when the user press ',' change the value to '.' ?

Any ideias?

Thanks,
Jose Oliveira



Pavel Pavlov
Telerik team
 answered on 19 Apr 2010
2 answers
200 views
Hello,

I am required to create an interface that has forms within side RadPanes and a WebBrowser control (another others) in the main DocumentHost window.  For some reason only a few of the controls within the DocumentHost render at runtime.  Also, the controls that do display are not maintaining their position correctly.

See attached image.

How do I accomplish the desired interface?  OR  What am I doing wrong?

<telerik:RadDocking.DocumentHost> 
                <telerik:RadSplitContainer> 
                    <telerik:RadPaneGroup> 
                        <telerik:RadPane Header="Browser" CanFloat="False">  
                            <Grid x:Name="grdBrowser" Margin="0">  
                                <StackPanel HorizontalAlignment="Stretch" Margin="6" Name="stackPanel1" VerticalAlignment="Stretch">  
                                    <StackPanel Name="stackPanel2" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Stretch">  
                                            <Button x:Name="btnWebPrev" HorizontalAlignment="Left" Height="34" Style="{DynamicResource stylePreviousButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebNext" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleNextButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <TextBox Height="23" x:Name="txtWebURL" Width="519" /> 
                                            <Button x:Name="btnWebSearch" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleSearchButton}" VerticalAlignment="Top" Width="34" Cursor="Hand" Click="btnWebSearch_Click"/>  
                                            <Button x:Name="btnWebStop" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleStopButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebRefresh" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleRefreshButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebAddSource" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleAddSourceButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>                                                         
                                    </StackPanel> 
                                    <WebBrowser Height="603" x:Name="webBrowser" /> 
                                    <StackPanel Name="stackPanel3" Orientation="Horizontal">  
                                        <Label Content="Label" Height="28" Name="lblStatus" /> 
                                    </StackPanel> 
                                </StackPanel> 
                            </Grid> 
                        </telerik:RadPane> 
                    </telerik:RadPaneGroup> 
                </telerik:RadSplitContainer> 
            </telerik:RadDocking.DocumentHost> 

Thank you and best regards,
Mike

Konstantina
Telerik team
 answered on 19 Apr 2010
2 answers
130 views
When using the GridView. If the first thing I click on in the grid is the left panel where the selection/insertion indicator is and hit the Insert Button it doesn't work until I click for a 2nd time. After that it works every time.  Do you have  a workaround for this as it is a bit clunky usabilitywise?
Michael Fooks
Top achievements
Rank 1
 answered on 19 Apr 2010
3 answers
272 views
How to create transparent window background and only visible part would be controls displayed (regions)
Pana
Telerik team
 answered on 16 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?