Telerik Forums
UI for WPF Forum
3 answers
249 views
I need to scroll to the last column (right-most) when I open a form with a RadGridView.

I use this code to scroll:
MyGridView.ScrollIntoView(null, MyGridView.Columns[MyGridView.Columns.Count - 1]);

This works, but only when there is data in the gridview. When I try to run this line of code before the gridview has any data, nothing happens. Am I doing something wrong, or is this just not possible?
Milan
Telerik team
 answered on 30 Jun 2011
2 answers
128 views
Hello,

The FilterOperatorsLoading is not firing all of the time. It is only firing when the data type changes. For example, if you go from an Int to a String it will fire. But if you switch from a String filter to a String filter, the event does not fire. 

Is this normal behavior? If so, is there another way to filter the operators based on the selected filter? 

We are using the WPF Q3 2010 version of RadDataFilter.

Thank you,
Zaheer
Zaheer
Top achievements
Rank 1
 answered on 30 Jun 2011
1 answer
132 views
Hi ,
I have a tileview that used to work properly till I took the latest update of the controls. Now the tile maximize/minimize functionality does not work properly. The issues I am facing are:
1. On clicking the tileitemheader to maximize the tile, instead of the size changing the maximized view is restricted to the height and width of the normal / onload tileitems. I was expecting the minimized tile items at the left and the tile that was clicked to occupy the rest of the space.
2. I can maximize more that one tile at a time even though I have maximizeMode = zeroOrOne

The version I am using is 2011.1.419.35
Zarko
Telerik team
 answered on 29 Jun 2011
3 answers
148 views
Hello,

I have a WPF application where I am using a TileView to show different user controls. It is very confusing for our customers when the tile they click gets removed from the docked (minimized) area. The tile goes back to the correct location when they click another tile, but we would like to keep the list of docked tiles the same even when the tile is maximized. For example, if I have 4 total tiles, I would like to keep all 4 in the minimized list when the user clicks an item. Right now, you only see 3 tiles in the minimized list, because the other is maximized.

I would like to change the background color or header color of the tile when it is selected and keep it in this list. Is it possible to have this behavior?

Thank you,
Scott
Zarko
Telerik team
 answered on 29 Jun 2011
1 answer
82 views
Hi,

I want to have the a RadGridView with group rows, where the group rows start out expanded, and cannot be collapsed.  The way I am currently doing this is with the following:

private void _mainGrid_GroupRowIsExpandedChanging(object sender, GroupRowCancelEventArgs e)
{
      if (!e.Row.IsExpanded)
      {
          e.Cancel = true;
      }
}

I observe that e.Row.IsExpanded is true when the row is changing to be expanded.  The documentation says that this event "Occurs when a group row's expanded state is about to be changed."  Is the state of e.Row correct / Is it supposed to show the state of that the row WILL be in after the change?  I'm fine with it as it is now...  but if it is supposed to be the current state of the row (before the change), I want to know so I can watch the change logs so my code works the way I want to after updates.
Dimitrina
Telerik team
 answered on 29 Jun 2011
2 answers
226 views
Hello,

can I bind multiple objects to the property grid and display each as a column ? Of course, I'd only like to have one attribute header on the left for each row (property).

Lars
Pavel Pavlov
Telerik team
 answered on 29 Jun 2011
2 answers
836 views
Hi,

Does someone have a working Mask for inputting a Longitude and Latitude that can be used for the RadMaskedTextBox?
If you could share it I would appreciated it.

I have tried "0000\.0000000" which does not work. 

I also tried "####.######" or "0000.000000".  These work in general and allow the minus sign for negative values but does not align the value to the left of the decimal point correctly.  You can enter a value to the left of the decimal that only has two digits, in other words the mask allows for empty spaces.   I need to make sure the digits to the left of the decimal right align.

Thanks,
Reid
Reid
Top achievements
Rank 2
 answered on 29 Jun 2011
1 answer
133 views
Dear Telerik-Team,

I'am evaluating the scheduleview control.

I tried to configure the timelineview in order to get a range of a year.

I set VisibleDays to 365 and MinTimeRulerExtent to 1 in order to get months in groupheaders.

_RadScheduleView.ActiveViewDefinition.VisibleDays = 365;
_RadScheduleView.ActiveViewDefinition.MinTimeRulerExtent = 1;

The problem is that the length of the Months-GroupHeaders don't match with the Day-Timeslots.

In Jul 2011 for example there are timeslots of August 2011.

Please help

Greetings
Yana
Telerik team
 answered on 29 Jun 2011
1 answer
110 views
I am using WPF Rad Pie Chart control
Here i have multiple problems..As per my requirement..

