This question is locked. New answers and comments are not allowed.
We are evaluating your controls, and before I try to explain a specific scenario, I ask you to update your documentation, which you have said to do in one of the topics here on the forum, but you still didnt. Its not a pleasent feeling to invest some time in RadDragAndDropManager, and then find out that it is obsoleted by DragDropManager. RadDragAndDropManager would always be a first choice, since its name starts with Rad.
We want to implement a specific scenario, where we would like implement grouping scenario between two RadGridView's. Imagine that there is a gridA which contains only one column, and gridB which contains 5 columns. To my knowledge, depending on where you set AlloDrag property in RadGridView, it will determine the position of Drag information (drag tooltip).
- if you set AllowDrag on GridView level, this tooltip will always be shown somewhere in the header area of GridView. I am not sure how usefull is that featue.
- if you set AllowDrag property on RowStyle, then when you drag, visually tou always drag whole row, even if you are setting the content to one cell value only. This means that if I click somewhere in the middle of the row (column index = 2), then I am dragging a pretty big row (visually looking) to a small cell in GridA (think of it that I am grouping something). This doesn't provide a good user experience.
- so this leads that I would need to imelement drag on a cell level, but I am not sure how to do this? I Could not find property CellStyle or something similar.
Questions:
1. I am not copying row data from one GridView to another, I am dragging an item in order to regroup it (which would require one (group) property to be updated on GridB entity. What is the best way to do this?
2. How do I set visual drag image to be the same as cell image? This means that I would want always to show in drag image cell with column index=0 (or 1), no matter if I click to start dragging over cell with column index=0, or 1,2,3,4..... This way I can be sure that if I switch the theme, I am always going to use the template from current theme. And I want my image to be right next to my mouse, not like if I am dragging whole row, then my mouse cursor is somewhere on the row middle.
3. What is the best way to highlight the cell/row in destination GridView? I see that DragEventArgs offer GetPosition() method, which could provide relative coordinates in destionation grid. There is also an example with RowLoaded event. What;s the best way to allow me to use cell selected color scheme from theme for the cell I am currenlty over, and row hover color scheme from the theme also? (in this example Cell = Row, but I could have 2-3 columns in destination gridview.
I hope that I didn't complicate my explanation, if I did, I will be glad to explain better.
Thanks,
Goran
We want to implement a specific scenario, where we would like implement grouping scenario between two RadGridView's. Imagine that there is a gridA which contains only one column, and gridB which contains 5 columns. To my knowledge, depending on where you set AlloDrag property in RadGridView, it will determine the position of Drag information (drag tooltip).
- if you set AllowDrag on GridView level, this tooltip will always be shown somewhere in the header area of GridView. I am not sure how usefull is that featue.
- if you set AllowDrag property on RowStyle, then when you drag, visually tou always drag whole row, even if you are setting the content to one cell value only. This means that if I click somewhere in the middle of the row (column index = 2), then I am dragging a pretty big row (visually looking) to a small cell in GridA (think of it that I am grouping something). This doesn't provide a good user experience.
- so this leads that I would need to imelement drag on a cell level, but I am not sure how to do this? I Could not find property CellStyle or something similar.
Questions:
1. I am not copying row data from one GridView to another, I am dragging an item in order to regroup it (which would require one (group) property to be updated on GridB entity. What is the best way to do this?
2. How do I set visual drag image to be the same as cell image? This means that I would want always to show in drag image cell with column index=0 (or 1), no matter if I click to start dragging over cell with column index=0, or 1,2,3,4..... This way I can be sure that if I switch the theme, I am always going to use the template from current theme. And I want my image to be right next to my mouse, not like if I am dragging whole row, then my mouse cursor is somewhere on the row middle.
3. What is the best way to highlight the cell/row in destination GridView? I see that DragEventArgs offer GetPosition() method, which could provide relative coordinates in destionation grid. There is also an example with RowLoaded event. What;s the best way to allow me to use cell selected color scheme from theme for the cell I am currenlty over, and row hover color scheme from the theme also? (in this example Cell = Row, but I could have 2-3 columns in destination gridview.
I hope that I didn't complicate my explanation, if I did, I will be glad to explain better.
Thanks,
Goran