optikalefx / OpenJS-Grid

OpenJS Grid is the easiest jQuery Grid ever. With very little work you can have a data grid that can do everything from sorting and searching to complex database queries. Best of all, its open source. So you can learn how it's all done.
http://square-bracket.com/openjs
MIT License
96 stars 46 forks source link

Select drop-down to fill all rows on a column #102

Open teggsdgreat opened 7 years ago

teggsdgreat commented 7 years ago

Hi, Am really impressed by your work but i have some questions

  1. Is it possible to have a drop down that populates all rows in a single column with the selected value
  2. I have tried to run the grid but it does not load the data, i have checked my db connection but it still doesn't load the data.

Best regards

optikalefx commented 7 years ago

1) Drop downs are supported see Drop Downs on http://square-bracket.com/openjs 2) Check your table names, database credentials, and the ajax call for error messages.

teggsdgreat commented 7 years ago

Thanks for your quick response but what i want to do for example is having 100 rows of data with same value but to be determined by user eg choose country after selecting your country in the drop down the value populates into all remaining 99 rows of the same column in the grid. Is this possible if yes, how.

Thanks again

optikalefx commented 7 years ago

Yes that's possible, but not built in. You'd have just traverse the data object to change those values (and then re-render), or use jQuery to change the select boxes. Neither unfortunately is going to be super easy.