jQWidgets Forums

jQuery UI Widgets Forums Grid Grid field custom attributes

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid field custom attributes #11143

    DarthMathius
    Member

    Is there a way to add custom attributes to a cell in the grid? What I mean is this:

    Lets say I have a table like this:

    id | name | value

    I have a grid, with data from this table, showing the [name] field in the header, and the [value] field in the grid. When I update it, I want to sent the [id]:[value] to the DB not the [name]:[value] (might be duplicate names). Is there a way of showing the name in the column, but attaching the [id] to the cell?

    Grid field custom attributes #11151

    Peter Stoev
    Keymaster

    Hi DarthMathius,

    You can have only 1 data field associated to a Grid cell. However, you can customize the built-in cells rendering. Please, take a look at this help topic: jquery-grid-cellsrendering.htm.

    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.