submit event is not firing when editing a cell in ui-grid - angular-ui-grid

I have a UI with a Save button on the top and with Grid columns setted to cellEditOnFocus : true, when I'm editing a cell and I have to do a scroll to the top to click the Save button it doesn't get called. I have to do another click, I also observe that the Scroll of the page goes back to the position of the row I was editing.
If I don't have to scroll the Save function works on the first click.
How can I avoid this behavior?

Related

Ranorex: button.Click() does not work as expected

I'm using Ranorex (v10.1.6) for a Desktop Application written mostly in C#. On a Form there is a table with rows and cells. When clicking on a date cell, it should reveal a button to open the calendar. Therefore I require first a click on the table cell which should make the calendar button visible, after which I then can click the calendar button.
Problem: The click() event does not make the button visible. It seems that the click event does for a fraction of a second make the calendar button visible, but then it disappears again.
It seems that the click event does after the click something different which hides the calendar button again. I also tried to accomplish the same with the Mouse Click, and Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left) followed by Mouse.ButtonUp(System.Windows.Forms.MouseButtons.Left), but this didn't work either.
Anything else I could try to get this to work?

Vaadin flow grid prevent itemClickListener() to fire on click on buttons in ComponentColumns

With vaadin 23.1.x you can set a itemClickHandler when a user click on a item/row in the grid with myGrid.addItemClickListener(..)
This works fine.
But if you have a component column, with a button in it, then the ClickEvent of the Button is fired and also the itemClickListener of the grid row.
Is there a way to prevent the button click from also triggering the itemClickListener?
You must use this method to add the listener them you can
myGrid.getElement().addEventListener("item-click",
event -> ...)
.addEventData("event.stopPropagation()");
I'm not 100% sure if the even is item-click or just click.

dropdown list "curtain" is somehow measured to only appear at the top of the screen

I am using this code: click here that "simulates" a dropdown menu as it works in html code.
I have programatically added the UITextField to my navigationItem using:
[self.navigationItem setTitleView:myUITextField];
My view is a UITableView and my controller therefore inherits from UITableViewController.
I have filled the table view with a number of rows of data. I have also set up the dropdown to act on a click in my "myUITextField" and the dropdownlist appears correctly when the textField is clicked.
My problem is that if I scroll down in my list of rows on the screen and then click again on my textField then I can only see the bottom of the "dropdown" - so the dropdown list "curtain" is somehow measured to only appear at the top of the screen.
How can I fix this ? I reckon I need to fix the source code here to get it fixed.

tab key event in ListGrid cell

thing is that i want to catch the tab key event when editing a cell. not every cell is editable, that is for certain record in grid, some cells are editable while others not. when editing with single/double click, i can control the cell edit-ability in recordClickhander(), but when click tab key, it will be out of control coz i don't see any event handler to catch for tab key. so does anyone know how to disable tab key or catch tab key pressed key event when editing in cell? thanks .
Grid do have keyDownHandler/keyPresshandler, but it's only for grid level, not for cell when editing.

UITableView Editable Cell 'De-Selection'

My application has a UITableView which is editable to be able to delete items. When a user taps the red circle on the left of the cell it reveals a red 'Delete' button. When that 'Delete' button is tapped I am displaying a custom confirmation dialog. If the confirmation is true then deletion proceeds normally. If it is false I want to automatically go back to the state before the red circle was tapped. I have tried setEditing: but it removes the circle completely. The other two methods are setSelected: and setHighlighted:. They don't make any change. Is there a way to do this?

Resources