Questions tagged [cancel-button]

A cancel button is a UI construct that usually takes the form of a normal button with the word "cancel" written on it. When clicked, it undoes or stops a specific action.

Use this tag for questions related to making or using cancel buttons on applications.

163 questions
51
votes
22 answers

How to enable cancel button with UISearchBar?

In the contacts app on the iPhone if you enter a search term, then tap the "Search" button, the keyboard is hidden, BUT the cancel button is still enabled. In my app the cancel button gets disabled when I call resignFirstResponder. Anyone know how…
Christopher
  • 5,806
  • 7
  • 31
  • 41
37
votes
11 answers

UISearchBar disable auto disable of cancel button

I have implemented a UISearchBar into a table view and almost everything is working except one small thing: When I enter text and then press the search button on the keyboard, the keyboard goes away, the search results are the only items shown in…
rplankenhorn
  • 2,075
  • 2
  • 22
  • 32
27
votes
5 answers

UIAlertView: Where the cancel button should be?

The alert views in iOS system: Install App OTA: the cancel button is on the LEFT. Delete an App: the cancel button is on the RIGHT. Where the cancel button should be?
Míng
  • 2,500
  • 6
  • 32
  • 48
24
votes
3 answers

Cancel Button in UISearchController

In my project I'm using a UITableViewController with an internal UISearchController to filter the data in my tableView. I have no problem to filter the data but I need to make a date of my tableView reload when I click on the CANCEL button…
kAiN
  • 2,559
  • 1
  • 26
  • 54
17
votes
3 answers

How to implement a Stop/Cancel button?

I have a method processData() that takes a large amount of data and does some work on it. There's a start button that initiates the processing. I need a cancel button that stops the processing wherever it's at. How can I implement something like…
Jack
  • 5,680
  • 10
  • 49
  • 74
16
votes
9 answers

Cancel button in form

I have a cancel button in a form: @using (Html.BeginForm("ConfirmBid","Auction")) { some stuff ...
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
14
votes
6 answers

MFMailComposeViewController's Cancel Button (action sheet possibly) freezes the view

I've seen several questions before such as this but for the lack of an accepted answer as well as having implemented everything as needed I still continue to face the issue as follows: I display the mail composer but on clicking cancel, the composer…
13
votes
3 answers

ios UIActionSheet cancel button doesn't work right

I have this problem: here is my code: UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Share the race" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Send with mail" otherButtonTitles:nil]; …
ghiboz
  • 7,863
  • 21
  • 85
  • 131
12
votes
4 answers

iOS - Customizing Cancel button of UISearchBar

In my iOS5 iPhone application, i'm setting the tint color of search bar using following code: searchBar.tintColor = UIColorMake(@"#EFEFEF"); RGB value of #efefef is (239,239,239) Its working fine. But when cancel button appears the text "Cancel"…
Satyam
  • 15,493
  • 31
  • 131
  • 244
11
votes
4 answers

How to create a Cancel button in Bootstrap

I have the following Bootstrap markup:
H. Ferrence
  • 7,906
  • 31
  • 98
  • 161
10
votes
1 answer

how to bypass required field validation when clicking the cancel button?

I've used HTML input type for my textboxes to utilize the required attribute. now my dilemma is i cannot go out of the page without filling-up the fields with required attributes. Ive tried using causeValidation set to false but its not working. i…
sd4ksb
  • 241
  • 1
  • 4
  • 16
9
votes
2 answers

How to implement the cancel button for edit functionality in angularjs

i have used edit button. after editing i have save and cancel button .save button is working as i expected but not the cancel button. if i click the cancel button after trying to edit, it should show the previous text. can anyone please help…
Thilak Raj
  • 880
  • 3
  • 10
  • 25
9
votes
3 answers

JavaFX - how to know if cancel was pressed

How can I know if the OK or the Cancel Button was pressed in this JavaFX dialog. The Dialog Code: public String delimiter; public void delimiterYES() throws IOException { delimiter=new String(); TextInputDialog dialog = new…
ALSTRA
  • 661
  • 3
  • 12
  • 30
8
votes
1 answer

Implement custom Cancel Button in a SDK

I want to implement payment functionality with paysbuy SDK....The problem is it doesnot have any cancel option on it so that user can cancel the operation of close after the payment has been successful. By default SDK provides a method that opens…
user4790024
7
votes
5 answers

Cancel the update in inline kendo grid delete the row

I am using two kendo inline grid parent and child. child grid contains the list of products,when user select the products(multiple selection) from child grid and clicked to save button,it's inserted into an parent grid. Child grid: var selectedIds =…
1
2 3
10 11