Telerik Forums
UI for WPF Forum
1 answer
243 views

We are developing projects using Telerik controls. Including 1 module with zoom feature for RadGridView. I ran your sample in link (https://www.telerik.com/forums/scale-font-with-grid-width#dO4Kn_YdzEW3UENkNr5GUg) .

But there was a problem when I zoomed out. Border in row is lost, and this disappearance is asynchronous (In the photo attached). You can consider this issue not help me?

chien
Top achievements
Rank 1
 answered on 05 May 2020
1 answer
130 views

Hello, 

I've just started reviewing RadScheduleView with the intent on connecting it with data in a SQL database. While reviewing the documentation at 

https://docs.telerik.com/devtools/wpf/controls/radscheduleview/populating-with-data/binding-to-database/binding-to-db-datatier

I noticed the table definition for SqlAppointments has the column definition SqlAppointmentId as type Int. I expected to find a property of type Int in the Appointment class, but found only the property UniqueID of type string.

During test, the UniqueID property produces a value that looks to be a GUID. There are no properties within the class definition that would seem to support the database column type.

What is the designed primary key for synchronizing database records with in-memory runtime instances of an appointment?

 

 

Vladimir Stoyanov
Telerik team
 answered on 04 May 2020
5 answers
452 views

The exception occurred when we clicked the RadComboBox to update the items.

EXCEPTION :System.ArgumentNullException: Value cannot be null.
Parameter name: key
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   at Telerik.Windows.Automation.Peers.RadComboBoxAutomationPeer.CreateItemAutomationPeer(Object item)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
   at Telerik.Windows.Automation.Peers.RadComboBoxAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
2 answers
94 views

Is it possible to change the background of the selected TreeListView HeaderCell? Customers complain that the solid background of the currently sorted column can be distracting.

We would prefer a white background with a thick underline as in the screenshot. We already tried changing the style of GridViewHeaderCell, but unfortunately, this doesn't apply to the sorted/selected column.

 

Is there a way to achieve this without duplicating the entire template?

 

Best Regards,

Martin

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
1 answer
268 views

Hello,

I have problem with setting custom position of rectangle shapes on the diagram using server-side data binding with SQL DataSource.

these are diagram settings:

<telerik:RadDiagram ID="brackets" runat="server" Width="100%" Height="450" BorderWidth="1" BorderColor="#dddddd" DataSourceId="IntegratedDiagramDS" ConnectionDataSourceId="IntegrationDiagramsConnDS"                               OnItemDataBound="brackets_ItemDataBound" EnableViewState="false">                                   
<ClientEvents OnLoad="diagram_load" OnMouseEnter="mouseEnter" OnClick="OnShapeClick" />
<ConnectionDefaultsSettings Editable="false" Selectable="false"></ConnectionDefaultsSettings>
<ShapeDefaultsSettings Editable="false" Selectable="false" Height="40" Width="160">
    <StrokeSettings Width="2" />
</ShapeDefaultsSettings>
<BindingSettings>
     <ShapeSettings
                DataFillColorField="BCGColor"
                DataStrokeColorField="BorderColor"
                DataContentTextField="IntegratedObject"                                           
                DataIdField="FieldTableID"                                           
                DataXField="XVal"
                DataYField="YVal"/>
     <ConnectionSettings                                       
                 DataFromShapeIdField="RelatedID"
                 DataToShapeIdField="FieldTableID"/>
</BindingSettings>
</telerik:RadDiagram>

 

There are no problems with displaying and connections, everything is working fine. since I want to display diagram shapes on custom position (not randomly) I've set DataXField and DataYField to set specific position for each shape, but as a result I have same display as if those attributes are not set. It looks like they are somehow ignored.

Attached files:

  • sample data from DB - samledata.png
  • what I get as a result - defaultPreview.png
    • position on page source - defaultXYValues. As You can see these are default values, starting from position 50,50...

Can someone advice what I'm doing wrong?

Thanks in advance,

Stefan

Peter Milchev
Telerik team
 answered on 01 May 2020
6 answers
1.8K+ views

Hi 

I am binding RadCombobox ItemSource with  IEnumerable<Telerik.Windows.Data.EnumMemberViewModel> type enum Values and SelectedItem with one of the viewModel property of type enum but it is not working.

 

How to bind Radcombobox with Enum Values and property of type Enum as selectedItem.

 

Regards,

Nagasree

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 May 2020
7 answers
1.3K+ views

I have a problem with my RadGridView not updating when new items are added to the source collection. 

The ItemSource for my RadGridView is bound to a QueryableCollectionView which is created using a Caliburn.Micro BindableCollection e.g. new QueryableCollectionView(myBindableCollection).

I have several filters that I add as FilterDescriptors and CompositeFilterDescriptors to the QueryableCollectionView. And the filters works as they should.

The problem comes when I want to add a new item. The item is added to the BindableCollection and should show up in the RadGridView. However, this does only work when there is no FilterDescriptors on the QueryableCollectionView. 

What I have tried:

1. To NotifyOfPropertyChanged on the QueryableCollectionView 

2. To NotifyOfPropertyChanged on the BindableCollection

3 To run QueryableCollectionView.Refresh()

But none of the above has worked. 

What seems to work though is to remove all the FilterDescriptors and add them back again. Then the new item appears. But it doesn't seem like a good solution.

Is there anything else that I can try?

 

 

 

Martin Ivanov
Telerik team
 answered on 01 May 2020
8 answers
486 views

We have the Problem, that the Users can't Paste Plain Text from Clipboard (Cut out from our old Delphi Win32 Applikation) in the RichTextBox.

If it is RTF or HTML Text it Works, but not with Plain Text, what we are missing ?

As Workaround the User can Cut the Text out in the old Application, paste it e.g. in an new eMail (HTML) Body, Mark it again to put in Clipboard and then they can Paste it in the RichTextBox, but that can't be the way.

In the section 'Clipboard' in the RichText Documentation stands that first the insert try RTF second HTML and third Text, but this doesn't work.

Can you please help me ?

Greetings

T. Schmitz

Martin
Telerik team
 answered on 30 Apr 2020
2 answers
133 views
I have cell and row validation happening on my grid which works fine. But when I have a cell or row that has invalid data, it locks out all my buttons on the window and prohibits the user from clicking them. I suppose that is alright for my 'OK' and 'Apply' buttons because I don't want to submit bad data. But I also have a 'Cancel' button which just closes the form without saving anything. I want that button always enabled even if the GridView is not valid.
John
Top achievements
Rank 1
 answered on 30 Apr 2020
2 answers
182 views

My chart draws a CartesianCustomAnnotation showing an ellipse that is meant to skirt up the curve in my profile line  I bind the annotation's HorizontalValue and VerticalValue properties to the center point of the ellipse.   I've attached an image to show what it looks like.  

The problem is that if my profile curve is gradual, the ellipse gets so big that it the center point is actually outside of the chart axis Minimum/Maximum values.   As soon my annotation's HorizontalValue or VerticalValue is outside the boundaries, the chart stops drawing it at all.  Even if its radius means that it *would*, in fact show up in part on the display (which is what I want).

Is there a way to force the chart to draw my annotation regardless of where its origin lies?

Martin Ivanov
Telerik team
 answered on 29 Apr 2020
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?