ShieldUI Grid row count - shieldui

In ShieldUI (1.7.13) Grid
How can I have a row count beside each record in a grid?
This is not data from the JSON which provides the other data for the Grid.
Situation, I am scrolling a list of hundreds of records and want to provide the consumer of the data the row number of the various rows in the grid.
Similar to the row number in any popular spreadsheet application (Excel, Google Sheets, etc.)

You can add a new column as the first one, specifying a custom columnTemplate for it. In there you can show the current index of each row.
More information is available here:
https://www.shieldui.com/documentation/grid/javascript/api/settings/columns/columnTemplate

Related

use vlookup to return multiple values and expand rows

I am trying to create a semi-automated invoicing system for my business but I am running into some problems.
I would like to be able to have a spreadsheet with all of my inventory in rows. Each of these items would have 4-5 columns of information. I would like to use this spreadsheet as a database that I could use data validation with to create a drop down menu to choose an item from the database. When an item is selected it would return all of the columns of info in the database.
I have been able to do this using vlookup functions. However, most of the items in my database are often grouped together. Is there a way that I could select one item from the database and have it return all of the grouped items on separate rows?
Lastly, as these items are added to the invoice it would be nice if I could automatically have the invoice add rows to expand the invoice. For example, if I choose an item from my database that is grouped with 10 other items, the spreadsheet would also add 10 rows or shift the rows below the dropdown selection down 10 rows.
From my research I have figured out how to return multiple values from an array following the instructions on this link:
https://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/
This only allows me to return a single value though.
Here is a link to the excel file in case you don't want to sift through the entire page:
https://www.get-digital-help.com/wp-content/uploads/2009/10/How-to-return-multiple-values-vertically-2.xlsx
I also followed this guide to use a vlookup function to return multiple values but I don't know how to have it return multiple items from the database.
https://www.journalofaccountancy.com/issues/2004/apr/adoityourselfautomatedinvoicingsystem.html
Thanks in advance!
I think it's time you left VLOOKUP behind, and embraced PivotTables. Slicing, dicing, and aggregations are what they do best, and they handle grouped items with ease. Trying to cobble together a solution that meets your requirements using just formulas is going to be messy.

Using extjs 4.2 grid as attendance management system

I am looking to create an attendance sheet but not getting the magic idea for the same. Possible options for me
Use grid but done know how to pass date values as grid column headings
Use table but don’t know how to edit the same. grid is editable component.
Please help me with the thought process
I don't think that Ext.grid.Panel is the component for this purpose. Grid conceptually more resembles database tables (fixed columns/fields repeated many times in rows/records) than spreadsheets (cells w/o prescribed purpose).
Also, grid has a lot of features like sorting, column re-ordering, column hiding that you would need to turn off for this purpose. Grid is just an overkill.
I would probably go with a custom table-like form with checkboxes. The form would be dynamically generated as employees can change and dates as well.

Populating listview row into an array or list

Is it possible to enter listview data by row instead of by cell? I would like to be able to pull data out of the listview by row using an index rather than having to create a ton of statements to pull out the data by cell, it would be easier this way.

Multiple Grids to achieve Nested Grids functionality

I am aware of what a RowExpander plugin is for a Grid, where each row in a Grid expands to show it's childs or related store data. My requirement is a bit different.
I need multiple Grids on a page. Each Grid is loaded with data from different backend DB tables TB1, TB2, TB3.
However, each of the backend DB tables have a one to many relationship with each other. That is, each row in TB1 has multiple rows in TB2. One row in TB2 has multiple rows in TB3.
Now, I need one grid for each of these tables on UI. And then if I select a particular row in the first Grid ( relavant to TB1 ), I should populate the second grid with the relavant records from TB2. And then if I select a row in the grid corresponding to TB2, I should populate third grid with all the records relavant to the row selected from TB3.
I hope I am clear. Could you please help me with any sample code that you might have?
Subscribe to select (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.Panel-event-select) event of the TB1 and then filter store associated TB2 with whatever filter criteria you need - this way second grid will be automatically filtered to the records you need to show.

How can one dynamically modify row and column definitions of a WPF grid?

I have two dimensional data with varying number of rows and columns and must display it to the user for editing. The format of the data itself is essentially described by a list of row and column descriptors with a header text for each row or column.
I derived a control from Grid that has two properties for the row and column descriptors and builds the gird rows and columns based on that information. It also subscribes list change events of the two descriptor collection to update itself if the user dynamically adds or removes rows or columns.
And here the problem occurs - when I try to modify the row or column definitions of the gird I get an exception telling that the collection is read-only. So I assume it is not possible to modify the definition after the grid has been created and shown once. Any ideas?
And just in the case it matters - everything is data bound. There is a (dynamic) collection of tables with each table containing its own (dynamic) row and column definitions and the data entered for each cell.
I did a quick test and I could add rows and columns without problems to a Grid at runtime through code, using the RowDefinitions and ColumnDefinitions collections. I don't think that bindings have something to do with the problem either.
If on the other hand you meant DataGrid, yes, that changes things quite a bit.

Resources