﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><pubDate>Fri, 25 Sep 2015 07:36:39 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Arief,&lt;/p&gt;&lt;p&gt;Thank you very much for the sample.&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><pubDate>Tue, 22 Sep 2015 05:36:29 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;br&gt;&lt;br&gt;Sorry i forgot to attach the sample, here is the sample,&amp;nbsp;&lt;a href="https://onedrive.live.com/download?resid=9F657B5249D6BB8D!111&amp;amp;authkey=!AHgtdIMssIavQBQ&amp;amp;ithint=file%2czip" target="_blank"&gt;https://onedrive.live.com/download?resid=9F657B5249D6BB8D!111&amp;amp;authkey=!AHgtdIMssIavQBQ&amp;amp;ithint=file%2czip&lt;/a&gt;&lt;br&gt;&lt;br&gt;I think the problem is because you also need to add code in the view model and binding provider which you can see&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Enable+Custom+Cell+Actions+with+Swipe+Gesture#EnableCustomCellActionswithSwipeGesture-HandlingEditActionCommandinViewModel" target="_blank"&gt;here&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Enable+Custom+Cell+Actions+with+Swipe+Gesture#EnableCustomCellActionswithSwipeGesture-ConfiguringBindinginBindingProvider" target="_blank"&gt;here&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope that will helps!&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><pubDate>Fri, 18 Sep 2015 12:09:31 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Arief,&lt;/p&gt;&lt;p&gt;so far I was not able to realize the localization of the "Delete" button. Please, take your Data Drawer Sample and go to the Single Delete page. Swipe to the left on a row item and see the red "Delete" button. Please, give me a sample how to localize this "Delete" button.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><pubDate>Mon, 15 Jun 2015 09:19:03 GMT</pubDate><dc:creator>Arief</dc:creator><description>&lt;p&gt;Hi Thomas&lt;br&gt;&lt;br&gt;Here is the method that you can use:&lt;br&gt;&lt;br&gt;&lt;strong&gt;To localize the cell action:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;Change your Red Delete Button/cell action&amp;nbsp;into Custom Cell Action, you canread it from this article:&lt;br&gt;&lt;a href="http://developer.intersoftpt.com/display/crosslight/Enable+Custom+Cell+Actions+with+Swipe+Gesture"&gt;http://developer.intersoftpt.com/display/crosslight/Enable+Custom+Cell+Actions+with+Swipe+Gesture&lt;/a&gt;&lt;br&gt;&lt;br&gt;Also if you not yet read/implement about localization please read this article first: &lt;a href="http://developer.intersoftpt.com/display/crosslight/Localizing+Resources"&gt;http://developer.intersoftpt.com/display/crosslight/Localizing+Resources&lt;/a&gt;&lt;br&gt;&lt;br&gt;I'm really recommend you to downloadboth samples (or just take a peek of their code in git)&lt;br&gt;&lt;br&gt;for examples you want to localize your delete, first you type this in your controller:&lt;br&gt;&lt;em&gt;this.EditActions.Add(new UIEditACtion("Delete", true));&lt;/em&gt; &lt;br&gt;&lt;br&gt;then connecting the "Delete" with your Resource like this:&lt;br&gt;&lt;em&gt;this.EditActions.Add(new UIEditACtion(this.ViewModel.Resources.GetString("DeleteText"),true));&lt;/em&gt;&lt;br&gt;&lt;br&gt;This way your Edit action already localized.&lt;br&gt;&lt;br&gt;&lt;strong&gt;To mark some items as undeletable&lt;/strong&gt;, &lt;br&gt;&lt;br&gt;i'm suggesting to create new properties inside your table/model for example bool IsDeletable.&lt;br&gt;&lt;br&gt;If you see the ios-swipe-gesture samples inside ItemListViewModel.cs, you can Handle all of it inside this:&lt;br&gt;&lt;br&gt;&lt;em&gt; protected override bool CanExecuteEditAction(object parameter)&lt;br&gt; {&lt;br&gt; var editParameter = parameter as EditingParameter;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt; // Write interaction code here to conditionally disable an action&lt;br&gt; /*if (editParameter.CustomAction == "More" &amp;amp;&amp;amp; this.Item.IsCompleted)&lt;br&gt; return false;*/&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt; return true;&lt;br&gt; }&lt;/em&gt;&lt;br&gt;&lt;br&gt;parameter actually also return items so you can done this:&lt;br&gt;&lt;br&gt;&lt;em&gt;if(((Item)parameter).IsDeletable = false){&lt;br&gt;return false&lt;br&gt;}&lt;/em&gt;&lt;br&gt;&lt;br&gt;Hope this will help you!&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>Crosslight iOS List Single Delete</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Crosslight-iOS-List-Single-Delete/</link><pubDate>Thu, 11 Jun 2015 07:36:27 GMT</pubDate><dc:creator>thomas.albert@tea-net.ch</dc:creator><description>&lt;p&gt;Hello Crosslight Support,&lt;/p&gt;&lt;p&gt;I am using the lastest version of Crosslight and I am on iOS. I have a list of items and when I edit this list, I see the red delete circle with a minus inside on the left side of each list item. So far so good.&lt;/p&gt;&lt;p&gt;When I now click on one of the red circles, the cell moves to the left and on the right side a red "Delete" button appears. How can I change the title of this button, how can I localize the "Delete" text?&lt;/p&gt;&lt;p&gt;Additionally, is it possible to mark some list items as undeletable?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Thomas&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>