jQWidgets Forums

jQuery UI Widgets Forums Grid Customized editor for single cell

This topic contains 6 replies, has 2 voices, and was last updated by  Dimitar 10 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Customized editor for single cell #63674

    Dartagnan
    Participant

    Hi,

    I followed the Demo example Customized Editors (demos/jqxgrid/customizededitors.htm). I do get the combobox editor. However, I need to enable the editor for single cell not entire column. My plan was to check “column” parameter (e.g. if column==mycolumn then…). The call back functions “createeditor” and “cellvaluechanging” are being called however the “column” parameter is “undefined”.

    What could be wrong? Is there a demo that shows single cell editing?

    Thanks,
    D.

    Customized editor for single cell #63692

    Dimitar
    Participant

    Hello D.,

    There is such an example. Please check it out: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/customrowcelledit.htm?arctic. The columntype has to be set to “custom”.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Customized editor for single cell #63749

    Dartagnan
    Participant

    Hi Dimitar,

    I checked out the example and implemented it. It seems bit buggy as it requires to provide an editor for each cell. I only want to provide combobox editor for one cell in the table. If I don’t provide other editors when I cannot enter values in the the other cells after double clicking (I’m assuming they don’t have the default cell editor). How can I provide the default cell behaviour (or editor)??

    Thanks,
    Dartagnan

    Customized editor for single cell #63750

    Dartagnan
    Participant

    Sadly, I’m losing hope in jqxWidgets, I ran into “jqxInput: Missing Text Input in the Input Group” while trying to use jqxinput as default editor for other cells. I saw the post http://www.jqwidgets.com/community/topic/need-help-with-jqxinput-in-jqxgrid/ which solves the error message problem. However, cells aren’t maintaining input and multiple cells get highlight or selected after clicking on cell. Somehow, it seems I have to override entire behaviour if using custom editor which sucks.

    Is there simple solution to the my goal which is to simply use the default editor for each cell except one cell which should be combobox cell in a grid???

    Customized editor for single cell #63753

    Dimitar
    Participant

    Hi Dartagnan,

    The demo shows the only solution to creating cell-specific editors. If you wish, you may provide us with a code sample (or JSFiddle) which we will check to see if your implementation is correct.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Customized editor for single cell #63803

    Dartagnan
    Participant

    I’d appreciate that. Here is an excerpt http://jsfiddle.net/UbK74/57/

    To see the issue, double click on 2nd column cells. Cell number 2 should show the combobox while other cells in that column should allow for simple text input. Notice how double clicking sometimes highlights other cells and doesn’t put the cell into edit mode?

    Customized editor for single cell #63808

    Dimitar
    Participant

    Hi Dartagnan,

    I have updated your example to show how to correctly set up your single-cell combobox editor: http://jsfiddle.net/Dimitar_jQWidgets/2qbsowra/. As for other cells – you have not implemented any editors for them, that is why they cannot be edited. There is no “default” setting when the columntype is set to “custom”.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.