Telerik Forums
UI for WPF Forum
2 answers
626 views
Hello,

I am handling the DropDownOpened event by asking the user about saving changes if need be and setting the IsDropDownOpen property based upon the user feedback.  The problem is that when I set the IsDropDownOpen to false it seems to leave the ComboBox in a strange state.  The very next time that I click on the ComboBox, it highlights but does not dropdown.  In addition all other controls in the application do not respond to anything until I click the combobox again.  Then everything seems to work fine.  Please advise.

Thank,

Jason Munger
Jason
Top achievements
Rank 1
 answered on 03 Jan 2011
2 answers
473 views
Hi,

I have a RadComboBox on my window that gets popuated with about 1400 business objects.  The combo box itself uses a custom data template, so that I can display several different properties in the combo box items at the same time.

I'm populating the Items Source of the combo box in Page_Load.  It's taking about 1/2 a second to get the collection of objects from the data store. 

What I've noticed, however, is that the first time the combo box is clicked by the user, there is about a 6 second delay until it displays its items.  Since the items source has already been populated, I assume that during this time, RadComboBox is drawing all of its items based on the customized data template.  After this initial delay, subsequent clicks of the combobox produce pretty-near instantaneous results.

I'm wondering if there is a way to get the RadComboBox to do this initial work before the UI is drawn, so that the user doesn't have the experience of a non-responsive UI.  They won't mind waiting longer for the inital page to load, as long as it's responsive once it comes up.

Thanks.
Aaron
Top achievements
Rank 2
 answered on 03 Jan 2011
11 answers
195 views
Does anyone have an example of a collection of charts in an ItemsControl?  I created one that renders the charts correctly, but ignores the ChartDefaultView.ChartArea AxisX/Y.

If you pull the ContentControl out of the DataTemplate and bind it to a single item, then the X and Y axes behave correctly.

 

    <ItemsControl Margin="5,20,5,5" ItemsSource="{Binding ChartSeriesViewModelCollection}">  
        <ItemsControl.ItemsPanel> 
            <ItemsPanelTemplate> 
                <UniformGrid Rows="2" Columns="3" /> 
            </ItemsPanelTemplate> 
        </ItemsControl.ItemsPanel> 
        <ItemsControl.ItemTemplate> 
            <DataTemplate> 
                <ContentControl DataContext="{Binding}">  
                    <telerikChart:RadChart Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"   
                                                   ItemsSource="{Binding ChartSeries}" 
                                                   HorizontalAlignment="Stretch" 
                                                   VerticalAlignment="Stretch" > 
 
                        <telerikChart:RadChart.SeriesMappings> 
                            <telerikCharting:SeriesMapping> 
                                <telerikCharting:SeriesMapping.SeriesDefinition> 
                                    <telerikCharting:BarSeriesDefinition /> 
                                </telerikCharting:SeriesMapping.SeriesDefinition> 
 
                                <telerikCharting:SeriesMapping.GroupingSettings> 
                                            <telerikCharting:GroupingSettings ShouldCreateSeriesForLastGroup="False">  
                                                <telerikCharting:GroupingSettings.GroupDescriptors> 
                                                    <telerikCharting:ChartGroupDescriptor Member="GroupString" /> 
                                                </telerikCharting:GroupingSettings.GroupDescriptors> 
                                            </telerikCharting:GroupingSettings> 
                                        </telerikCharting:SeriesMapping.GroupingSettings> 
 
                                <telerikCharting:SeriesMapping.ItemMappings> 
                                    <telerikCharting:ItemMapping FieldName="Value" DataPointMember="YValue" /> 
                                    <telerikCharting:ItemMapping FieldName="LabelString" DataPointMember="XCategory" /> 
                                </telerikCharting:SeriesMapping.ItemMappings> 
 
                            </telerikCharting:SeriesMapping> 
                        </telerikChart:RadChart.SeriesMappings> 
 
                        <telerikChart:RadChart.DefaultView> 
                            <telerikCharting:ChartDefaultView> 
                                <telerikCharting:ChartDefaultView.ChartArea> 
                                    <telerikCharting:ChartArea > 
                                        <telerikCharting:ChartArea.AxisX> 
                                            <telerikCharting:AxisX TicksDistance="30" LabelRotationAngle="45" Title="X Axis Title" /> 
                                        </telerikCharting:ChartArea.AxisX> 
                                        <telerikCharting:ChartArea.AxisY> 
                                            <telerikCharting:AxisY AutoRange="False" MinValue="100" MaxValue="200" Step="5" 
                                          DefaultLabelFormat="0" Title="Ampere [A]"/>  
                                        </telerikCharting:ChartArea.AxisY> 
 
                                    </telerikCharting:ChartArea> 
                                </telerikCharting:ChartDefaultView.ChartArea> 
                                        <telerikCharting:ChartDefaultView.ChartLegend> 
                                            <telerikCharting:ChartLegend x:Name="chartLegend" Header="Legend"   
                                                                         UseAutoGeneratedItems="True" /> 
                                        </telerikCharting:ChartDefaultView.ChartLegend> 
 
                            </telerikCharting:ChartDefaultView> 
                        </telerikChart:RadChart.DefaultView> 
 
                    </telerikChart:RadChart> 
                </ContentControl> 
                  
            </DataTemplate> 
              
        </ItemsControl.ItemTemplate> 
    </ItemsControl> 
 
