Hi,
I am using the sample from Elena to have drag & drop functionality in my XamDataGrid:
http://community.infragistics.com/forums/t/68238.aspx
Problem is, I still have a few issues which you maybe can help me with:
Any ideas or suggestions?
Thanks a lot for helping!
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you, where the issues you mentioned no longer occurs. If you want to make a Field not editable you can set its EditorStyle Property to Style for the Editor that is used, and in the Style you can set the IsReadOnly Property to True.
Feel free to write me if you have further questions.
Hello Stefan,
unfortuatlely your sample is not really what I was looking for or it is just not working within my code. Importing your code to my project the drag & drop is not working anymore. I am able to hide field using the fieldchooser, but starting the program the first time, fields which are set to Visibility="Collapsed" are visible, although this is working with your sample project.
I don't know what I am doing wrong, but it is not working.
Thanks!
If you could send me your sample, where the issue is reproduced, I will be able to investigate this further for you.
Hi Stefan,
please have a look at my sample which shows the same problem I'm having: Columns which are set to "Collapsed" are visible.
Thanks for your help!
Hello Gawain,
I have modified the sample you sent me, so now it works as you want. Basically I changed the Names of some of the Fields, because they should be the same as the Data object Properties. Here it is explained in details how the FieldLayout’s Mapping works:
http://ko.infragistics.com/community/blogs/petar_monov/archive/2011/05/13/how-to-define-fieldlayouts-how-fieldlyouts-are-mapped.aspx
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks for the suggestion. Will be trying it out.. In Case I have an issue will let you know.
Thanks again for all the support thus far.. :)
Sue
Hello Sue,
I have been looking into your sample and I can suggest you move the Style for the DataREcordPresenter in the XamDataGrid's Resources in order to be able to use it along with the IGTheme. Here you can find more information about using Styles and Themes:
http://ko.infragistics.com/community/blogs/andrew_smith/archive/2009/12/09/common-style-issues-when-using-the-theme-property.aspx
I did try the Drag and drop on the Dynamic Columns in my Project and it worked. But in the process I noticed a bug in the themes. When the theme is added to the XamDataGrid - the drag and drop will not work.
Attached is a sample showing the issue (the original project that you had in this forum has been updated with the Theme) Any help in this will be great..
Look forward to hearing from you.
Thanks,
This was a limitation in our old versions, but since version 12.1 the Add new Row functionality works with any kind of collections.
Thanks for your response.. Yes, The columns are generated automatically. I have an observable collection for rows and each row have the collection of Columns(generated depending on some conditions..) For a particular execution, the number of columns generated is based on certain conditions.. Will try out the above example.. Thanks
I also read in one of the forum, that the "Add new Row" feature in the XamDataGrid works only for BindingLists - is this true?? Will it not work for Observable collections??