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.

Getting item reference after when generated from datatemplate

Thread ID:

Created:

Updated:

Platform:

Replies:

117789 Dec 15,2014 03:31 AM Dec 16,2014 04:20 AM WinRT 1
loading
Tags: SfTileView
suresh shil
Asked On December 15, 2014 03:31 AM

I have tried the SampleBrowser project in samples folder which we get after syncfusionessentialwinrt msi  package installation. I see the items in SfTileView are generated via data template defined  in location "C:\\~\AppData\Local\Syncfusion\EssentialStudio\12.3.0.36\Universal\SampleBrowser\SampleBrowser\SampleBrowser.Shared\TileView\View". Whenever   I click on item I want to suppress the default behaviour that is after clicking the item I want to suppress the maximize behaviour and  redirect to other page . I was able to do so by  attaching StateChanged event handler and  redirect to other page in my project according to tag of the clicked item. Previously I added items from Code behind file and was able to bind Tapped event handler and StateChanged event handler and was successfully able to redirect to other page instead of item getting maximized.  Now when I generate items via DataTemplate I am not getting the items .  I want to get the reference for each item and bind them to StateChanged event handler and  Tapped event handler to redirect to other page (write my custom logic ).  I am not being able to do so. Is there any built in feature provided in the product to achieve this requirement . Can   i get any help from your side ? I am hoping for q

Bharadhi K [Syncfusion]
Replied On December 16, 2014 04:20 AM

Hi Suresh,

Thank you for using Syncfusion products.

Query: when I generate items via DataTemplate I am not getting the items .

We have prepared a sample in which we have tried to meet your requirements. In our sample we have generated the SfTileViewItems through a DataTemplate and have binded a property "TestCommand" to the Command property of the SfHubTile in the DataTemplate. Using this property we can get an object of the SfTileViewItem as a parameter. Please find the sample in the following link.

Please let us know if you required any further assistance on this.

Regards,
Bharadhi K


Attachment: SfTileview_133108_9e07c5ed.zip

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.

;