My client has requested a feature I don't think the grid supports. Their concern is the grid doesn't look editable even when it is. So they asked for us always show the input fields unless the column is readonly. How would I achieve this?
I have a few ideas already revolving around the concern:
- I've highlighted the editable fields so they stand out; however, I think they would like more of a direct indiciation. - I could implement a text box in each field using a row template, but I am unsure if the values will synchronize or if the real input field will get focus on selection. - Going to try to setup a prototype with this one.
Any other ideas or features I may have missed?
hi,
Unfortunately this isn't supported out of the box yes. One of the reasons is that we don't create input elements for every cell, we just move and position several, in this way there is no excessive elements created. that's only one of the reasons. If you'd like to have input fields visible all the time, i suggest to disable the updating feature, and create a column template with an input showing the value. Then you can bind to the input's change event, and update the data source , respectively. you can do this either directly in the data source, or using the data source API, so that transactions are recorded:
http://help.infragistics.com/jQuery/2012.2/ig.datasource => methods =>
setCellValue
commit
rollback
You can define a column template in the following way:
http://es.infragistics.com/help/topic/ff8c4aab-980b-46da-a8af-d6130b940962
Hope it helps. Let me know if you have any other questions. Thanks,
Angel
Hello Alexander, Does this answer still apply? or is it a better way now to do it in 2016 :)
thanks for any help on this.
I've talked them out of that feature. However, I did end up using a combination between Row Templates, Column background colors and row conditions to make editable columns stand out a bit more. They were happy with that solution.
I can see how disabling the updating feature and managing datasource could work, but I suspect it will involve a lot of named elements. I do understand how and why the grid functions the way it does, but I was just being preemptive incase I couldn't woo them into cancelling that request.
Thanks,