I want when click on edit mode , the action when select a cell be differ , I mean
in normal case when select a cell it be checked (accessory of checking appear)
in edit case an accessory of type button appear when click I navigate to another screen
any suggestion to do that
I have only selectedrowatindex , and commitedit
how to implement that please
like in the image if I clicked edit , the button appear and if I clicked the row (pacs for example I can edit it ) or select the normal delete button
I mean how selectedrowatindex I know either I am in edit mode or not , and how to add accessory to the cell that in edit mode
Look at my solution in
Customizing self.editButtonItem with Check and UnCheck- HELP
Related
I am searching for a solution to how I can start an ag-grid table with only cell editors. That means I do not want to click into the row or cell to edit the data.
I have found almost a solution for me with this example in the doc:
Full row editing
This is exactly what I am searching for. I can programmatically start editing immediately. The problem with that example is that onCellValueChanged is only fired after the keyboard click "enter" or click on the next row.
I would need a solution where onCellValueChanged is fired immediately after a cell changed.
I can think of two ideas to accomplish this:
Use "No Click Editing"
This is similar to having all cells contain an input box. It just takes 1 click to focus.
https://www.ag-grid.com/javascript-grid-cell-editing/#no-click-editing
Custom cell renderer
Use a custom cell renderer to have input boxes in each cell. Then, you are always in edit mode. And you can control when the value is saved.
https://www.ag-grid.com/javascript-grid-cell-rendering-components/
i am trying to follow class Rendereing_a_cell_as_a_button
https://github.com/eclipse/nebula.widgets.nattable/blob/master/org.eclipse.nebula.widgets.nattable.examples/src/org/eclipse/nebula/widgets/nattable/examples/examples/_102_Configuration/Rendering_cells_as_a_link_and_button.java
from Nattable example to create similar button , i have copied same example code.
Button is showing on the desired column, but on click the style is not getting change of button like clicked and also listener is not getting called, it is going to edit mode and showing the content of cell.
Before Click
After click
If your table also supports editing you need to ensure that cells in the column that shows buttons should be not editable. This can be done by registering an IEditableRule#NEVER_EDITABLE for that column.
Hi I Have 3 tabs in one sceen..
first tab:some edittext fields with some data in disable mode.initially only one button will be there ie "edit",when u click "edit" then fields will change to editable mode.and "save","cancel" buttons will come.
My Requirment:if we change data in edittext fields and if u are trying to change tab I should display an alert box saying that "do u want to save data?"
can any one tell how can i achive this?
thanks in advance
Just implement OnTabChangeListner in main activity and in this check whether edit text is in editable mode.u can check it by using a flag. set flag when user press on edit button. if flag is true then show alert.
I create a UITableView and show it on Edit mode, In edit mode a (-) sign was showing on left side of each row, when pressing this button a Delete button come's from the right side and by pressing this delete button the row was deleted.
I want to remove (-) button from left side and I want to show delete button always on the right side.
In short I want a delete button on right side which delete my row just like we delete row in edit mode. But do not want the (-) button on left side.
AFAIK,this can only be achieved through a custom UITableViewCell and it is also easy.
Here is a link from the cocoa with love site and
Here is one from icodeblog
Hope this helps.
When I set up a custom button in Interface Builder it hides the Title text.
Do you have to create the text for the button too or is it possible to change the Z order so that the Title appears on top?
You are probably setting the 'Image' property of your button instead of the 'Background' property.
'Image' appears over your text, so either programmatically or in NIB(way simpler), set the 'Background' image to your desired png, and set the text for the desired button 'State Config'(default, selected etc), Leaving the 'Image' property blank.
The title by default appears on the top and in no case the text goes behind the button...
Still follow the below steps
1. Drag uibutton to the view
2. Select UIButton
3. Click on the first tab of the Inspector
4. Then Enter the title over there.
The title entered will be on the button..
Hope this helps
For a custom button, I fixed the same problem by going in interface builder and in the tab where you can set up hte title, image, background, etc., if you look lower, there will be a section titled "Control". In that section you can change the alignment and there are also some checkboxes for "Content". Put a checkmark in "Enabled" and "Selected" and it should work. Ensure to have populated the title for the various states of the button.
It may be related to the State Config attribute. I had the same problem and solved it by doing this:
Select your button
In the utilities pane (right pane), select the Attribute inspector (4th tab).
Change the State Config (2nd attribute) to the value "Default".
Enter a Title and press Enter (I tried changing it directly on the button but it is resized automatically).
You may switch back to your previous State Config if it is what you need.