rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
973 stars 364 forks source link

how to load static columns and data to jQuery-bootgrid #429

Closed ajaychig closed 4 years ago

ajaychig commented 4 years ago

I need to load jQuery-bootgrid with static data. I build Json data string to bind data to grid,but I am not sure how to bind data to grid. I am not able to find any method to bind data and this should happen only after I click on "Add Button" and remove that row from grid when I click on "Cancel" button. Initially the grid should be hidden and visible only when click on Add button.

Please let me know which method to use to add data to Jquery-bootgrid.

ajaychig commented 4 years ago

I have created JSON object and used the following method to add rows to Jquery Bootgrid ("#grid-filterFields").bootgrid("append", jsonData);