Do you have any examples (in C#) of placing charts inside a grid? I was thinking of using a single row dsh grid and placing different pre determined charts inside the cells , but I was wondering if it's better to use a grid for this purpose or flow layout. In your samples app that shows samples of Charts, grids etc, there is a row on top of the Chart samples that scrolls and when you touch one of the cells it opens that chart. Are those images or actual charts that are being used? and is that a single row dsh or a single row flow layout.
Thanks
Kathy
Hello Kathy,
I actually wrote a blog article how to create a custom column and in it used the sparkline chart as the body. That article can be found here : http://ko.infragistics.com/community/blogs/baldnbearded/archive/2014/02/27/creating-a-custom-column-for-the-iggridview-objectivec.aspx
I took the sample and updated it to the current Xamarin way of doing things and attached it to this post.
If I am understanding what part of the sample browser you are talking about, those are images and a grid.
Did the sample show the process you needed?
One of our other developers mentioned that he converted this sample before. The original sample and discussion can be found here:
http://ko.infragistics.com/community/forums/p/84491/423554.aspx#423554
Since that was written in 2013, Xamarin has under gone a few changes, so I updated the sample, and that is attached to this.
thanks for all the code it was helpful. I took your example you gave made placing charts in a grid and modified it to fit what I'm doing.
Now i am trying to get the cell reordering sample to work in C#. I'm trying to get it to work with the chart column, but cannot even get the column to display. Then I tried it with image columns in C#(like in the objectiveC sample) and could not get that either. I'd like to have a sample of cell reordering in C#. what I'm trying to do is put different charts inside a grid and be able to reorder the single cells.
Appreciate any help you can give.
I modified the sparkling column sample to :
1) Use a single field multiple column datasource;
2) Enabled the datasource helper's AllowCellReordering to true
3) In the cell, disabled the chart's screen interaction by setting UserInteratcionEnabled = false. Since you want the grid to get the interaction not the lower chart object.
When running this I am able to move the sparkline charts around.
Hello Darrell,
Thanks very much that it exactly what I wanted to do. One problem with it though, seems like the cells move but then the grid reverts back to it being in the original position. There must be some other setting that needs to be released. It's almost like the grid is automatically reloading after the cell is in the new position.
Any idea of how to fix this?
Thank you
If you are talking about the sample, it's not resetting the data, it's changing the chart type depending on an index value. Attached is the same sample except I added a red label to each cell so you can see which line of data is being shown.
Sure I can convert that class over for you.
See attached.
Thank you, understood. I would like to have the FlipBoard sample translated into C#. I've done most of it myself, but am stumped on how to translate the init method in the GridCellLocation7CarouselCell. So, if I could get the GridCellLocation7CarouselCell translated that would be great!
Thanks again for you explanations and help