jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Edited Rows Rendering With Jqxgrid's Combobox Cell
Tagged: combobox render
This topic contains 6 replies, has 4 voices, and was last updated by admin 1 year, 5 months ago.
-
Author
-
Hello.
I am testing the functionality of this component to see if it’s suitable for my project.
While testing, I’ve encountered some issues with unusual behavior, and I’m wondering how to resolve them.I started editing a combo box cell, the style was applied even though I didn’t actually change the value. Is this the correct behavior?
Please let me know how to prevent the style from being applied.You can check the code at the following link. https://jsfiddle.net/inee814/pgjed9Ly/40/
Thanks.
Hi,
Yes, this behaviour is correct. You have ended the editing even though the value is the same.
To achieve the desired behaviour, you may use the cellendedit event.
Please see the following demo:https://jsfiddle.net/vqr9mz5j/1/Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Hi, Svetoslav Borislavov.
Thanks for your reply.I’ve tested the demo you provided.
It works well for combobox cells, but it doesn’t work for text cells.
What should I do to make it work correctly for text cells as well?”I’ll waiting your reply.
Hi,
Here is a fixed version: https://jsfiddle.net/90aymsod/
I hope this now helps!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/thanks
Hi, Svetoslav Borislavov.
Thanks for your reply.My functional requirements are as follows:
1. When I enter edit mode by double-clicking on either the ‘First Name’ or ‘Country’ cell and exit the edit mode without making any input, the ‘.editedRow’ style is not applied to both cells.”
2. When I enter edit mode by double-clicking on either the ‘First Name’ or ‘Country’ cell, type ‘a’, and then exit edit mode, the ‘.editedRow’ style is applied to both cells.”I’ll waiting your reply.
Hi,
I think there should be more strict checks whether something is changed here. I mean that editedRows.push({ index: rowindex, data: rowdata }); here pushes the same data. The reason that updaterow is called is because the combobox is bound to a data source with displayMember and valueMember which results in an Object value.
Regards,
Peter -
AuthorPosts
You must be logged in to reply to this topic.