This is a migrated thread and some comments may be shown as answers.

Selecting a row + accessing attributes

0 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gabriel
Top achievements
Rank 1
Gabriel asked on 29 Dec 2011, 06:44 AM
I'm creating a table and have applied HTML5 Data tags to each table element like this:
<tr data-sku="SOME DATA HERE">

To determine what was clicked, I have a function that handles the change events of my grid:
function onGridClick(arg) {
            var selected = $.map(this.select(), function (item) {
                return $(item).text();
            });
 
            // do something
        }

Doing something like this doesn't work?
$(item).attr('data-sku')

When debugging my JS script in Visual Studio, viewing all the properties for 'item', there is no mention of the data tag mentioned? Are they being removed by Kendo?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Gabriel
Top achievements
Rank 1
Share this question
or