Telerik Forums
UI for WPF Forum
5 answers
124 views
Hi,

as the thread titles says, if I change the DataContext of a GridView, a ComboBoxColumn whose ItemsSource binds to a collection in the DataContext don't change with changing the DataContext. Instead the values of the DataContext which was assigned before remain.

If I check

this.GridView.Columns[4].GetBindingExpression(GridViewComboBoxColumn.ItemsSourceProperty).DataItem


while debugging, I can see that "DataItem" still references the old DataContext -although-

this.GridView.Columns[4].DataContext


references the newly assigned DataContext.

I do not understand this behavior. Thanks.
Pavel Pavlov
Telerik team
 answered on 30 Mar 2011
1 answer
47 views
I have a monitor board application which is simply a full-screen Window with a single RadTransition container in it. I have defined a number of UserControls, each essentially a screen with data-driven reports. The application cycles through a number of these screens continuously during the day, with data refreshing every 15 minutes. My problem is that as the screen cycles, the application grows in memory slightly but continuously until eventually (after eight hours or so) it crashes from lack of memory.

How can I make sure that the previous UserControl is well and truly unloaded and its resources released after a new control is loaded in the RadTransition control?
Valeri Hristov
Telerik team
 answered on 30 Mar 2011
1 answer
364 views
I downloaded new version of telerik wpf controls. I am adding dll of telerik.windows.controls.dll and telerik.windows.control.gridview with other dlls. I can add the refrernece of gridview namespace but when i am using it by tag <telerikGridView: ..  GridView is not visible. Also in the toolbox other controls are coming not the gridview. 
Vanya Pavlova
Telerik team
 answered on 30 Mar 2011
1 answer
138 views
Hi there,

I have a command binding in my WPF form, it looks like this,
<UserControl.InputBindings>
      <KeyBinding Key="Enter" Command="{Binding Path=AddSelectedProductTypeCommand}"/>
  </UserControl.InputBindings>
I also have a grid that is non editable, however pressing the enter key causes a red outline to form around the grid, I suspect that it is grabbing the enter key press and then complaining cause IsReadOnly="True",

How can I tell the grid to ignore any key presses? Or just the enter key... I will take either.

Thanks
Ivan Ivanov
Telerik team
 answered on 30 Mar 2011
4 answers
140 views
Hi there,

I have a custom MultiSelect attached property, I can use it with a ListBox however I can't seem to use it with your grid view, I get an error that say's property 'IsEnabled' is not attachable to type elements of type 'RadGridView' - Why would it work with a listbox but not a gridview? I mean, it's just an attached property - I don't see what the issue is with a the grid.

Here is the code for the MultiSelect.cs
public static class MultiSelect
  {
      static MultiSelect()
      {
          Selector.ItemsSourceProperty.OverrideMetadata(typeof(Selector), new FrameworkPropertyMetadata(ItemsSourceChanged));
      }
 
      public static bool GetIsEnabled(Selector target)
      {
          return (bool)target.GetValue(IsEnabledProperty);
      }
 
      public static void SetIsEnabled(Selector target, bool value)
      {
          target.SetValue(IsEnabledProperty, value);
      }
 
      public static readonly DependencyProperty IsEnabledProperty =
          DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(MultiSelect),
              new UIPropertyMetadata(IsEnabledChanged));
 
      static void IsEnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
      {
          Selector selector = sender as Selector;
          IMultiSelectCollectionView collectionView = selector.ItemsSource as IMultiSelectCollectionView;
 
          if (selector != null && collectionView != null)
          {
              if ((bool)e.NewValue)
              {
                  collectionView.AddControl(selector);
              }
              else
              {
                  collectionView.RemoveControl(selector);
              }
          }
      }
 
      static void ItemsSourceChanged(object sender, DependencyPropertyChangedEventArgs e)
      {
          Selector selector = sender as Selector;
 
          if (GetIsEnabled(selector))
          {
              IMultiSelectCollectionView oldCollectionView = e.OldValue as IMultiSelectCollectionView;
              IMultiSelectCollectionView newCollectionView = e.NewValue as IMultiSelectCollectionView;
 
              if (oldCollectionView != null)
              {
                  oldCollectionView.RemoveControl(selector);
              }
 
              if (newCollectionView != null)
              {
                  newCollectionView.AddControl(selector);
              }
          }
      }
  }
Thanks for any help...
ken
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
94 views
Hi there,  Really getting somewhere with using the ScheduleView, It has enabled to solve a good few problems in recent developments. 

One thing that we're trying to achieve now is to Schedule appointments that don't necessarily have an actual start & end datetime but rather plan something in terms of Days.

For instance, if a user wanted to plan a 5 day conference but had no start date would it be possible to show
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 

as the major horizontal tick on the TimeLine view (we're using the Timeline view exclusively)  Also would it be able to go from Day 1 up to Day N where N is the VisibleDays property?

This would allow the user to build a profile of the event which could be saved somehow and then applied at a different point when the actual dates are known.

To work out the relative day I would have the control manage dates between DateTime.Today up to N visible days and work out the relative days from that but I'd really like to be able to display Day X in the header.

I've tried a few things but nothing seems to work :\
Valeri Hristov
Telerik team
 answered on 30 Mar 2011
7 answers
332 views
Hi

I am setting

StepAction="MoveRange" and range is moving with the mouse click.

 

 

 

But the issue is that when I a dragging mouse then range is changing. How do I disable the Mouse drag.




HorizontalAlignment
="Right"

 

 

 

 

IsSnapToTickEnabled="True"

 

 

 

 

Margin="0,10,12,52"

 

 

 

 

Minimum="1"

 

 

 

 

Name="monthSlider"

 

 

 

 

Maximum="12"

 

 

 

 

SmallChange="0"

 

 

 

 

StepAction="MoveRange"

 

 

 

TickFrequency="1"

 

 

 

LargeChange="3"

 

 

 

 

SelectionEnd="3"

 

 

 

SelectionStart="1"

 

 

 

IsSelectionRangeEnabled="True"

 

 

 

 

SelectionRangeChanged="monthSlider_SelectionRangeChanged"

 

Petar Mladenov
Telerik team
 answered on 30 Mar 2011
2 answers
133 views
How could I change the timeformat on the RadScheduleView? In RadScheduler I could use TimelineHeaderFormat but that is not available in RadSchedulerView.  

//Ola
Dani
Telerik team
 answered on 30 Mar 2011
2 answers
591 views
Hi,
How we can a delete a row from raddatagrid by using MVVM pattern?
Vlad
Telerik team
 answered on 30 Mar 2011
4 answers
205 views
Hi all,
can you give an example for binding a RadColumnSparkline to data ? I got the RadLinearSparkline working, but the RadColumnSparkline seems to need a different data format.

Thanks in advance
Guido

Guido
Top achievements
Rank 1
 answered on 30 Mar 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?