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

  • SEARCH
  • Home
  • 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 6873793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:06:51+00:00 2026-05-27T04:06:51+00:00

The dhtmlxgrid documentation is saying that I should be able to get a string

  • 0

The dhtmlxgrid documentation is saying that I should be able to get a string with the grid data with the serialize feature.

Is there any way to get the current data out of the dhtmlx grid to be able to create my own xml file from it?

  • 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-27T04:06:52+00:00Added an answer on May 27, 2026 at 4:06 am

    Here are answers about the dhtmlxgrid that might be useful to anyone looking for a grid with a flexible API and one that isn’t hardcoded for databases. I needed something to support XML data storage. I looked at several grids and this one was the one with the most straightforward API while having the flexibility for adding data to the grid and for extracting data from the grid. Also, it has all the expected functionality without additional coding: hidden columns, sorting, drag-and-drop…, and many others that I haven’t tested: filtering, context menu. It doesn’t seem to have an edit details popup but this can easily be added with the provided methods.

    The serialize methods in dhtmlxgrid do return a text string with the current grid contents. The method .serialize() returns and XML string (with the dhtmlxgrid specific structure) and the .serializeToCSV() returns a csv string. There are options for specifying delimiters.

    The dhtmlxgrid does have a data processor for linking to databases. But it also has methods for manually working with the data, particularly if you have a text file or XML storage. These are methods in the dhtmlxgrid which are useful for adding data into the grid and for extract data from the grid:

    Adding data to the grid

        grid.loadXML(url)              // load data from a remote file
        grid.loadXMLString(string);    // load data from a JS string
        grid.parseXML(object);         // load data from an XML object (xmlhttprequest or XML island)
    
        grid.loadCSV(url)              // load data from a remote file;
        grid.loadCSVString(string);    // load data from a JS string
    
        grid.load(url)                 // load data from a remote file, XML is expected by default;
        grid.load(url,"csv")           // the same for CSV format;
        grid.load(url,"json")          // the same for JSON format;
        grid.load(url,"jsarray")       // the same for JSArray format.
    
        grid.parse(object)             // load data from a string|object, XML is expected by default;
        grid.parse(url,"csv")          // the same for CSV format;
        grid.parse(url,"json")         // the same for JSON format;
        grid.parse(url,"jsarray")      // the same for JSArray format. 
    

    ◦ url – url to the external file;

    ◦ call – callback function after loading; optional parameter, can be omitted;

    ◦ type – type of data (xml,csv,json,jsarray); optional parameter; xml by default.

    For these methods the documentation can be found at dhtmlx grid load data documentation.

    Extracting data from the grid

        var xmlstring = grid.serialize();      //serialize grid to xml format 
        var csvstring = grid.serializeToCSV(); //serialize grid to CSV format
        grid.setSerializableColumns(...)       //set flag to true for columns to serialize
    

    The documentation for these methods can be found at dhtmlxgrid serialize documentation .

    API

    The grid documentation can be found here. You will find there a TOC of all the grid features with links to the API (listed alphabetically or categorized).

    Samples

    The samples can be found here. You might have to look through a few samples to find the one that covers your specific situation. Usually they will have something useful. A sample on row and column manipulation illustrates the use of the API for a grid.

    Since a lot of research went into finding something with that set of functionality, I thought I’d make that information available here.

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

Sidebar

Related Questions

Any good recommendations for a platform agnostic (i.e. Javascript) grid control/plugin that will accept
I use a Joomla! plugin that takes advantage of the DHTMLxGrid library, particularly version
Is there an editable grid made for xml with a sensible api for editing,
I'm about to create a web application that requires a lot of different web
If you are using ASP.NET MVC how are you doing grid display? Rolled your
Here is a code excerpt from a dhtmlxgrid sample file: <p> You are allowed
So my team has inherited a legacy system which provides reports using the dhtmlxgrid
I have an assignment to load the xml in the DHTMLX grid from a
I am very new to Ruby and Rails. I use rails 3.0.9 and ruby

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.