jQWidgets Forums

jQuery UI Widgets Forums Grid adding new row with checkbox, which is not clickable

This topic contains 1 reply, has 1 voice, and was last updated by  elessar 12 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • elessar
    Participant

    hello,

    I have a small problem, when I’m trying to add a new row, which also includes the checkbox – I can’t click on that checkbox.
    The initialzation of grid is :

    $("#searchGrid").jqxGrid(
    {
    width: 330,
    height:150,
    source: sourceS,
    theme: theme,
    columns: [
    { text: '', datafield: 'select', columntype: 'checkbox', width: 40},

    { text: 'Location', datafield: 'location', width: 90 },
    { text: 'Feed title', datafield: 'feedTitle', width: 100 },
    { text: 'Feed ID', datafield: 'feedID', width: 80, },
    ]
    });

    and the code with adding a new data row:

    var row = {};
    row["feedID"] = searchResults.results[i].id;
    row["feedTitle"] = searchResults.results[i].title;
    row["location"] = "placed";
    row["select"] = true;
    $("#searchGrid").jqxGrid('addrow', null, row);

    However after adding this row, the checkbox is not clickable (it acts just like a image) . Can you tell me, what am I doing wrong?


    elessar
    Participant

    so I found out; editable:true did the trick 🙂 (I was ignoring this property as I was thinking that this property allows editing strings in rows etc, not checkboxes)

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

You must be logged in to reply to this topic.