jQWidgets Forums
Forum Replies Created
-
Author
-
January 17, 2014 at 6:20 pm in reply to: cellclick broke with latest version of chrome and jqxgrid 2.x cellclick broke with latest version of chrome and jqxgrid 2.x #48025
Hi Paries,
Verify that you are indeed using jqWidgets 3.1… we saw the same issue with a prior version and just verified the issue is not present in 3.1.
See this jsfiddle that shows it working under 3.1.
http://jsfiddle.net/ericwastaken/x6nd5/
Good luck!
Eric.
February 5, 2013 at 7:38 pm in reply to: How do I get the VALUE of a ComboBox editor inside jqxGrid? How do I get the VALUE of a ComboBox editor inside jqxGrid? #14762Great! Your example helped me find my error.
For the benefit of others, here were my errors.
– On the data adapter, I was not defining the datafield correctly. I should have had the column as follows:
{ name: ‘AssignedToUserId’, displayname: ‘AssignedToUsername’ }
(I was missing the “displayname”).
– On the GRID, I also was missing the displayfield property. I should have had my column as follows:
{ text: ‘Assign to Patient’, datafield: ‘AssignedToUserId’, displayfield: ‘AssignedToUsername’, editable: true, columntype: ‘combobox’, width: 300,
// Show a combobox editor
initeditor: function (row, cellvalue, editor) {
editor.jqxComboBox(
{
source: sfDropbox.dataadapterPatients,
theme: sfDropbox.theme,
selectedIndex: -1,
displayMember: ‘PatientDetail’,
valueMember: ‘UserID’
});
}
}– o –
Once I added the two “displayfield” properties, all worked as expected.
Thanks!
E
The ‘autorowheight’ feature worked great for me with a small exception. If you have a checkbox for any cell editor, it seems the checkbox is placed ABSOLUTE using “TOP:50%;”. Of course, this ends up looking bad on rows that are more than single height because 50% is quite a spacing in that case.
I fixed it with a simple CSS override on my page as follows:
div.jqx-checkbox {
/* Note, with rowautoheight, the TOP position of checkboxes needs to be fixed */
/* from a percentage (since that will now vary from row to ro) to a fixed value */
/* that will be dependent on the min row height! */
top: 2px !important;
}However, this should probably be addressed in the core code.
Thanks,
E.
-
AuthorPosts