I need activeItem for columnlayout as it's for xamgrid to modify a column in other popup,So i need an active item to get this value.What Shall i do?
Thanks
Hello,
Thank you for your post. I have been looking into it and I suggest you set the XamGrid’s SelectionSettings’ ColumnSelection to “Single” and you can use the XamGrid’s SelectionSettings’ SelectedColumns’ FirstOrDefault method to get the selected column. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
in reality ,i need the selected object of the columnlayout to modify just a colmn in it ,but by a popup .Thanks
I'm working with MVVM .So i need the selected object in this Columnlayout to modify it;not by editing in the xamgrid directly
Hi Mesnel,
We also need the "ActiveItem for ColumnLayout" feature.
We understand it is not easy as object type can be different for each level.
Anyway, we used this workaround :
Code example :
public PageConstructor(){ this.DataContext = new MyViewModel(); this.MyXamGrid.SelectedRowsCollectionChanged += new EventHandler<SelectionCollectionChangedEventArgs<SelectedRowsCollection>>(MyXamGrid_SelectedRowsCollectionChanged); } void MyXamGrid_SelectedRowsCollectionChanged(object sender, SelectionCollectionChangedEventArgs<SelectedRowsCollection> e){ if(e.NewSelectedItems.Count > 0) ((MyViewModel)this.DataContext).SelectedElement = (MyElementType)((RowBase)(e.NewSelectedItems[0])).Data; else ((MyViewModel)this.DataContext).SelectedElement = null;}
Look likes the event is firered after everything else, so we can, at the end, update "SelectedElement".
Hope this will help you.
Alain.
After some research ActiveItem for ColumnLayout has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12050016
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com