Telerik Forums
UI for WPF Forum
1 answer
193 views
Hi Telerik,

It's perfectly possible that my issue is due to not understanding the focus topic, but the general WPF examples I find do not seem to work for me with RadDocking.

Goal / What I try to achieve:
- I wish to be able to double-click a row in a RadGridView, which is inside a RadPane.
- When double-clicking, I wish to open another RadPane, potentially one that's already open and focus a specific control (RadMaskedTextBox) inside the new RadPane.

(Our inspiration is the Error List in Visual Studio - our goal is exactly the same, directing the user to be able to edit a specific, problematic value).

Problem:
The control is not focused, rather the initial window is focused.

What I do:
I use Keyboard.Focus() to focus the RadPane
I use Keyboard.Focus() to focus the specific control.
It's done after the control is loaded and the specific control has .Focusable==.IsVisible==true
Result: System.Windows.Input.Keyboard.FocusedElement shows the desired control.
So far so good!
In the eventhandler OnRowActivated I set e.Handled = true

But when I exit the eventhandler OnRowActivated (that is: after debugging, the app is running again), the Error window has focus, not the one I just gave focus to.

So do my Telerik controls 'draw back' the focus as part of wrapping up the OnRowActivated event handler, or do you have some ideas on what to try out?

Thanks,

Anders, Denmark
Milan
Telerik team
 answered on 29 Mar 2011
1 answer
29 views

 

Hi,
Can we have a Muliple columns under One column?

Vlad
Telerik team
 answered on 29 Mar 2011
1 answer
154 views
I'm developing MVVM application. I bind the DataGrid ItemsSource to a ObservableCollection in the ViewModel code. Every user control (eg. TextBox, Label, etc) in the UI except the DataGrid works fine. When the PropertyChanged event is fired, the value is displayed correctly. But not in the DataGrid, I use TwoWay mode, but it seems that the DataGrid never refresh itself. The DataGrid content is refreshed only when I try to sort any DataGrid column.
Vlad
Telerik team
 answered on 29 Mar 2011
3 answers
139 views
I've got two questions.

1. Is it possible to have a horizontal bar-chart which has a high and low-point (like a candle-stick-chart) ?

2. If yes is it possible to make these bars draggable with mouse or touch-events?
Yavor
Telerik team
 answered on 29 Mar 2011
2 answers
82 views
I am getting this weird object and I cant figure out how to get rif of it. See attached.  When i comment out the grid I dont see it, but wheen I just comment out the columns  and set autogenerate columns i do.  oops.  There are no attachments allowed anymore.  But it looks like a button

