I am having issues with the Combo box/Simple Combo box trigger field not loading store data on first trigger click in IE-8.Needs a second click to populate the drop down list. Firefox doesn't have this problem and works as desired(loads data on first click). Anyone aware of this issue or how resolve it?
SimpleComboBox<String> stateComboBox = new SimpleComboBox<String>()
stateComboBox.setEmptyText("Select");
stateComboBox.setTypeAhead(true);
stateComboBox.setId("state");
stateComboBox.setItemId("state");
stateComboBox.setForceSelection(true);
stateComboBox.setWidth(65);
stateComboBox.setAllowBlank(false);
stateComboBox.setTriggerAction(TriggerAction.ALL);
stateComboBox.setQueryDelay(0);
Related
I use AgGrid Enterprise, and allow users to edit an entire row so all cells switch to edit mode.
I also have an event listener to save the row in database when the user put the focus on a new line or outside the grid.
In the first column of my grid, i have a custom cell displaying a combo.
When the user select a value, it should update the cell AND 3 other cells in the row.
So i use the API to refresh the 3 cells.
Doing so put the cell in view mode, i loose the edit mode and the save event is triggered.
Is there a way in edit mode, to update cell content without loosing the edit mode ??
Thanks a lot.
You said your are try to entire row and and also have custom cell with combo
but ag-grid does not work any popup editor with full row edit.
You have to remove ag-grid property editType: 'fullRow' and it will work.
https://www.ag-grid.com/javascript-grid-cell-editing/#gsc.tab=0
I'm new to Visual Basic, I have scoured the net to look for the event handler for the combo box click event but I cannot locate it. I am trying to make an event happens if a certain index is selected with the combo box1 then another combo box2 will populate the selected the index.
i have looked at links like these but it does not explain how or what the person did to access the _ click event VB6 Combo box events
In the code window for the form, select the desired control from the left drop down, then the event you want from the list of all events in the right drop down:
It will create the procedure for you and make it the active one. This is the same as VB.NET assuming you have the selectors on.
I haven't been using VB6 for ages, but i think what you need is covered here: http://www.vb6.us/tutorials/visual-basic-combo-box-tutorial
I cannot recall having to do anything special when using click events in VB6 at all.
In the first combobox click event, you should be able to have an if statement checking if a certain item is selected using .ListIndex and if so, populate the other.
I have a combo box(with remote store) which needs to be loaded based on two other combo box selected values. So i kept the remote store autoLoad to false. and as soon as second combo value is selected i am loading this combo store.
Till this point it worked well for me.
But my client request is: When the combo box drop down is clicked, it has to reload the remote store based on other two combo values. So i have tried expand event to load the store whenever the combo box is expanded. After the store is loaded successfully, the expanded combo is loosing the selection and it is not allowing to select any value. I mean when user clicks the drop down it is loosing the focus and dropdown is collapsing automatically. I am sure that the request is sent to server to load the store but combo box expand is not working properly.
Can someone help me to solve this problem?
I really stuck up here.
Thanks,
Valli
Finally i found the answer as below:
1) Listen to expand event and send an ajax request to load the store.
2) Once store is loaded successfully set the data to store using store.loadRawData method.
I am designing an extjs application where I have couple of panels. and one of them of has a grid. I know I can either do selectionChange on the grid listener or itemClick.
Which one should I use? Or moreover which one is better. I obviously load data on the right panel once the grid item is clicked
The first one get fired only when the selection changes (as you might has guessed) and give you a array of selected record (which might be just one) while the second one get called for each click and give you only the one record you clicked on.
For your case I would tend to use the second event and save the last last clicked record internally. I would then only load the second grid if it was not already loaded for this record.
your grid is displayed as table on page at runtime so you can add onClick() event on grid or table cell during onrowdatabount event of grid.
I have a problem with extjs gridpanel dragdrop.
the scenario is as follows:
The gridpanel is initially rendered by loading a remote store.
Then, the rows are added, updated dynamically.
Drag drop feature is implemented on "render" event of gridpanel.
Drag drop works fine for the originally retrieved rows from the remote store.
but when i try to use drag drop for the newly added or edited rows, it doesn't work.
I am getting the following error on firebug:
Index or size is negative or greater than the allowed amount" code: "1
This is may be because , the newly added rows are not taken as a part of the store . I tried changing the event to "click" but it doesnt work that way..
Please please suggest a solution for this fast.. Its needed urgently.
Thanks,
Shreya.
I know 2 methods for drag and drop in ext, one of them is only for grid rows, the other one that I'm using is with setting dragzones and dropzones. With that method, the only thing you have to do is catch an event which is fired when you add new rows to the grid. In that event, set every new row to be a dragzone (so it can be dragged). That's what I did in a similar situation. Hope this helps..
By the way grid rows don't have a .el (DOM element attached to the Ext component, which is the row in this case). So you'll have to create a div for each row component and then use the initializeDropZone(row[x]), where row[x] is the new added row.