Hello everyboy!
I have an iGrid with combobox cells. I store my cell data in a database therefore I need an ID to save. I now want to let chose an item of the cell combo and make a break in the
BeforeCommitEdit event of iGrid to decide whether to save the data or not. (Thanks to Igor for fixing the crash problem at this point!)
To save the data, I want to read the ID of the item stored in the
itemvalue of the cell combo.
In iGrid cells I also want to show celltext which is not member of the combobox listitems, therefore I must take the
igCellTextCombo as
ECellType Enumeration to enable this.
But now I have the problem to retrieve the value (=ID) of the choosen item. With
igCellCombo I can get the the stored itemvalue (
vNewValue in
BeforeCommitEdit). With
igCellTextCombo however while checking
vNewValue I get the itemtext once more. My problem is to get the ID in this context. Look at the code added.
OK a way out of this would be to store the ID in a variable array while setting up the combo. But I can't find the index of the variable for iGrid cell combos have no
selected item property.
How can I resolve the problem?
You can download the sample project
here but this works only with the new fixed iGrid >= v6.0.14 !!
lg Norbert
Edited by moderator
2017-03-22T14:02:31Z
|
Reason: Igor/10Tec added implementation status