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

I need separate context menu for the grid rows and the grid headers.

I defined the rows context menu in the xaml like this:

<telerikGrid:RadGridView x:Name="ordersGrid" AutoGenerateColumns="False" DataLoadMode="Synchronous" >
            <Navigation:RadContextMenu.ContextMenu>
                <Navigation:RadContextMenu Opened="RadContextMenu_Opened" ItemClick="RadContextMenu_ItemClick">
                    <Navigation:RadContextMenu.Items>
                        <Navigation:RadMenuItem Header="Update Order" />
                        <Navigation:RadMenuItem Header="Cancel Order" />
                        <Navigation:RadMenuItem Header="View Details" />
                    </Navigation:RadContextMenu.Items>
                </Navigation:RadContextMenu>
            </Navigation:RadContextMenu.ContextMenu>

and i defined in the code the context menu for the headers.

The problem is that the main context menu overrides the header context menu. I even try to remove it in the loaded event but it didn't help:


        void ordersGrid_Loaded(object sender, RoutedEventArgs e)
        {
            GridViewHeaderRow headerRow = ordersGrid.ChildrenOfType<GridViewHeaderRow>().FirstOrDefault();
            IEnumerable<GridViewHeaderCell> cells = headerRow.Cells.OfType<GridViewHeaderCell>();

            /**remove the default menu from the header in order to ser a separate menu for header**/
            foreach (GridViewHeaderCell cell in cells)
            {
                var x = cell.ContextMenu;
                RadContextMenu.SetContextMenu(cell, null);
            }
            GridViewHeaderMenu gvhm = new GridViewHeaderMenu(ordersGrid);
            gvhm.InitializeMenus();
        }

How can i achieve it?

Thanks,

Ofer

Pavel Pavlov
Telerik team
 answered on 22 Jan 2010
1 answer
86 views
hi

I am using a datepicker control and when i set "SelectableDateStart" property to some date, the dates before that displayed as hidden mode.  We can view the dates very lightly but the display is somewhat like blank. 

 

 

 

 

<telerik:RadDatePicker Height="25" Margin="64,98,51,0" Name="radDatePicker1" SelectableDateStart="1/19/2010" VerticalAlignment="Top" Width="163" />

thank you

 

Kaloyan
Telerik team
 answered on 22 Jan 2010
3 answers
155 views
Hello,

I have the following problem: I have a form with a RadDatePicker in it. Everything works fine, but when I enter an invalid date into the entry field of the picker, the date is just resetted or the entry field of the picker is empty. I would prefer to see the defined ErrorTemplate instead.
I tried to catch this by adding ValidatesOnError to the Binding in the XAML file but it doesnt work.

So: How can I catch it if the user enters an invalid value to the entry field?

Best Regards,
Jerma
Kaloyan
Telerik team
 answered on 22 Jan 2010
1 answer
90 views
We notice that if we change the culture to be chinese,
RadTimePicker's select time box always show the Militory time (24 hour format). See the attachment.
Does this consider as a bug?
thx!
Jane
Kaloyan
Telerik team
 answered on 22 Jan 2010
3 answers
122 views
I'm using RadGridView and need to prevent editing for some cells not at the column level, but based on the row and column.

I've tried using ReadOnly Cell and GridViewCell.PreviewEditStartEvent as described here:

It appears in the version I am using the PreviewEditStartEvent does not exist. Am I missing something? Was this removed?

I have version 2009.3.1208.35.

Thanks,
Mike
Nedyalko Nikolov
Telerik team
 answered on 22 Jan 2010
1 answer
98 views
How do I bind a GridView to a dataset, is it even possible?  I looked iin the guide book and they all seem to binding via the code and in the ASP.NET version you can just link it to the SQL datasouce you created.  (Again dont know much of this WPF world)

Im use to the ASP.NET RadGrid and binding options but Im trying to see if I can get one of my larger applications to run in WPF.

Im using Q3 WPF and VB.  I added a DataSet and have the query I want in it.  (I just left it the default "DataSet1.xsd" with all the default values for testing.)
Jorge Gonzalez
Top achievements
Rank 1
 answered on 22 Jan 2010
1 answer
116 views
I'm unable to drag Telerik controls from the VS Toolbox onto my WPF design. When I try, I get the classic circle with a slash through it, generally used to indicate an operation is prohibited. I can drag regular MS controls from the toolbox onto the designer but not Telerik controls. Any suggestions for resolving this?

Thanks,
Scott


Windows 7 Ultimate
Visual Studio Team System 2008
RadControls for WPF 2009 Q3 SP2
Scott
Top achievements
Rank 1
 answered on 21 Jan 2010
10 answers
687 views
I have a GridView that works fine, but now I have to expand the GridView to have a Details grid inside which have another datacontract then its parent GridView. The relation between the two datacontracts is an ID. I am using MVVM. I can not find anything about this in the documentation, so some examples or help would be much appreciated.
Vlad
Telerik team
 answered on 21 Jan 2010
1 answer
116 views
Hi
      I am creating multiple Tiles within a Tile. On clicking Internal Tile, Form control will diaply. It works fine with Screen resolution 1248*768 or higher then this. But the form controls donot display with screen resolution 1024*768. Is it so or i will do somewhere wrong. Please help
Tihomir Petkov
Telerik team
 answered on 21 Jan 2010
3 answers
204 views
How can I prevent the grid from stealing focus when a new item is added to the underlying collection?

For example, I have two seperate windows, one which displays the grid, another through which the user may add new rows to the grid. I would like focus to remain on the add window when the user adds a new row, but the grid by default seems to be setting focus to the first editable cell in the new row.

Thanks
Rossen Hristov
Telerik team
 answered on 21 Jan 2010
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?