I am looking for a jQuery grid that will allow me to edit data and save it so it will be available for viewing every time I open the document with the data.
Any recommendations? The simpler the better. I am just trying to create a new document with a grid to replace an old Google Spreadsheet that I currently use.
Are you Looking for slickgrid?
And its not possible to see eachtime time without persisting the data.
And DataGrid is here with Basic CRUD operations.
Related
Here I'm Using .net Core in Server Side and plain vanilla JavaScript for UI
AG grid is getting data from the SQL view thru ASP.net Core application.
in the Grid all the cells are editable. now i want to have one button on top of the Grid. if the user clicks that button only changed data needs to save in DB. is there any option to get oly dirt values or pls advice me how to achieve the above use-case.
Thanks in Advance.
I think there isn't such a complex solution implemented in ag-grid out of a box. But you can do it yourself with help of the events cellValueChange and/or rowValueChange (only if you are using editType = 'fullRow').
I suggest to use the scenario editType = 'fullRow'. So whenever the rowValueChange fires, store the new data of that row in some data array (of course, if a user edits the same row the second time, you need to overwrite the previous stored row value). And when the button is pressed, you pushed to the server only data of that changed rows you've collected.
Hi I'm writing a web app using rails and as part of it I am displaying data to the user using jQuery Bootgrid. As part of this the user is able to set the number of rows per page of the table. I'd like to be able to have this setting persist between page loads.
When a user chooses an option for the number of rows to display I am able to capture that and store in a model. However Bootgrid doesn't seem to have a simple way of programmatically setting the number of rows. This seems like a common thing to want to do so if anyone has come across this before and can give some help it would be greatly appropriated.
you can find a "setRowCount" implemented in
https://github.com/rstaib/jquery-bootgrid/issues/215 - jquery.bootgrid.modified.txt
Unfortunately the user didn't see fit to properly fork the repo.
Not my best code but it is working:
With jquery fire click event of number of rows that you want...
$("#grid-basic1-header .dropdown:visible [data-action='-1']").click();
I am looking for a grid implementation on my dashboard. The requirement here is that if the data that the grid might be fetching changes while a user is looking through the grid, the changes should be reflected. So the row present in page 1 may be present in page 2 after sometime. If the user clicks on page 2, he should be shown a fresh page that is fetched from database and that item should be in page 2. So, I need to use a pagedObjectList to get the data and show that data when user looks for the next page. The same requirement is for sorting too.
So I am looking for a javascript Grid like jqGrid or DHTMLX grid or a Tag Library which has some sort of ajax calling mechanism for sorting and paging instead of showing the old data which is fetched first.
Please suggest any grid/ tag library implementation which can fulfill the above mentioned requirement. Thanks in advance
I finally went with DHTMLXGrid, it has all the configurable actions I needed, like onPageAction, onSort etc. I could simple write my custom code for those trigger events. I would also recommend it to others, pretty handy and solid.
I'm building a website in PHP and I have tables presented that I need to allow the user to:
add new entry (only one at a time, which should appear as a new modal overlay)
delete multiple selected entries from
edit an existing entry (only one at one time, in a view similar to 1.)
re-arrange entries up and down. One by one is fine. Multiple / Grouping rearrangements are not not needed
What jQuery / js / anything toolkit would be the SIMPLEST to work with? (of course, I should be able to work with it in php). I did try hacking away at: http://www.ericmmartin.com/projects/simplemodal/ but had a terrible time trying to get it to work on editing some existing data (had problem passing data to it).
What about jqGrid? Here's a demo? of what it can do.
jqGrid is jQuery plugin which uses the jQuery UI for theming as well.
There is a jQuery plugin called jQuery UI, did you try it?
http://www.jqueryui.com
I am a new user of Extjs library, I created a grid successfully and it works just fine, now I want to use Ext.grid.GridFilters to add filtering to my grid, however I don't see this class in the Extjs source code files, where I can get the required files?
The community-supported plugin for grid filtering is found in this forum thread.
Filtering is a custom thing you have to implement by yourself. There are a few community add-ons which make it easy, but start by looking at the actual grid STORE instead of the grid panel. The store contains the data and supports filtering. Once the data is filtered, the store will raise it's data changed event and as long as the grid is wired accordingly you will see the filtered recordset in the grid. For more info I'd check out their example pages and read the source there.
As mentioned above: use the filter method in the store.
There is a tutorial covering the subject at http://aboutfrontend.com/2011/01/extjs-grid-filter/
There is proper filter option is provided by ExtJs:
store.filterBy(function(rec, id)) { return (rec.get("RecName") =="FilterRecord");}
After filtering data, filter will always present in stores Filters config. So if we want to remove filters and show all records then just clear applied filters like this:
store.clearFilter();