ExtJS 4 Combobox Vertical Scrollbar Is Gone! - extjs

cmbCombobox.getStore().loadData(arrayData);
I use this code to load my arrayData into Combobox.
getStore() method does not exists anymore in ExtJs 4.
So i use this code to load data:
cmbProvince.store.loadData(provinceData);
But vertical scrollbar is gone when i load data by this code.
Has anyone realized this problem?

I ran into the same thing today. You should be able to do:
cmbProvince.createPicker()
to force it to "redraw" the dropdown, which added the scrollbar back.

Related

Not able to remember selection with BufferedStore when scroll down and go back to original selection

I was working on continuous scrolling using BufferedStore and calling bufferedrender plugin from my grid. The continuous scrolling is working perfectly but the selection of my records are not getting retained(remembered) when I scroll down and go back to my original selection.
I also tried with the property pruneRemoved : false in selection model. Still the issue persists. Could you please help us on this how can we proceed further.
Version of ExtJS : 6.0.2

Angular ui-grid. Error in example?

I want to use ui-grid with treeView, but in example:
http://ui-grid.info/docs/#/tutorial/215_treeView
it working wrong.
if i click on "+" icon and then click "-" icon - last row going out from grid.
How repear this, or replace to other grid with tree (hierarhical grid with several column and row selections)? Thanks!
I think this may be the alignment issue that was fixed this morning, which occurs when you have filters. The treeView appears to be working correctly today.
If you have an issue that is different than that, could you provide a bit more detail - your description is somewhat unclear on exactly what it is that is wrong.

ExtJS: Layout run failed with gridpanel and default layout (fit)

I have a gridpanel which is failing the layout run with ext-dev and the context diagnostics on.
I tried with the page analyzer and got this:
gridview-1068<tableview>
headercontainer-1066.columnWidthsDone (=undefined)
dirty: false
setBy: ??
I am in the process of upgrading from 4.1 to 4.2. Other than CSS changes, the only problem is this grid.
It is bound to a store, the store has records, but the gridview is empty and has no nodes. So i am assuming this layout issue is related.
Changing layout to auto on the gridpanel fixes it but results in a still empty grid.
Any idea what this could be?
Edit:
I fixed the grid not displaying at all by a bad method call deep in the code base. But still I get the layout error, although it doesn't seem to affect much. Maybe because i have header: false so the failed headercontainer makes no difference.

How to update a Ext JS 4 grid when popup form is submitted

Please point me to an Ext JS 4 code sample of a grid with records editable via a popup form. It seems to be a common use case, but I can only find editable grids with editing in place.
My approach:
Each row in the grid has an Edit button, which shows Ext.window.Window with an item Ext.form.Panel.
When the form is submitted I have all the fields, which correspond to a record in the grid store.
I get record using:
var storeRecord = grid.getStore().getAt(index);
But when I modify properties of this record, and hide the form window, the grid does not show updated values.
Am I missing some step? Do I need to force refresh? Or maybe there is a standard way to configure the grid with an editor as a form panel?
After two days of searches, trials and errors, I found the solution:
grid.getView().refresh();
I wish there was a faster way for Ext learning curve. :(

How do I refresh Winforms DataGridView?

I have two DataGridViews in a tab and the DataSource of the second grid is based on the row selection in first grid. The problem is I cannot get the grid to refresh after some values have been inserted or updated in the prior tabs. It works fine if I click on the row but it is not working if I select the row programmatically (i.e. first row). I have tried the following but it failed to refresh.
daProgram.ClearBeforeFill = true
daProgram.fill(dsProgram)
bsProgram.ResetBindings(true) -- binding source also tried false
dgvProgram.DataSource=bsProgram -- rebinding the control
I also tried:
dgvProgram.DataSource=nothing
and
dgvProgram.DataBindings.clear()
Nothing works :-(
I would really appreciate if anyone could help me out in this.
Are you binding your data properly?
http://www.theserverside.net/discussions/thread.tss?thread_id=31014
http://bytes.com/groups/net-c/256204-refresh-databindings-winform
I have read a few things about this, and too found ResetBindings not to work.
If you're using Table Adapters, just call the fill method (the method that auto gets added in to your Form Load event).
I've read things that say you shouldn't call Fill. I see no reason why not. It simply re-queries the data, which is exactly what a refresh should do.
Me.YourTableAdapter.Fill(Me.YourDataSet.YourDataTable)
Try This
dgvProgram.DataSource=null;

Resources