Infragistics XamDataGrid - track selected row in view model - binding

We're using Infragistics WPF v9.2 and MVVM
I'd like to track the currently selected row from the XamDataGrid as a property in the view model but I'm struggling to see how this is done. It looks like ActiveDataItem property would be the way to go but it doesn't appear to be on the WPF v9.2 grid.

The ActiveDataItem property would allow you to bind what is the active record to a property in your VeiwModel but wouldn't give you the actual selection of the XamDataGrid. For this you would need to use a custom behavior. The following link has examples of this for some of the Infragistics Silverlight controls and you could use a similar approach with the XamDataGrid in WPF:
http://blogs.infragistics.com/blogs/devin_rader/archive/2011/06/01/using-behaviors-to-synchronize-selected-items-of-infragistics-silverlight-controls-to-a-viewmodel.aspx

if you can, pls upgrade to 10.3.
had the same pain of trying to get WPF UltraGrid to work with MVVM with older 9 version.
v10.3 version is much easier and better integrated with MVVM.
not sure if upgrade costs money, we had sitewide license

Related

How do I use a toolbar in AngularDart?

I just found out about AngularDart today and I want to build a sample app but I got stuck.
I'm currently browsing https://material-components-web.appspot.com/toolbar/index.html and I'd like to use the Waterfall Flexible Toolbar for my dart web app.
I'm using this website in order to reference the angular components for Dart https://dart-lang.github.io/angular_components_example but I can't find any toolbar examples.
Does that mean that I have to build my own toolbar? How can I do that?
Apparently in this case it's called Application Layout https://github.com/dart-lang/angular_components/tree/master/lib/app_layout

Extend Umbraco 7.1.1 Multi Tree Node Picker

I am trying to extend the Multi Node Tree Picker (MNTP) in Umbraco but am running into some trouble. I am used to writing property editors in the new umbraco 7 angular style, so the MNTP is a bit foreign to me. I want to be able to connect my uCommerce Catalog Tree to the MNTP. I feel like this should be fairly simple as all that I should need to do is hook up the uCommerce tree to the MNTP. I am in the Umbraco.Web.PropertyEditors dll, but it isn't really helping me too much. Any pointers to get me started in the right direction would be much appreciated. I could then share this as a new package if I can get it working.
Thanks!
I would recommend creating your own property editor that simply uses the Umbraco dialogService to pick the uCommerce product.
You can use the Yo Umbraco template generator to build a scaffolded package:
https://github.com/warrenbuckley/generator-umbraco

Visual Studio "Add Controller" list of model classes

The "Add Controller" dialog on an MVC project provides a dropdown list of model classes to choose from. These are usually the model classes in the project, and that's what I used to see. But now I'm getting this:
Any idea what's wrong and how to change it back to what I believe is the normal way?
I often run into a problem with that dialog box "forgetting" classes and showing odd choices. Closing and restarting VS has always cleared the problem up for me.
It seems there's no solution to this problem. That dialog shows the classes from all the classes in the solution, and that includes any 3rd party classes that were imported (using something like NuGet). Which kind of makes sense. So it's a feature, not a bug.
The workaround to sifting through that whole list is to take advantage of the autocomplete functionality built into that dialog, which makes it quite easy to find the required full class name.

Is the watermarkedtextbox in silverlight 3

I have an old demo project I am trying to dust off to run in Silverlight 3 and it cracks around the "Watermarkedtextbox" element. Anyone know how to get that back, or do I have to come up with another "cool" effect to get the water-mark effect?
It lives and is built in still! But under a different name.
In the System.Windows.Controls assembly actually (in the Silverlight 2 and Silverlight 3 SDKs), in the System.Windows.Controls.Primitives namespace, is the "DatePickerTextBox" class.
This is actually the original WatermarkedTextBox, renamed, since it was only tested for primary use in the DatePicker control for now.
More information on the control is available in the DatePickerTextBox class reference on MSDN.
Tim Heuer blogged about it a while back: Silverlight 2 Watermarked TextBox Control
You can grab the source for the WatermarkedTextBox element from here. You can compile it, and then include the resulting DLL in your project, and it seems to work fine.
The WatermarkedTextBox was removed in Silverlight 2 Beta 2. I believe a similar effect can be achieved using the Background property and an appropriate Brush.

How can one use the "Add view" dialog in Visual Studio efficiently when working with ASP.NET MVC?

Does anyone else think that the add view dialog in VS is useless or is it just me?
Why is there no search/filtering in there? I can not even paste the type name (without namespace) there to speed up the view creation.
Plus, there are a lot of irrelevant classes there, including classes from all referenced libraries.
Am I missing something or Microsoft never did any usability testing with that??
Is it possible to filter out types/assemblies in the dialog and/or better navigation compared to manually scrolling the combobox with all the types listed? Is it possible to include only types from a particular directory/assembly/namespace? (the ViewModels namespace for example)
EDIT: As it seems from the answers that there is no usable workaround for this, I have filed a suggestion at Connect: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=507784
Please vote for the suggestion if you find this is an important issue.
There is search/filter, but it's a "starts with" search. Start typing and the list will be filtered.
You can paste the type name, but you do need the namespace.
No, I don't think you can remove assemblies.
Could it be improved? Sure. Some of your suggestions are good, and you should consider filing Connect reports for them. Is it useless, IMHO, no.
I tried the dialog in VS2010. As of beta 2, it behaves the same as VS2008, AFAICS. So get your suggestions in soon!
I mainly agree with you. While it's not competely useless, tha fact that all the classes from the referenced libraries show up and that it doesn't have a search box make it slow to add a new view. Maybe you could file a wishlist bug report on the ASP.NET MVC site...
As it seems from that there is no usable workaround for this, I have filed a suggestion at Connect.
In case anyone else feels that this dialog should be improved, please vote for the suggestion in Connect.
Resharper 5.0 implements this dialog very efficiently, solving all the described problems.

Resources