Telerik Forums
UI for WPF Forum
1 answer
114 views
It seems WPF version has the same problem as the following
http://www.telerik.com/community/forums/silverlight/general-discussions/textbox-using-chinese-keyboard-results-in-catastrophic-failure-0x8000ffff.aspx

I know this problem of silverlight was issued "http://www.telerik.com/support/pits.aspx#/public/silverlight/4584 ".

I'm wondering will it be fixed at the same time silverlight will?


Iva Toteva
Telerik team
 answered on 07 Apr 2011
3 answers
1.9K+ views
Hi all,

I have the requirement to show the images in my RadGridView where the alternate row color is Light blue and dark blue.
I have small images (of cancel,danger etc ) which i cut it from the screenshot , so its background is of white color.

So i want images to look such that in the row that its background color(at present white) get matched with the background color (light/dark blue) od the row of the RadGridView or can say it white part can be done transparent in order to match with the row color.


Thanks in Advance !!!!!!!
Yavor Georgiev
Telerik team
 answered on 07 Apr 2011
1 answer
60 views
Hi,

I want to export RadGridViewData in my WPF Windows application to Excell.

How do I achieve this functionality.


Any quick solution to this issue with a sample will be highly appreciated.

Thanks in advance.

Regards,
Hirak
Vlad
Telerik team
 answered on 07 Apr 2011
1 answer
80 views
I've tried to change groupings in the dataloaded event but I get an error message:
"Cannot change ObservableCollection during a CollectionChanged event."
Yavor Georgiev
Telerik team
 answered on 07 Apr 2011
2 answers
371 views
Hello,

By default, when you bind a column to a boolean value, it gets rendered as a checkbox.  Is there any built-in support to render "True" or "False" instead, or do I need to use a Value Converter?  (I just want to make sure that I have not missed some simple setting somewhere.)

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 06 Apr 2011
4 answers
239 views
To set the scene, I am in an MVVM environment and I am using the Behavior from Vlad's blog post located at
How To: Synchronize your UI selected items with your data context using MVVM and Blend behaviors for Silverlight and WPF

This behavior works great and I have it bound to a ViewModel, I am working on extended this so when the user selects a row, the grid will automatically select any rows that have the same PO Number as the selected row.

View Model Code:
public WarehouseLineItemProxy SelectedLineItem
    {
      get { return selectedLineItem; }
      set
      {
        if (value != null)
        {
          selectedLineItem = value;
          RaisePropertyChanged(() => SelectedLineItem);
 
          //Check for any additional items that have this GP PO Number
          var lineItems = new ObservableCollection<WarehouseLineItemProxy>();
 
          foreach (var lineItem in LineItems.Where(x => x.GPPONumber == selectedLineItem.GPPONumber))
          {
            lineItems.Add(lineItem);
          }
 
          SelectedLineItems = lineItems;
        }
      }
    }

Here, the SelectedLineItem property is bound to the SelectedItem property of the RadGrid, LineItems is an ObservableCollection of business objects that serves as the ItemsSource of the RadGrid.

I then made the following changes in the Behavior:
void GridSelectedItems_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            UnsubscribeFromEvents();
 
            if (((IList)SelectedItems).Count > Grid.SelectedItems.Count)
            {
              Transfer(SelectedItems as IList, Grid.SelectedItems);
            }
            else
              Transfer(Grid.SelectedItems, SelectedItems as IList);
 
            SubscribeToEvents();
        }

So rather then transferring the Grid's selected items to the SelectedItems dependency property I reverse it and transfer the SelectedItems dependency property into the Grid's selected items.

public static void Transfer(IList source, IList target)
        {
            if (source == null || target == null)
                return;
 
            target.Clear();
 
            foreach (var o in source)
            {
                target.Add(o);
            }
        }


This works and if I look at the Grid.SelectedItems property in a watch it shows me a count of 2.  However the UI only displays one row selected.

