Telerik Forums
UI for WPF Forum
4 answers
342 views

I'm using a RadPropertyGrid to display a categorized list of string fields. I don't want the user to be able to edit the fields, but I do want them to be able to select and copy the text in the fields. In order to do this, I set the IsReadOnly property of the PropertyGrid to True. When I do this, the text fields are grayed-out. I don't like this because it makes the fields hard to read, and it is less obvious to the user that they are able to copy the text in the grayed-out fields.

I have looked all over the place, and tried a number of suggestions, to make the grayed-out fields look like normal fields, but nothing so far has worked. 

The XAML I am using to define the property grid is pretty simple:

<telerik:RadPropertyGrid Grid.Row="1" Name="propGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsGrouped="True" SortAndGroupButtonsVisibility="Collapsed" SearchBoxVisibility="Collapsed" RenderMode="Flat" IsReadOnly="True" Item="{Binding DynItem}" />

The CurrentReadOnly.png file shows the current situation, where the read-only fields are grayed-out. The DesiredReadOnly.png file shows the look I am trying to achieve. 

Is there a way to do this (preferably keeping the rest of the currently selected theme intact).

Martin
Telerik team
 answered on 02 Sep 2015
3 answers
428 views

Hi,

I am surprised that there is no MaxLength attribute for RadAutoCompleteBox.

I want user to free type text and if they don't find what they are looking for, I want to accept the value typed by user.

I figured out that I am unable to restrict the free typing after max length of 15.

How can I implement this ?

 

Nasko
Telerik team
 answered on 02 Sep 2015
2 answers
209 views
How would one change the UI culture for the text in the GroupPanel?  For example, the English content says, "Drag a column header and drop it here to group by that column."  How would that get changed to Spanish, for example?  I suppose this question could apply to all Telerik controls with localization.
Martin
Telerik team
 answered on 02 Sep 2015
3 answers
371 views

Hi,

 I'm regularly getting the following exception whenever I move around my Window with a RadBusyIndicator in it. There are multiple windows, each with their own busy indicator. (The Window is a template, and is filled dynamically at runtime.

01.No Title
02.System.NullReferenceException was unhandled
03.  HResult=-2147467261
04.  Message=Object reference not set to an instance of an object.
05.  Source=Telerik.Windows.Controls
06.  StackTrace:
07.       at Telerik.Windows.Automation.Peers.RadBusyIndicatorAutomationPeer.GetCustomPropertyValuesCore()
08.       at Telerik.Windows.Automation.Peers.RadBusyIndicatorAutomationPeer.GetItemStatusCore()
09.       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
10.       at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
11.       at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
12.       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
13.       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
14.       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
15.       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
16.       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
17.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
18.       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
19.       at System.Windows.Threading.DispatcherOperation.Invoke()
20.       at System.Windows.Threading.Dispatcher.ProcessQueue()
21.       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
22.       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
23.       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
24.       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
25.       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
26.       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
27.       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
28.  InnerException: 

 

Any ideas?

Thanks!

 

 

​

Georgi
Telerik team
 answered on 02 Sep 2015
1 answer
129 views
I have identified a problem with the RadMaskedCurrencyInput controls handling of the backspace key.
I have set the following properties in code
 Mask = "";
 FormatString = "c";
 
The error scenario is
1. The control has the value "$0.00"
2. Place the cursor to the left of the period (between the '0' and the period).
3. Press the backspace key (The cursor ends up to the left of the left most '0')
4. Press the number '1' key to enter the value
 
Expected
The value in the control is "$1.00"
 
Actual
The value in the control is "$10.00"
 
At the moment this bug is preventing us from using the control. Is anyone able to provide a solution or workaround for this problem.
 
My client is running the latest version.
 
Petar Mladenov
Telerik team
 answered on 02 Sep 2015
4 answers
250 views

Hi,

Is it possible to not receive handled MouseDoubleClickEvent and MapMouseDoubleClickEvent in RadMap when the event is handled in a item of a map layer ? I've joined a sample that demonstrates the problematic behavior (for me).

Thank you,

Etienne

Etienne
Top achievements
Rank 1
 answered on 01 Sep 2015
1 answer
190 views

Is it possible with your controls to build a LinearGauge with a logarithmic scale and logarithmic tickmarks?

 

Sia
Telerik team
 answered on 01 Sep 2015
1 answer
241 views

After adding a handler, the next step is to set focus to the cell (if any) under the mouse click.

this.AddHandler(MouseLeftButtonDownEvent, new MouseButtonEventHandler(this.myRadGridView_MouseDown), true);

I can set the cell focus given row and column.

The goal is to find the UIElement under the mouse click, if any, and then attempt to set Focus to it.

Thank you for your assistance.

Petya
Telerik team
 answered on 01 Sep 2015
3 answers
324 views

Hi All,

I am trying to create a horizontal stacked bar to show data.  Below is the code I have so far.

 

The problems that I'm having are:

1.  It creates the chart but the data bar seems to be vertical.  I want it to go horizontal.

2.  I want each segment of the bar to have a different color automatically from the theme.

3.  I want each segment of the bar to have its own tooltip.

 What am I missing?

Thanks for your help!     

 

 this.Chart = new Telerik.Windows.Controls.RadCartesianChart() {
                MinHeight = 0,
                MinWidth = 0,
                HorizontalAxis = new Telerik.Windows.Controls.ChartView.CategoricalAxis() {
                    Visibility = System.Windows.Visibility.Collapsed,
                },
                VerticalAxis = new Telerik.Windows.Controls.ChartView.LinearAxis() {
                    Visibility = System.Windows.Visibility.Collapsed,
                }
            };

            Chart.Background = System.Windows.Media.Brushes.Green;

            Chart.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            Chart.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;

            var DataSeries = new Telerik.Windows.Controls.ChartView.BarSeries();
            DataSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack100;

            foreach (var item in e.Parameters) {
                DataSeries.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Value = item.Used, Category = "1" });
                DataSeries.DataPoints.Add(new Telerik.Charting.CategoricalDataPoint() { Value = item.Available, Category = "1" });
            }

            Chart.Series.Add(DataSeries);​

Martin Ivanov
Telerik team
 answered on 01 Sep 2015
5 answers
280 views

Hey all.

 I'm playing around with DragDrop behaviours, mainly dragging from other controls (or explorer), and dropping onto a TreeListView. I would like to set the drag visual in these instances (for example, detail how many files are being dragged), but currently, the only way to create a visual is when the item is the source of the drag operation, not the destination.

Does anyone have any pointers as to where I can go from here ?

Dimitrina
Telerik team
 answered on 01 Sep 2015
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?