jQuery UI Widgets Forums Grid Grid setcolumnproperty

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid setcolumnproperty #8705

    sreeni379
    Member

    Hi,

    var column = $(‘#Injqxgrid’).jqxGrid(‘getcolumn’, ‘InSelect’,renderer: headercheckboxRenderer);

    This Code i wrote for render method in Setcolumnproperty for grid,it not reneder it saying error.How can i write  code for render for coulmn in Setcolumn property.

    Thanks

    Sreeni

    Grid setcolumnproperty #8713

    Dimitar
    Participant

    Hello Sreeni,

    You should set the cellsrenderer property of columns. You can find out more about it in the jqxGrid documentation. Please check out the following demo, too: Image Column for a showcase of cellsrenderer capabilities.

    Best Regards,
    Dimitar

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

    Grid setcolumnproperty #8724

    sreeni379
    Member

    Hi Dimitar,

    sorry ,last time I posted different method and wrong one,

    In documention have one method for ‘setcolumnproperty’ .from the documention for ‘setcolumnproperty’ .Please check like for
    ‘setcolumnproperty’ .

    http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm

    $(‘#grid’).jqxGrid(‘setcolumnproperty’, ‘firstname’, ‘width’, 100,renderer: headercheckboxRenderer);

    This Code i wrote for render method in Setcolumnproperty for grid,it not reneder it saying error.How can i write code for render for coulmn in Setcolumnproperty.

    Thanks
    Sreeni

    Grid setcolumnproperty #8725

    Dimitar
    Participant

    Hi Sreeni,

    As you can see in the API, the sercolumnproperty method receives only four parameters, while you set more parameters. The correct statement is as follows:

    $('#grid').jqxGrid('setcolumnproperty', 'firstname', 'renderer', headercheckboxRenderer);

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.