Is there a way to force the Grid to re-draw?  Is there a better way to accomplish what I am trying to do?

Any help is greatly appreciated.

Jeremie Grund
Jeremie
Top achievements
Rank 1
 answered on 06 Apr 2011
3 answers
159 views
I am attempting to use this style of  combobox:

http://blogs.telerik.com/vladimirenchev/posts/10-04-09/how_to_filter_as_you_type_radgridview_inside_radcombobox_for_wpf_and_silverlight.aspx

The combobox from this tutorial is then being added to a grid view as a template column.  The combobox seems to work in the regards that it filters as you type and displays the results in a grid format.  However, when you select an item from the results the combobox dropdown stays open and the selection does not appear to have registered (even though the view model does in fact register the selected item).  Also tabbing from the combox box to the next grid column does not work.  Instead it tabs within the results grid.

Basically I want to interact with the combobox as if it were a combox box grid column.  I just want the combobox to display the results as I type in a grid format.

Any suggestions?

Valeri Hristov
Telerik team
 answered on 06 Apr 2011
9 answers
467 views
Hi,

Recently we found one show stopper bug after we moved to telerik controls version 2010.2.812. In this version TrasitionControl seems had serious changes. We use transition control inside datatemplates and rendering of views is done mostly with datatemplates.

Thanks for any help.

Exception - "Cannot resolve all property references in the property path 'Effect.Progress'. Verify that applicable objects support the properties."

StackTrace (stack trace i have copied trying lates internal build 2010.2.1018): 

   at System.Windows.Media.Animation.Storyboard.VerifyPathIsAnimatable(PropertyPath path)
   at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
   at System.Windows.Media.Animation.Storyboard.Begin()
   at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.PlayAnimation() in c:\Builds\WPF_Scrum\HotFix_2010_Q2\Sources\Development\Core\Controls\TransitionControl\TransitionPresenter.cs:line 465
   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 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()

Yana
Telerik team
 answered on 06 Apr 2011
5 answers
134 views
Hi.

I am to provide a graph that indicate deviation from a set point.

There are five significant points on the Y axis
* Upper scale limit.
* Upper alarm limit
* The desired point (set point).
* Lower alarm limit.
* Lower scale limit.

These can be, for instance
High Scale : 100
High Alarm: 80
Set Point : 50
Low Alarm: 20 
Low Scale: 0.

They can also be,
High Scale : 100
High Alarm: 80
Set Point : 76
Low Alarm: 10 
Low Scale: 0.
 
These two sets of axis settings should draw the exact same Y Axis. Even in the case where the distance from High Alarm to set point is just 4 units and distance from Set Point to Low Alarm is 56 units, they should take equal amount of space of the drawing area. A linear dataset would draw a gently sloping curve from Low Alarm to Set Point, but it would be very steep from Set Point to High Alarm as the whole distance would be covered in just 4 units.

How do I achieve this? I consider using four stacked curves that would each cover one area of the curve on the scale for its area so that it would only APPEAR to be a single curve, but would actually be four different curves. This, however functionally adequate, does not draw a continuous curve. Any better suggestions?
Evgenia
Telerik team
 answered on 06 Apr 2011
1 answer
43 views
I am using Telerik chart control and I want to set the minor ticks on X axis.
I tried this.

radChartROIComparison.DefaultView.ChartArea.AxisX.MinorTicksVisibility = Visibility.Visible;

But compilation fails telling that

Error 1 'Telerik.Windows.Controls.Charting.AxisX' does not contain a definition for 'MinorTicksVisibility' and no extension method 'MinorTicksVisibility' accepting a first argument of type 'Telerik.Windows.Controls.Charting.AxisX' could be found (are you missing a using directive or an assembly reference?) 

What is the reason for this????

Am I using an old version which does not support this property?

Regards
Rangana

 

Giuseppe
Telerik team
 answered on 06 Apr 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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?