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?
I went through your sample and created one of my own using a different chart type and was able to gain an understanding of how to do what you did. However what I am trying to do is create an app that will page through or scroll through different charts and grids. I though I could use a grid and place different charts or grids inside of it. I tried using the singleRowSingleField DataSourcehelper, but doing it that was I could pass in data for only one type of chart unless I create a dataStructure that could contain data for all different types of objects. In this case I think I would have to write my own DataSource (and not use a helper) because internally in the datasource I'd need to know which chart type or grid to attach to the data. It was why I asked in my original post if it would be better to use FLowLayout instead of a grid, since instead of putting the same type of object in each cell, I want to put different types of objects.
Basically what I'm trying to produce is something like the sample shown in the GridSamples in the Infragistics app--the one on the top line showing the Golden Gate Bridge. Instead of having images I want to put different charts or grids in the cells (based on preselected choices) Or have something like the Stacked Paging sample or Flipboard (again not with images but with preselected different charts and/or grids).
if you could suggest a basic approach to achieve this and perhaps point me in the direction of some C# samples with the basics that would be great.
If each row of data is to be represented by a different chart type or a grid, then you can control that by having your custom column tell what kind of Cell to create, or just have the cell us a different UI inside. The attached sample shows a chart being told to use 2 different series.
Sure I can convert that class over for you.
See attached.
Hello Darrell,
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
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.
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
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.