Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I've a user control that I need to show when a row is expanded in a Data Grid control. The user control is displayed using the DataControlDetailDescriptor.DataControl and its HeaderContentTemplate is set to display the user control. The tab key is not working on the text edit fields in the user control. I even tried using the ContentDetailDescriptor but still the same issue. The tab key works if I display the user control outside the gridcontrol (ie under the documentpanel). I've modified one of your existing sample application to replicate the issue. In the sample if you check the "Document 3" tab and try the tab key it works fine. Now, if you go to "Document 2" tab and expand one of the grid row. It will display the same user control. Try the tab key and it doesn't work. I couldn't find any kb on this. Is there a way to overcome this?

                                    Thanks!

                                • Ilya (DevExpress Support) 08.02.2013

                                  Hello,

                                  We have already discussed a similar task in the context of the Tab Navigation not work in expander in datagrid ticket. To achieve your goal, create a TableView descendant as shown below:

                                  [C#]
                                  public class MyTableView: TableView { protected override void OnKeyDown(System.Windows.Input.KeyEventArgs e) { ContentControl control = LayoutHelper.FindParentObject<ContentControl>((DependencyObject)e.OriginalSource); if (control == null) base.OnKeyDown(e); } }

                                  Then, assign the MyTableView to the master grid's View property:

                                  [XAML]
                                  <dxd:DocumentPanel Caption="Document2" ... > <ScrollViewer> <dxg:GridControl ... > <dxg:GridControl.View> <ctrls:MyTableView ... /> </dxg:GridControl.View> ... </dxg:GridControl> </ScrollViewer> </dxd:DocumentPanel>

                                  Please try this approach in your application and let me know whether or not it meets your requirements.

                                • Shailen 08.02.2013

                                  That works!! Thank you!

                                • Ilya (DevExpress Support) 08.04.2013

                                  You are welcome!

                                You must  log in  or  register  to leave comments

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners