How do I get the data from the row selector?
New DiscussionGuys,
I am working with an igGrid in jQuery and I am trying to figure out how to get the data from the row that is being selected with the row selector.
Here is my code below for the example table. As I said, I am just trying to figure out how to get the fields from the row that was selected and then use them in another jquery function.
function createCboxSelectorsGrid() {
$("#cbRowSelectors").igGrid({
width: "100%",
autoGenerateColumns: false,
dataSource: northwindEmployees,
responseDataKey: "results",
dataSourceType: "json",
columns: [
{
headerText: "Employee ID",
key: "ID",
dataType: "number",
width: "120px"
},
{
headerText: "Name",
key: "Name",
dataType: "string"
},
{
headerText: "Title",
key: "Title",
dataType: "string"
},
{
headerText: "Phone",
key: "Phone",
dataType: "string"
}
],
features: [
{
name: "Responsive",
enableVerticalRendering: false,
columnSettings: [
{
columnKey: "ID",
classes: "ui-hidden-phone"
}
]
},
{
name: "RowSelectors",
enableCheckBoxes: true,
enableRowNumbering: false
},
{
name: "Selection"
}
]
});
}
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
7 Created On
Mar 24, 2015 Last Post
10 years, 11 months ago