Giuseppe
Telerik team
 answered on 03 Jan 2011
1 answer
193 views
Hi there, 

I'm attempting to use RadDock for WPF in a non-standard way. The UI I am working on requires:

  • Top level docking to allow various "always seen" components to be positioned. Think solution explorer, Output window in VS2008
  • A Tabbed area to host documents
  • Within each tabbed document, another docking manager, allowing multiple components to be positioned by the user
(Refer to the attached diagram)

The diagram shows what I'm trying to achieve. I'd like to restrict docking of red items to the dock manager in which they were created and only allow them to be docked as document (not floating, not top, left, right, bottom toolpanes)

The outer components (in blue) Id only like to be repositioned in the outer dock manager (e.g. not in the red area)

Is there any way I can achieve this? The outer components I can restrict by saying "CanDockAsDocument = false" but it is possible in my model to drag the inner components out to the parent docking manager. Doh

Thanks for your time
George
Telerik team
 answered on 03 Jan 2011
8 answers
149 views
Hi Telerik Team,
        I tried to add FilterDescriptor for RadGridView, but it is not adding and shows an error message "The method or Operation is not implemented". Please let me know any other way to add FilterDesriptor or how to overcome this error.. I'll be thankful to you if given any good idea.

This is the code I've written...

For

 

 

Each d As FilterDescriptor In e.Added
          RadGridView1.FilterDescriptors.Add(New FilterDescriptor(d.Member.ToString, d.Operator, d.Value, False))
Next

I have installed Q3 version in my system.. Please Help..

Thanks and Regards,
Azharshah H

 

 

 

 

 

 

 

 

 

 

azhar
Top achievements
Rank 1
 answered on 03 Jan 2011
5 answers
174 views
Thanks for the new TreeListView control. By default the TreeListView loads my collection of data only showing the parent level.  The children levels are collapsed on the grid.  I was wondering if its possible to expand to show the second level rows of my hierarchy data by default.  I don't see anywhere to do this in the API.  Please help.

Thanks
Sharada
Top achievements
Rank 1
 answered on 03 Jan 2011
2 answers
167 views
Hi..
I have function that loads the data and binds the grid.

LoadData();

How can I call this in separate thread.. so I can use the IsBusy indicator..... ?

Do I added IsBusy to the LoadData() and just run the code when the form is loaded?
thanks
Jon
Top achievements
Rank 1
 answered on 03 Jan 2011
1 answer
120 views
how to disable Animate RadWindow When Open or close Window.
Dani
Telerik team
 answered on 03 Jan 2011
2 answers
168 views
Hi

I have a RadGridView bound to a object data source. This data source has certain properties with values Y/N. I would like to display the value of this property as a checkbox in the grid. I would like to create the column from source code. Data cannot be edited in the grid in my scenario, the grid is used only to display the data.

I have tried to add a converter to the binding, which has converted Y/N to True/False, but still, the grid view display this as a string, not as a checkbox. Then, I have tried to change the DataType for the column to bool, but the result was only a few empty cells (without the strings or checkboxes). 

My code is the following:
...
new GridViewDataColumn()
{ Header = header,
   DataType=typeof(bool),
   IsAutoGenerated=false,
   DataMemberBinding = new System.Windows.Data.Binding(property.GetMemberName()) { Converter = converter }};

Is there any way to make this work, or what is the easiest way to solve the problem?



Thanks for the help in advance!

Cheers,
             G. M.
Gergely
Top achievements
Rank 1
 answered on 03 Jan 2011
4 answers
115 views
I'm having a problem with drag-and-drop in the ScheduleView. Essentially, I'm trying to disable ALL drag-and-drop on the ScheduleView and have set every property and attached property I can think of, but I'm still getting the following error if I click an appointment in the view and move the mouse around just a pixel or two. I CAN double-click an appointment and bring up a custom dialog box and that's all working fine. But obviously accidentally initiating a drag-and-drop operation results in the following error:

"Object reference not set to an instance of an object"

The stack trace is:

Telerik.Windows.Controls.AppointmentItem.OnAppointmentItemsDragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.DragDropProvider_DragQuery(Object sender, DragDropQueryEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragQuery()
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.TryStartDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.WPFSimulatedDragDropProvider.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numAr

Any ideas?

Thanks,
Greg
Rosi
Telerik team
 answered on 03 Jan 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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?