Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7045397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:31:32+00:00 2026-05-28T02:31:32+00:00

I have some data- attributes that I put into a table row tag. When

  • 0

I have some data- attributes that I put into a table row tag.
When I set the table to be a wijgrid the data- attributes are destroyed.

How do I keep wijmo from destroying these attributes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:31:33+00:00Added an answer on May 28, 2026 at 2:31 am

    When applying attributes on rows (tr), they are simply ignored by the plugin (as you experienced), whatever they are (style, class, data…).

    It seems voluntary because the piece of code that would normally extract the attributes for the rows is commented in the plugin source.

    In the method readTableSection, we have (i removed the not relevant lines of code in here):

    readTableSection: function(table, section, readAttributes) {
    
        ...
    
        if (table && (section = this.getTableSection(table, section))) {
    
            for (ri = 0, rowLen = section.rows.length; ri < rowLen; ri++) {
    
                row = section.rows[ri];
                tmp = [];
    
                if (readAttributes) {
    
                    // here normally the html attributes of the rows (<tr>) should be extracted
                    // but the code is commented !
                    tmp.rowAttributes = null; // $.wijmo.wijgrid.getAttributes(row);
                    tmp.cellsAttributes = [];
    
                }
    
                // here is extracted the html attributes for the cells (<td>)
                for (ci = 0, celLen = row.cells.length; ci < celLen; ci++) {
                    tmp[ci] = row.cells[ci].innerHTML;
                    if (readAttributes) {
                        tmp.cellsAttributes[ci] = $.wijmo.wijgrid.getAttributes(row.cells[ci], prevent);
                    }
                }
    
                result[ri] = tmp;
            }
        }
    
        return result;
    }
    

    I have made a test with “data-” attributes on td elements and they are not destroyed.

    Note: you have to use the option readAttributesFromData.

    You may contact the company who develops this plugin to ask why they have commented out this line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data that I export into an XML file and put in
I have some data that has various attributes and I want to hierarchically group
I have some data grouped in a table by a certain criteria, and for
I have some data. I want to go through that data and change cells
I have some data that I want to store somewhere in my Rails app
I have some data files to import into a database with some unique delimiters:
I have some data with one row of headers and one or more rows
I have a table with some images that I want to start out with
I have a table with data that needs to be updated at run-time by
I have a table of data that contains about 260 rows. Each of these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.