Telerik Forums
UI for WPF Forum
9 answers
389 views

Regardless of how I attempt to set the visibility for it, I cannot get the FilteringDropDown control within the GridViewHeaderCell for a column bound to a custom type to appear in my RadGridView. Sample code below:

 

Public Class MyClass
  Public Property AnInteger As Integer
  Public Property ACustomObject As MyCustomObject
End Class
  
Public Shared myList As New List(Of MyClass)

<telerik:RadGridView ItemsSource="{Binding myList}"
  <telerik:RadGridView.Columns
    <telerik:GridViewComboBoxColumn
      DataMemberBinding="{Binding ACustomObject}"
      ItemsSource="{Binding Source={StaticResource PredfinedListOfMyCustomObject}"
      DisplayMemberPath="Name"
      IsCustomSortingEnabled="True"
      <telerik:GridViewComboBoxColumn.HeaderCellStyle
        <Style TargetType="{x:Type telerik:GridViewHeaderCell}" BasedOn="{StaticResource {x:Type telerik:GridViewHeaderCell}}"
          <Setter Property="FilteringUIVisibility" Value="Visible"/> 
        </Style
      </telerik:GridViewComboBoxColumn.HeaderCellStyle
      <telerik:GridViewComboBoxColumn.FilteringControl
        <local:CustomFilter/> 
      </telerik:GridViewComboBoxColumn.FilteringControl
    </telerik:GridViewComboBoxColumn
  </telerik:RadGridView.Columns
</telerik:RadGridView>

Both with and without the HeaderCellStyle I do not get the FilteringDropDown. If I run the application with WPF Inspector or Snoop and change the FilteringUIVisibility from collapsed (which it always is) to visible (which the default is and what I set it to manually) then the FilteringDropDown appears and I can use my custom filter. I am assuming some code in the control is overriding my styling based on the non-standard object type (which is why I have custom sorting on the column as well) but I cannot figure out how to avoid it or restore the FilteringDropDown.
Jason
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
158 views
Hello,

Recently we updated the Telerik assemblies in our product to 2012.3.1017.40 and we've encountered an issue. When the user drags a column header to the group panel they encounter a NullReferenceException. We're hosting the control in a Windows Forms ElementHost control.

Any ideas on a workaround would be very helpful.

Stack Trace:
   at Telerik.Windows.Controls.DraggedElement.HideNoCursor()
   at Telerik.Windows.Controls.GridView.DragDropController.OnGroupPanelDragOver(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects)

Let me know if you need any more information. 

Thanks Much,
~Boots
Boots
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
187 views
hi, can u help me to traslate this code into xaml

            DragDropManager.AddDragInitializeHandler(xRibbon, OnDragInitialize);
            DragDropManager.AddDropHandler(this.diagram, OnDiagramDrop);

xRibbon is the microsoft ribbon , diagram is RadDiagram

i tried this ma does not work

<Style TargetType="telerik:RadDiagram">
            <Setter Property="telerik:DragAndDropManager." Value="True" />
            <EventSetter Event="telerik:DragAndDropManager.DropQuery" Handler="OnDiagramDrop" />
        </Style>

thanks.
Fabrizio
Top achievements
Rank 1
 answered on 20 Dec 2012
2 answers
108 views
Hi

I'm using the latest released 1129 build.  Create a new document.

Add text such as

"Heading 1

Heading 2"

Highlight all, set to Heading 1 style.

Generate ToC.  This will not work.  The code throws an exception during InsertTableOfContentsCommand.PrepareExecuteCore(). 

This seems to be because empty paragraphs are skipped and no bookmark added to "paragraphToBookmark" dictionary, but the later foreach loop that iterates the paragraphs and gets bookmark names from this dictionary doesn't skip any paragraphs - so the empty ones will throw an exception, as they aren't in the dictionary.
Iva Toteva
Telerik team
 answered on 20 Dec 2012
2 answers
194 views
Hi

I need to select a carousel item by souble clicking it.

Once I have double clicked I need to know whcih Item I have clicked.

Do you have any examples of this ?

Kind Regards

David
Michael
Top achievements
Rank 1
 answered on 20 Dec 2012
1 answer
167 views
For developers using the Windows 8 theme and the TabControl, be aware that if you set the BackgroundVisibility to "Hidden", the background tabs will "disappear" visually. I'm not sure I'd consider it a bug because the system is just doing what you tell it to do, but it's something that we discovered and I thought I would pass along.

I've attached screenshots for reference.

Greg
Stefan
Telerik team
 answered on 20 Dec 2012
9 answers
276 views
RadMaskedNumericInput not working with ApplicationCommands.paste.

it will show ApplicationCommands.paste value but it is not preserved.

onkeypress or tab change, it will change to old value and new paste value will never updated.

I also used CommandBindings in constructor of RadMaskedNumericInput. but it doesn't work.

CommandBindings.Add(

 

new CommandBinding(ApplicationCommands.Paste, (sender, e) =>

{

double inputValue;

bool isInputNumber = double.TryParse(Clipboard.GetText(), out inputValue);

this.Value = inputValue;

e.Handled = true;

}));

Hitesh
Top achievements
Rank 1
 answered on 20 Dec 2012
5 answers
179 views
Hello,

i have a gridview with ShowInsertRow behavoir
Grid binded to ObservableCollection.

User clicked fixed New row.
i tried to add or delete rows to/from my observable collection in this time(grid is focused on fixed new Row, but user dont makes entries) and dont see any updates.
Yoan
Telerik team
 answered on 20 Dec 2012
1 answer
125 views
Our application MainWindow is derived from RadRibbonWindow, our dialogs and other popups are derived from RadWindow.

RadWindow applies theming to its non-client area, RadRibbonWindow ignores the current theme and has the stock Win7 Aero chrome. This inconsistency looks ridiculous. How do we get it so that it is consistent?

We can easily make it so that our dialogs do not have the themed non-client area by deriving them from Window instead of RadWindow, but then the selected theme is not applied by all of the dialog's controls which looks even worse.

What would you suggest?
Tina Stancheva
Telerik team
 answered on 20 Dec 2012
5 answers
153 views
Hi, I'm trying to drag XML elements from one RadTreeView (call it templateView) to another RadTreeView (contentView), and reordering of the XML elements in the contentView.
A drag operation from the templateView to the contentView should only be a copy operation; the templateView should never change its contents.

Looking through the documentation it appears that RadDragAndDropManager is not supported anymore, but if I look through the samples, for example the TreeView Drag And Drop sample in the WPF Control Example app (and in the examples included in the source), and even in the documentation (http://www.telerik.com/help/wpf/radtreeview-how-to-implement-drag-and-drop-between-treeview-and-other-controls.html), it seems the only samples are RadDragAndDropManager. And the DragAndDropManager samples I found are lacking some of the defining features of RadDragAndDropManager such as the insertion marker (above, inside and below).

So which of these frameworks should I go for? The supported one, without samples, or the unsupported one, with samples?
Nick
Telerik team
 answered on 20 Dec 2012
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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?