-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabled programmatic edits to grid and additional configuration options for columns and rows #191
Enabled programmatic edits to grid and additional configuration options for columns and rows #191
Conversation
…nd rows are editable
…or non-integer indexes; improved the row edit condition evaluation
… column name value and data value
This sounds amazing, thanks. I'm going to start looking at this today. I'm spending some time this week figuring out the scope for the next release and I'm hoping we'll be able to include some or all of these new features. |
Sorry about the delay...I've been looking at this and it mostly looks great but I have an idea for making the In a nutshell the idea is to pass in a callback function which gets called with the contents of the row and returns true or false to indicate whether the rows should be editable or not. I've started working on this on a branch off of your branch, to confirm that it will work, and also because there are a few things I'd like to add now that we have more configuration infrastructure in place (thanks to your PR!). Could you take a look at the changes I've made in the following PR and let me know if you think this strategy will work for you purposes? #195 Most of the changes are in this commit: 53bd229 I think if it looks good I'll just merge that PR...your name will still show up in the commits and all so I think it should be the same either way, but let me know if there's some benefit to updating this PR instead. |
@vardaofthevalier sounds good, thanks again for your help. I'll let you know when everything is merged/released. Last thing I'm working on is adding support for some additional column options now that we have a mechanism in place for setting them. To say thanks we'd like to give you a Qgrid t-shirt. We have unisex t-shirts in size S, M, and XL (we're out of L). If you email your preferred size and mailing address to [email protected] we'll send one out to you. If you could use your work email when you email that would be best because then I can easily verify that it's not someone that's trying to steal your t-shirt. |
Oh cool, that's very nice of you! And you're welcome, it was my pleasure. I just sent you an email (from the Microsoft domain) with the requested information. Thanks again, and I'm looking forward to the next release! |
Closing this since it's been merged in this other PR: #195 |
Hello! First of all I just want to say thanks for this great widget. I took it upon myself to add a few features that I thought would be useful for a few particular use cases for a project that I'm currently working on at my job, and was hoping to get some feedback on them and possibly contribute the changes back if they might useful to other qgrid users.
The rationale behind many of these features can be described in terms of two different needs: 1) the ability to programmatically update values in the grid while also avoiding completely resetting the entire dataframe (which causes some flickering of the UI when it is redrawn); and 2) conditionally and dynamically setting which parts of the grid can be edited at a given time. Below is a summary of the added functionality:
Below are some examples demonstrating how to use these features:
This will be my first PR against an existing open-source project that I didn't create from scratch on my own, so please let me know if there are any glaring issues that need to be fixed before merging. I'm very interested in any feedback you may have and would be happy to make tweaks or to discuss improvements. Also, I have included unit tests for the internal update methods described above, but am a little stumped on how to write tests for the front-end parts that can only be observed through interaction. If anyone has any suggestions I will happily write more tests to cover those things as well.
Thanks for reading!