I need to display thress categories in Pie chart 
1. Incomplete
2. Complete
3. NotStarted

If the any <Category> records are 0 then we are not going to display that in the pie chart.. But i do want to display the legend.
So to achieve this, I am adding the Legend Item manually, Label and MarkerFill..

1) The problem is .. When i do not display a category.., the legend colors and Pie chart colors are not matching..  Can you please let me know a way to resolve this problems.. [--  FYI If i am displaying all the categories on the chart, then the colors Match]
2) If i do not use any camera extensions, by default the pie chart is at an angle of 60 degrees.. Which is not very visible to the user, How can i change the default angle so that it displays.. as a full circle..

Thanks for the Help..

Sia
Telerik team
 answered on 29 Jun 2011
4 answers
214 views
I'm data binding my RadChart (WPF Q1 2011 SP1) control to an ADO.NET DataView exposed through a property of my ViewModel (currently hosted in the UserControl's code-behind--similar to this implemenation (later plan to use multiple-series mapping): http://www.telerik.com/ClientsFiles/275600_WpfApplication1.zip

It almost works until I try to raise an OnPropertyChanged event for the VMs INotifyPropertyChanged implementation.  I get:

{"No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "}

[System.InvalidOperationException]: {"No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "}

Data: {System.Collections.ListDictionaryInternal}

HelpLink: null

InnerException: null

Message: "No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. "

Source: "System.Core"

StackTrace: " at System.Linq.Expressions.Expression.FindMethod(Type type, String methodName, Type[] typeArgs, Expression[] args, BindingFlags flags)\r\n at System.Linq.Expressions.Expression.Call(Type type, String methodName, Type[] typeArguments, Expression[] arguments)\r\n at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateMethodCallExpression(LambdaExpression memberSelectorExpression) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunctionExpressionBuilder.cs:line 48\r\n at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateAggregateExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunctionExpressionBuilder.cs:line 30\r\n at Telerik.Windows.Data.EnumerableSelectorAggregateFunction.CreateAggregateExpression(Expression enumerable

Expression) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Data\\Grouping\\Aggregates\\EnumerableSelectorAggregateFunction.cs:line 76\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<ProjectionPropertyValueExpressions>b__3(AggregateFunction f) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 288\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionInitExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 279\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateAggregateFunctionsProjectionMemberBin

ding() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 272\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<CreateMemberBindings>d__0.MoveNext() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 173\r\n at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)\r\n at System.Linq.Expressions.Expression.MemberInit(NewExpression newExpression, IEnumerable`1 bindings)\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateSelectBodyExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 161\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateResultSelectorExpressio

n() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 153\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.get_ResultSelectorExpression() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilder.cs:line 109\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilderBase.CreateQuery() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorExpressionBuilderBase.cs:line 18\r\n at Telerik.Windows.Data.Expressions.GroupDescriptorCollectionExpressionBuilder.CreateQuery() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Expressions\\Grouping\\GroupDescriptorCollectionExpressionBuilder.cs:line 28\r\n at Telerik.Windows.Data.QueryableExtensions.GroupBy(IQueryable source, IEnumerable`1 groupDescriptors) in c:\\Builds\\WPF_Scrum\\Release_WPF\

\Sources\\Development\\Core\\Data\\Collections\\QueryableExtensions.cs:line 184\r\n at Telerik.Windows.Data.QueryableCollectionView.CreateView() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 480\r\n at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 511\r\n at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 575\r\n at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 563\r\n at Telerik.Windows.Data.QueryableCollectionView.get_InternalList() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\Queryab

leCollectionView.cs:line 554\r\n at Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(Object item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 1499\r\n at Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 1491\r\n at Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 847\r\n at Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 843\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollect

ionView.cs:line 824\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 772\r\n at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 767\r\n at Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 393\r\n at Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\QueryableCollectionView.cs:line 416\r\n at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)\r\n at Telerik.Windows.Data.R

adObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\RadObservableCollection.cs:line 143\r\n at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\ObservableItemCollection.cs:line 93\r\n at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Core\\Data\\Collections\\RadObservableCollection.cs:line 190\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.PerformSampling(QueryableCollectionView dataEngine, Int32 samplingThreshold, IEnumerable`1 samplingFunctions) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 759\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessNoGrouping(Series

Mapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 460\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMapping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 271\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMappings(SeriesMappingCollection seriesMappings, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState) in c:\\Builds

\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 245\r\n at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\DataBindingHelper.cs:line 48\r\n at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 1288\r\n at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Co

ntrols\\Chart\\Chart\\RadChart.cs:line 1269\r\n at Telerik.Windows.Controls.RadChart.Rebind(Object originalData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 894\r\n at Telerik.Windows.Controls.RadChart.Rebind() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\RadChart.cs:line 790\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.RebindChart() in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\SeriesMapping.cs:line 375\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.ManageChangeNotifications(Object originalData, Object oldData) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\Chart\\Chart\\Data\\SeriesMapping.cs:line 354\r\n at Telerik.Windows.Controls.Charting.SeriesMapping.ItemsSourcePropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) in c:\\Builds\\WPF_Scrum\\Release_WPF\\Sources\\Development\\Controls\\

Chart\\Chart\\Data\\SeriesMapping.cs:line 331\r\n at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n at System.Windows.Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs e)\r\n at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)\r\n at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)\r\n at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp)\r\n at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)\r\n at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)\r\n at MS.Internal.Data.PropertyPathWorker.Upd

ateSourceValueState(Int32 k, ICollectionView collectionView)\r\n at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)\r\n at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)\r\n at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)\r\n at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)\r\n at GenesysShell.DataPointSetViewModel.RaisePropertyChanged(String  propertyName) in C:\\Data\\tfs\\...\\MainView.xaml.cs:line 50\r\n at ....DataPointSetViewModel.set_Load(DataView value) in C:\\Data\\tfs\\...\\Views\\MainView.xaml.cs:line 69\r\n at ....MainView.cmdProcess_Click(Object sender, RoutedEventArgs e) in C:\\Data\\tfs\\...\\Views\\MainView.xaml.cs:line 268"

TargetSite: {System.Reflection.MethodInfo FindMethod(System.Type, System.String, System.Type[], System.Linq.Expressions.Expression[], System.Reflection.BindingFlags)}

This thread:
http://www.telerik.com/community/forums/wpf/chart/error-in-aplying-aggregate-function-when-binding-from-datatable.aspx
talks about setting the "FieldType" to double for correcting a similar error, like so:

ItemMapping mapping = new ItemMapping("Sales", DataPointMember.YValue, ChartAggregateFunction.Sum);
mapping.FieldType = typeof(double);

But I'm using wpf design-time binding, not c#--how would this be done in xaml (as I get an error):

<charting:ItemMapping FieldName="Value" DataPointMember="YValue" FieldType="double">
</charting:ItemMapping>
?

My XAML looks like this:

<UserControl ...

<telerik:RadChart x:Name="chartSegTrak" Margin="0,45,0,10" UseDefaultLayout="False">

    <charting:ChartArea x:Name="segTrakChartArea" EnableAnimations="False">
    </charting:ChartArea>
                   
    <telerik:RadChart.SeriesMappings>
        <charting:SeriesMapping ChartAreaName="ChartArea" ItemsSource="{Binding Load}">

            <charting:SeriesMapping.SeriesDefinition>
                <charting:LineSeriesDefinition>
                </charting:LineSeriesDefinition>
            </charting:SeriesMapping.SeriesDefinition>

            <charting:ItemMapping FieldName="Value" DataPointMember="YValue">
            </charting:ItemMapping>

        </charting:SeriesMapping>

    </telerik:RadChart.SeriesMappings>

</telerik:RadChart>
...

The code-behind looks like this:

    //
    // ViewModel code...
    //
    public class DataPointSetViewModel : INotifyPropertyChanged
    {
        private string _name;

        public DataPointSetViewModel(){}

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;

            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

        public DataView Load
        {
            set
            {
                _load = value;
                RaisePropertyChanged("Load");               
            }
            get
            {
                return _load;
            }
        }
        ...
    }

 //
 // Window/UserControl code...
 //
 public partial class MainView : UserControl
 {
        DataPointSetViewModel _vm;

        public MainView()
        {
            _vm = new DataPointSetViewModel();
            this.DataContext = _vm; 
            InitializeComponent();
        }
...
        private void cmdProcess_Click(object sender, RoutedEventArgs e)
        {
            ...

            try
            {
...
                DataView dvLoad = new DataView(<someclass>.DataSet.GenesysDataPoint);
                dvLoad.RowFilter = "StudyId=5 AND GlobalResourceId=2";
                dvLoad.Sort = "Year, Month, Day, Hour";
                _vm.Load = dvLoad;
            }
            catch (Exception ex)
            {
                Cursor = System.Windows.Input.Cursors.Arrow;
                MessageBox.Show("Error: " + ex.ToString());
            }
        }

 

The UserControl's DataContext is set and I can two-way bind simple properties with success.  It's just the DataView two-way binding that's not working correctly.  Thanks!

SqueakyDog
Top achievements
Rank 1
 answered on 29 Jun 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?