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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Listbox - Item Actionlink

Thread ID:





108793 May 13,2013 02:05 PM UTC May 14,2013 06:54 AM UTC Mobile MVC(Classic) 2
Tags: Tools
Frank Wachsmuth
Asked On May 13, 2013 02:05 PM UTC

It is possible to create an actionlink for an item in a databound Listbox? I use the following code:

         .BindDataSource(Model, map =>
             map.MapTo<ILDispo2.Entities.ildispo_FahrAufträge>(binding =>
                 binding.ItemDataBound((item, nd) =>
                     item.Text = nd.FahrAuftragNr;
                     item.PrimaryKeyValue = nd.FahrAuftragNr;    
                     //ActionLink ???              

Frank Wachsmuth
Replied On May 13, 2013 07:05 PM UTC

i want to create a separate actionlink for each item in the listbox. Is this possible?

Thivya [Syncfusion]
Replied On May 14, 2013 06:54 AM UTC

Hi Frank,

Thanks for using our Syncfusion Mobile product.

Yes, it’s possible to provide actionlink in each list items using ‘Html’ property. In which you can render the Actionlink control with client sire rendering. Please refer the below code snippets.


@Html.MobSyncfusion().ListBox("Incidents").RenderMode(RenderMode.Auto).IOS(c => c.ShowCorners(false)).BindDataSource(Model, map =>
    map.MapTo<MobileMVCWeb.Controllers.Products>(binding =>
        binding.ItemDataBound((item, nd) =>
            item.PrimaryKeyValue = nd.PrimaryKey;
            item.Html = nd.Title +
"<br/>" + "<a rel='nofollow' href='Home/Views' data-role='sf-m-actionlink' type='button'>Link</a>";

Also we have created sample for the same, you can find the sample in below attachment.


Please try this sample and let us know if it helps out.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon