Hello community,i want to hava a column in an iggrid, which is in same cases a dropdown menu in other cases an input text field.Lets say there is table with the columns "Property" and "Value":Property | Value
---------------------------------------------------
Currency | $Count of something | 31242For the first row it makes sense to use a dropdown list, which shows the user only valid input values, the count is limited.
For the second row you can not use a dropdown list because there is no limit of possible items of the list, the user has to enter a number with the keyboard.So is there a way, to customize one column, so this column can be a dropdown list and sometimes an input text field?Hopefully someone can give me a hint, because I have no idea how to start with this, I am happy for any kind of support.BR
Hello Michael,
I am glad that your dataSource now gets updated correctly.
Please let me know if you need any additional information regarding this matter.
Thank you a lot.I was on the right track, the updateRow method of the igDataSource did the job.The only thing I had changed was the autoCommit:bool set to false.Now the stuff is in the transaction log
By design the igGrid supports a single datatype per column and creates the editors corresponding to this datatype. Setting different editors per row in a single column is custom solution and I would appreciate if you provide some more details about your scenario so I could give you a more precise answer:
If you need any additional assistance, feel free to contact me.
Thank you a lot,I have one question left.Currently the GUI is working very well, in my grid one column has numeric editors, combo and checkox editors.My problem is the connection of this editors and the grid. When i change the state of the checkbox, the checkbox change the value, but how will this change the value in the datasource of my grid?I tried already to update the datasource with the event "valueChanged" of the Checkbox editor. But when I change the values of the datasource, the array of datasource.pendingTransactions() is still empty. I used the updateRow function of the datasource for the changing the value.What is the best way to let the editors deal with the grid/datasource?
I am glad that you were able to achieve your requirement according to my suggestion.
Please let me know if you have any additional questions regarding this matter.