<telerik:RadGridView Grid.Column="1" Margin="21,78,65,38" AutoGenerateColumns="False" Name="rgvSellingTitles" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" SelectionMode="Multiple"  IsScrolling="True" >
 
    
                <telerik:RadGridView.Columns>
                    <telerik:GridViewSelectColumn  Background="#2000FF00" />
                <telerik:GridViewDataColumn Header="SellingTitleRCId" UniqueName="SellingTitleRCId" DataMemberBinding="{Binding SellingTitleRCId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="SellingTitleId" UniqueName="SellingTitleId" DataMemberBinding="{Binding SellingTitleId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="EstimateId" UniqueName="EstimateId" DataMemberBinding="{Binding EstimateId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="ProgramId" UniqueName="ProgramId" DataMemberBinding="{Binding ProgramId}" IsFilterable="False" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Year" UniqueName="Year" Background="#2000FF00" DataMemberBinding="{Binding Year}" Width="50" />
                    <telerik:GridViewDataColumn Header="QTR" UniqueName="Quarter" Background="#2000FF00" DataMemberBinding="{Binding Quarter}" Width="50" />
                    <telerik:GridViewDataColumn Header="PP" UniqueName="DM_PricePeriod" Background="#2000FF00" DataMemberBinding="{Binding DM_PricePeriod}" Width="45" />
                    <telerik:GridViewDataColumn Header="External Id" UniqueName="DM_SellingTitle" Background="#2000FF00" DataMemberBinding="{Binding DM_SellingTitle}" Width="150" />
                    <telerik:GridViewDataColumn Header="Dealmaker Title" UniqueName="DM_Title" Background="#2000FF00" DataMemberBinding="{Binding DM_Title}" Width="150" />
                    <telerik:GridViewDataColumn Header="Start" UniqueName="Start" Background="#2000FF00" DataMemberBinding="{Binding DM_SD}" DataFormatString="{}{0:MM/dd/yyyy}" Width="75" />
                <telerik:GridViewDataColumn Header="P1849" UniqueName="DM_PL_A1849" Background="#2000FF00" IsFilterable="False" DataMemberBinding="{Binding DM_PL_A1849}" Width="45" />
                <telerik:GridViewDataColumn Header="P1849" UniqueName="MAESTRO_PL_A1849"  Background="#200000FF" IsFilterable="False" DataMemberBinding="{Binding MAESTRO_PL_A1849}" Width="45" />
                <telerik:GridViewDataColumn Header="C3 P1849" UniqueName="DM_C3_A1849" Background="#2000FF00" IsFilterable="False" DataMemberBinding="{Binding DM_C3_A1849}" Width="55" />
                <telerik:GridViewDataColumn Header="C3 P1849" UniqueName="MAESTRO_C3_A1849" Background="#200000FF" IsFilterable="False" DataMemberBinding="{Binding MAESTRO_C3_A1849}" Width="55" />
                    <telerik:GridViewDataColumn Header="DEMO_DIFF" UniqueName="DEMO_DIFF" IsFilterable="False" DataMemberBinding="{Binding DemDiff}" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Day Part" UniqueName="DM_DAYPart" Background="#2000FF00" DataMemberBinding="{Binding DM_DAYPART}" Width="70" />
                    <telerik:GridViewDataColumn Header="End" UniqueName="End" Background="#2000FF00" DataMemberBinding="{Binding DM_ED}" IsVisible="False" />
                    <telerik:GridViewDataColumn Header="Days/Times" UniqueName="DM_DAYS_AND_TIMES" Background="#2000FF00" DataMemberBinding="{Binding DM_DAYS_AND_TIMES}" Width="90" />
 
                    <telerik:GridViewDataColumn Header="Program" UniqueName="Program"  Background="#200000FF" DataMemberBinding="{Binding Program}" Width="150" />
                    <telerik:GridViewDataColumn Header="Time" UniqueName="Time" Background="#200000FF" DataMemberBinding="{Binding Time}" Width="50" />
                    <telerik:GridViewDataColumn Header="DOW" UniqueName="DOW" Background="#200000FF" DataMemberBinding="{Binding Weekdays}" />
                    <telerik:GridViewDataColumn Header="Dur" UniqueName="Duration" Background="#200000FF" DataMemberBinding="{Binding Duration}" Width="40" />
                    <telerik:GridViewDataColumn Header="Estimate" UniqueName="Estimate" Background="#200000FF" DataMemberBinding="{Binding Estimate}" Width="150" />
                    <telerik:GridViewDataColumn Header="Request" UniqueName="Request" Background="#200000FF" DataMemberBinding="{Binding Request}" DataFormatString="{}{0:MM/dd/yyyy}" />
                    <telerik:GridViewDataColumn Header="Exported" UniqueName="Exported" Background="#200000FF" DataMemberBinding="{Binding Exported}" DataFormatString="{}{0:MM/dd/yyyy}" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

John Giblin
Top achievements
Rank 1
 answered on 28 Mar 2011
2 answers
335 views
Anyone know how to grey out a row within a gridview.

I want to be able to see the row, just basically dimmed? 

Any ideas?

Bryan
Bryan
Top achievements
Rank 1
 answered on 28 Mar 2011
4 answers
585 views
Hi
I'm trying to replace my wpf listview with radgridview, but the selecteditem binding to the observablecollection does not work.

<ListView Name="lboRoles" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding}" Grid.ColumnSpan="1" IsSynchronizedWithCurrentItem="True"  SelectionMode="Single" >
     <ListView.View>
         <GridView>
             <GridViewColumn Header="Name" Width="200"  DisplayMemberBinding="{Binding Path=Name}"/>
             <GridViewColumn Header="Description" Width="200"  DisplayMemberBinding="{Binding Path=Description}"/>
         </GridView>
     </ListView.View>
 </ListView>
 <mytelerik:RadGridView x:Name="gvRoles" ItemsSource="{Binding}" SelectionMode="Single" IsReadOnly="True" 
                        Grid.Column="0" Grid.Row="0" IsSynchronizedWithCurrentItem="True" AutoGenerateColumns="False" 
                        ShowGroupPanel="False" CanUserFreezeColumns="False" ShowColumnFooters="False">
     <mytelerik:RadGridView.Columns>
         <mytelerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}">
         </mytelerik:GridViewDataColumn>
         <mytelerik:GridViewDataColumn Header="Description" DataMemberBinding="{Binding Description}">
         </mytelerik:GridViewDataColumn>
     </mytelerik:RadGridView.Columns>
 </mytelerik:RadGridView>


When selecting a row in the listview, the observablecollection currentrow is changed, but not when selecting a row in the radgridview.
Is there a different way to do this with radgridview? Do I need a binding to selecteditem?

Knut

Milan
Telerik team
 answered on 28 Mar 2011
3 answers
302 views
Hi,

I am trying to have a single expand Hierarchy in my GridView, in the RowIsExpandedChanged events i am checking if the row is expanded and i am collapsing the other rows with the CollapseHierarchyItem.

What is happening is that the RowIsExpandedChanged event is raised again when calling CollapseHierarchyItem, how to collapse rows without firing the RowIsExpandedChanged events.

Thanks.
Milan
Telerik team
 answered on 28 Mar 2011
2 answers
100 views
Hi,

I'm trying to edit a row of a gridview in my xbap. If I run my application in full trust mode I don't have any problem, but if I run it in partial trust mode I always get a security exception

Locating source for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'. Checksum: MD5 {b c4 c7 29 2c b1 86 4f e7 9a ae 68 9f bb e1 f1}
The file 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs' does not exist.
Looking in script documents for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'...
Looking in the projects for 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'.
The file was not found in a project.
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs.
The debugger could not locate the source file 'c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs'.

I' m running the project on visual studio 2010 sp1, any help will be greatly appreciated since I really don't know what is happening


François
francois
Top achievements
Rank 1
 answered on 28 Mar 2011
3 answers
75 views
Is it possible for the user to set the row height by dragging the mouse on the border of a row - similar to the way column sizing works??
bernd kopp
Top achievements
Rank 1
 answered on 28 Mar 2011
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?