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.

How can i find out which tile is clicked

Thread ID:

Created:

Updated:

Platform:

Replies:

120779 Oct 14,2015 07:50 AM Oct 19,2015 03:34 AM ASP.NET MVC 3
loading
Tags: Tile
Andrew Simpson
Asked On October 14, 2015 07:50 AM

Here is my view how can i find out which tile has been clicked.

i would like to post back the T.Tilename of the tile that was clicked in the function below, which i think is the tile id
i cant find anything on clientsideevents for mvc tile on your website
thanks
andrew

@model List<JobObjects.MyTile>

    <div class="group">
   @foreach (JobObjects.MyTile T in @Model)
   {
    @Html.EJ().Tile(T.TileName ).ImagePosition(TileImagePosition.Center ).TileSize(TileSize.Medium).ImageUrl(T.ImageURL).Text(T.Text).ClientSideEvents(evt => evt.mouseUp ("TileClick"))
   }
            
    </div>

<script>

        function TileClick(args) {
            var Tile = this.id  ;
            var t = args.id;
            alert(t);
             alert(Tile);

        }
</script>

Selvamani Sankarappan [Syncfusion]
Replied On October 15, 2015 08:24 AM

Hi Andrew,

Thanks for Contacting Syncfusion Support,

We have analyzed your code and we can get the id of tile view using this._id. And also this refers to the tile of the object. Please refer the below code example:

[script]


function tileClick(args) {

        var Tile = this._id;

        alert("hi");

        alert(Tile);


  }


And also we have prepared the simple sample based on your requirement. Please get the sample from below location:

http://www.syncfusion.com/downloads/support/forum/120779/ze/Tile1647567049

Our EJMVC components are created as wrapper for the JavaScript components. So the API, and events will be the same in both JS and EJMVC components. You can refer the following API reference section present in our online JS help document to know about the list of API’s, methods and events supported by each components.

http://help.syncfusion.com/js/api/ejtile

Regards,

Selvamani S



Andrew Simpson
Replied On October 16, 2015 05:48 AM

Thank you for your help. My code is working now.

andrew

Selvamani Sankarappan [Syncfusion]
Replied On October 19, 2015 03:34 AM

Hi Andrew,

Thanks for the update,

Please let us know, if you have further queries.

Regards,

Selvamani S


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.

;