jQWidgets Forums

jQuery UI Widgets Forums Grid Checkbox column not editable

This topic contains 17 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
  • Checkbox column not editable #71404

    flehmann
    Participant

    Hi all,

    I have a grid with a checkbox column.
    The grid is not editable in initial state.
    When pressing a button the user should be able to edit the grid.
    It basically works, but the checkbox column is still not editable until the grid is refreshed once.
    What am I doing wrong?
    I do not want to call the refresh method to not disturb some other settings.

    Example:
    https://jsfiddle.net/frpuwba3/

    Thanks for your help.

    Checkbox column not editable #71405

    Peter Stoev
    Keymaster

    Hi flehmann,

    Your Grid is not editable because its “editable” property is set to false. When you set it to true, it is editable. Also your Checkbox column is bound to a Field which does not exist in the data source. As far as I understand you need to dynamically change the “editable” property. No, problem, but the “refresh” call is required in this case.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Checkbox column not editable #71450

    flehmann
    Participant

    Ok, thanks.
    Do you know any drawbacks that could happen by calling the refresh method?
    Like losing the current filter, sorting or pageing?

    Checkbox column not editable #71466

    Peter Stoev
    Keymaster

    Hi flehmann,

    No, I don’t, but as it’s called on scrolling, I don’t think that would be a problem.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Checkbox column not editable #71550

    flehmann
    Participant

    Great, that sounds reasonable.
    Thanks.

    Checkbox column not editable #71555

    flehmann
    Participant

    Hi Peter,

    I just found out that a call to refresh does end the current editing of a cell.
    So if someone is entering text in a textcolumn, and refresh is called asynchroneously, the user loses the focus and cannot type anymore.

    I will open another thread for this problem.

    Checkbox column not editable #71563

    Peter Stoev
    Keymaster

    Hi flehmann,

    There are methods to end the editing and events raised when editing start so you can easily check and take this into account in your code.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Checkbox column not editable #71634

    flehmann
    Participant

    Hi Peter,

    Suddenly the checkbox column is not working anymore.
    It took me another two hours, but now I could find it:
    The autosize setting disables the checkbox column.

    Please see the fiddle:
    https://jsfiddle.net/frpuwba3/2/

    1) The grid is set to be not editable.
    2) Click “enable edit” button
    3) all cells but quantity (thats correct) and the “cool” checkbox column are editable

    This is rather urgent, because it really makes the grid unusuable for the customer.
    I am afraid that if the customer finds one more error he will cancel the whole project.

    Thanks for your help

    Checkbox column not editable #71636

    Peter Stoev
    Keymaster

    Solution https://jsfiddle.net/jqwidgets/hc0mxr13/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Checkbox column not editable #71639

    flehmann
    Participant

    Render works.
    Great, thanks for your fast reply.

    Checkbox column not editable #72277

    flehmann
    Participant

    Hi Peter,
    Smee again.

    As per your solution we are using “render” to enable the checkbox columns.
    Alas the customer complained he has to wait too long to enable the editing.
    And he is right. When enabling the list and calling render, you have to wait for about 4 seconds until the grid reacts.
    When I leave out the call to render, it is editable in an instant (but without the checkboxes)

    Is there any other solution we can use to enable the checkboxes?

    Thanks

    Checkbox column not editable #72333

    flehmann
    Participant

    Bump.
    Any news on this issue?

    Checkbox column not editable #72395

    flehmann
    Participant

    I could really need some help on this one.
    The waitin time of 4+ seconds is too much. Also the loadingscreen does not show in this time, even if I tell the grid to do so.

    Checkbox column not editable #72397

    Peter Stoev
    Keymaster

    Hi fiehmann,

    If it’s too important for you to dynamically change the editing state and you don’t like the performance of the checkbox column in that case, then don’t use a checkbox column and a simple text column with True, False or 0, 1 values.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Checkbox column not editable #72413

    flehmann
    Participant

    Anything else we can do?
    Like open a real support ticket?

    Or remove the checkbox column and use a custom renderer to add a checkbox?
    Or catch the cellselected event and manually alter the checkbox?

    And don’t get me wrong, I dont care about that stuff, but the customer does.

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.