We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Dynamic data structuring with sfDataGrid on android

Thread ID:

Created:

Updated:

Platform:

Replies:

121617 Jan 7,2016 04:08 PM Jan 12,2016 10:05 AM Xamarin.Android 4
loading
Tags: SfDataGrid
Guillaume Levasseur
Asked On January 7, 2016 04:08 PM

I am currently evaluating the sfDataGrid control on Android and one of our requirement is that the data structure that we want to display is not known in advance. 

The number of columns (and their caption) is only known at runtime (they come from a server). We don't have a known set of columns variations that could be reflected in a known set of data models...
I tried to use dynamic object like with that WPF  example, and it does not work : http://www.syncfusion.com/blogs/post/Reshape-your-Data.aspx

Is there a way to achieve that with the Xamarin.Android DataGrid?

Thanks,
Guillaume


Prasanth Karthikeyan [Syncfusion]
Replied On January 9, 2016 06:19 AM

Hi Guillaume,

We tried to use dynamic object like the WPF example in the below link as mentioned by you and it works fine from our side.

http://www.syncfusion.com/blogs/post/Reshape-your-Data.aspx 

We have attached the sample in which we tried for your reference and you can download the same from the below location.

Sample link: http://www.syncfusion.com/downloads/support/forum/121617/ze/SampleDemo-1914895060 

In case if the above sample does not meet your expectation, please revert us with the modified sample reproducing the issue so that we can work towards fulfilling your requirement.

Regards,
Prasanth


Yves Tessier
Replied On January 11, 2016 02:05 PM

Hi Prasanth,

Thanks for your quick answer. 
I am working with Guillaume on this. I just tried the demo code you posted (without any modification other than updating the references to the syncfusion libraries (version 13.3451.0.7), and unfortunately it doesn't work, as you can see on the screenshot.. I suspect there is something with the version of either visual studio, Xamarin or Android that mess things up so I am giving you more details on our setup:
Visual studio Ultimate 2013 Version 12.0.31101.00 Update 4 (visual C# 2013) , NET framework 4.5.51650, Xamarin 4.0.0.1717, Xamarin Android 6.0.0.35. I tried to run the code on a Samsung Galaxy S5 with Android 5.1.1. If you need more details to track down our problem let us know.


Attachment: Screenshot_20160111134024_9ba8969b.zip

Guillaume Levasseur
Replied On January 11, 2016 03:31 PM

Hi Prasanth, 

After trying your sample on three different computers, we realized why it was not working. 

The sample is not working with this version of the Syncfusion dlls: 13.3451.0.7 (available for trial)

it is working with this version: 13.3451.0.18 (community license)

Are you planning to update the dlls available for trial purpose? It would be a good if they are not the latest. 

In the meanwhile, we'll continue evaluating the grid with the community license dlls.

Prasanth Karthikeyan [Syncfusion]
Replied On January 12, 2016 10:05 AM

Hi Guillaume,

Dynamic Binding support in SfDataGrid was provided from our service pack (13.3451.0.18) only and that is why it was not working for you when trying with 13.3451.0.7 dlls. In order to resolve your problem with dynamic object binding, we suggest you to use our latest version of dlls.

Regarding your query “Are you planning to update the dlls available for trial purpose?”, Our last service pack release is available for download under the following link.

http://www.syncfusion.com/forums/121314/essential-studio-2015-volume-3-service-pack-2-release-v13-3-0-18-available-for-download 

Regards,
Prasanth

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;