jQWidgets Forums

jQuery UI Widgets Forums Grid Custom Checkbox column with check all option

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years, 6 months ago.

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

  • svktella
    Participant

    Hi,

    I have a requirement that i need to add a checkbox column with “Check All” option.So When i check the checkbox on the header it should select all the rows in that column.And i want to set each row’s check box with different value(not boolean) may be a string.When i select any checkbox and push a button some action needs to takes place like just an alert with the checkbox value. How would i achieve that?

    i have created the grid like the following..

    var columns = [{‘text’:”, ‘datafield’:’checkboxfield’,’columntype’: ‘checkbox’,’sortable’:’false’, ‘width’:’45px;’},{‘text’:’Notes’, ‘datafield’:’NoteInformation’, ‘width’:’55px;’},{‘text’:’Admit Date’,’datafield’:’admit_date’, ‘cellsformat’: ‘MM/dd/yyyy’, ‘width’:’90px;’}];

    var source =
    {
    datatype: “json”,
    datafields: [
    { name :’checkboxfield’,type:’string’ },
    { name :’NoteInformation’,type:’string’ }
    ],
    localdata: data
    };

    var dataAdapter = new $.jqx.dataAdapter(source);

    $(“#Nicujqxgrid”).jqxGrid(
    {
    width: 1440,
    height:500,
    source: dataAdapter,
    sortable: true,
    pageable: true,
    pagesize: 25,
    pagesizeoptions: [’25’, ’50’, ’75’, ‘100’],
    columnsresize: true,
    altrows: true,
    columns: columns
    });


    Peter Stoev
    Keymaster

    Hi svktella,

    Unfortunately, there is no such built-in feature in jqxGrid. It is also not possible to use our Checkboxes with Values different than Boolean.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.