Hi Everyone,
I am using the igGrid jquery control. I have the following scenario. I have 2 columns:
Category, Value
-----------------------
When I ciick "Add Row", I am populating "Category" with 4 values in a drop-down. When I select values 1 and 2, I want the "Value" cell to change to a text box. But for values 3 and 4 I want "Value" cell to change a drop down with some pre-populated values like a,b,c.
How can I do that? I am not able to find any documentation. Can you kindly provide it with an example?
Thank you.. We can close this topic now.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Hi Nifty,
Because of the editmode option set to “cell” and the editCellStarting which is handled, every click on a cell and every time the “enter” key is hit after adding a new row will fire the editCellStarting event and thus disabling us to delete a row.
In order to escape from that behaviour it is possible to set the startEditTriggers option of the Updating feature to "dblclick” as follows
features: [{ name: 'Updating', startEditTriggers: "dblclick", ....}]
which will fire the editCellStarting event only on double click on a cell. This way the option to delete a row stays available. Please note that when adding a new row hitting the “enter” key will still fire the editCellStarting event, but in this case you can just click anywhere on the grid to escape and you will be able to delete a row or enter edit mode on double click.
Please review the attached sample which demonstrates this behavior and let me know if you have any further questions regarding this issue.
Hello,I am currently looking into this matter and will keep you posted of any available information.Please do not hesitate to contact us with any updates or additional questions regarding this scenario in the meantime.
Hi Hristo,
Thank you for the modified example. I have noticed in your work around that, after editing a new cell, I am losing the ability to delete the entire row. Other than that, your work around seems to be fine.
Can you please modify it and resubmit a new example?
Thanks