DataGrid reconfigure with grid columns resulting in empty grid - extjs4.2

I am trying to use reconfigure to rearrange the columns in data grid based on user moving and rearranging the columns.
Below here I am trying to do some testing on reconfigure, but the grid becomes empty. Is this the correct way to do it?
var dgorder = dataGrid.getView().getGridColumns();
dataGrid.reconfigure(undefined, dgorder);

Related

Unable to perform assignment because the size of the left side is 63-by-1 and the size of the right side is 10-by-1

Is there a way in MatLab that allows me to create a UItable that allows me to have two columns with a different row size? This is my current code:
app.UITableComparer.ColumnName={app.ListBoxMat.Value,app.ListBoxMat_2.Value};
app.UITableComparer.Data(:,1)=app.valueOne;
app.UITableComparer.Data(:,2)=app.valueTwo;
My expectation was to see my UITable to show the values for each struct but it does not let me since the row sizes are different. Is there any way around this?

Copy paste is not triggering cell renderer for all the rows

I have implemented ag-grid in angular application.
ag-grid version: 21.0.0
angular version: 6
I am having a grid, which has 108 columns and 200 rows.
Around 50 of those columns are having separate cell renderers.
I am copying certain column values from a cell and pasting them into a column for all the rows.
On processCellFromClipboard event, I expected all the rows refresh method will be triggered. But it didn't happen.
But the cell renderer is refreshed only for the rows which are visible in the DOM at that particular time. Only for 20 rows cell renderer is getting triggered. For others it is not getting triggered.
Is there any option to refresh/re-render for all the rows which are not visible by that time?
agGrid has a rowBuffer attribute that handles the number of rows that the grid can actually interact with at a time.
If you are using pagination you can easily set it to the current page size, otherwise set it to the number you want or the one that you display at a time.
[If that didn't help please post more code and ping me]

Essential JS 2 Grid: save/restore column order and width?

The use case is to a) allow the user to resize columns and reorder them, which the Grid can do, and then by user reset to what they had.
What I need: how do I a) read/set the column order and b) read/set the column widths? If there's a document with a description of grid column properties and methods, that's what I need. Or, if the column widths and order are stored elsewhere on the grid, the doc for that component.
thanks,
Hank
Based on your requirement, we have achieved the resetting of resize and reorder columns after we do both actions on Grid using getPersistData and setProperties methods. We have locally to store the Grid Properties using getPersistData(it is store feasible of resetting grid properties) method in load event of Grid and you can bind the locally stored grid properties to Grid using setProperties method when we reset the positions and width of the columns in the Grid. please refer to the Grid code example and sample for more information.
[Index.cshtml]
<ejs-grid id="Grid" dataSource="ViewBag.dataSource" allowReordering="true" allowResizing="true" load="onLoad">
<e-grid-columns>
. . . .
</e-grid-columns>
</ejs-grid>
<script>
function onLoad() {
window.localStorage.setItem("gridPorps", this.getPersistData()); //Store the intial renderting Grid properties in global variable
}
document.getElementById("resetprops").addEventListener("click", function () {
var grid = (document.getElementById("Grid") as any).ej2_instances[0];
grid.setProperties(JSON.parse(window.localStorage.getItem("gridPorps"))); //Bind the stored Grid properties in the Grid
});
Sample link: https://www.syncfusion.com/downloads/support/directtrac/252153/ze/filter_core-120629378.zip
Else If you expect to reset the Grid columns positions and width after reorder and resizing the Grid columns. Please share your exact requirement to us it will help validate further.
Please get back to us, if you need further assistance.
Best,
Balaji S

smartGWT grid not showing summary (need to load all records?)

i have a grid where i need to show the sum of a column at the end of the grid. I use the function
myListGrid.setShowGridSummary(true);
if the grid contains 60 records it will do the summary without problems, if it goes >61 the summary will show no data at all. I believe this problem is caused by the grid paging (not loading all the data at once). Is there a possible workaround for this or maybe a function to load all the data that i'm missing?
myListGrid.setShowAllRecords(true)
Drawing all rows causes longer initial rendering time, but allows smoother vertical scrolling. With a very large number of rows, showAllRows will become too slow.

Mapping between two Extjs grid

I am trying to map two Extjs grids in a single page, such that updating a first extjs grid will update the rows of second grid.
Till now i am maintening mapping by having an additional column in first grid which contains string of all data of corresponding row (separated by 4 hashes), but each time a row updated in first grid adds a new row in second grid which i need to change. Such that updating will also delete corresponding rows in second grid
Kindly help on urgent basis :)
Got the solution...
Created one more column in grid 2 that will store the index of row of grid 1 that we are updating using var item = grid.getSelectionModel().getSelected();