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 6700267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:47:39+00:00 2026-05-26T06:47:39+00:00

A simple question i cant workout. In a column definition whats the difference between

  • 0

A simple question i cant workout. In a column definition whats the difference between the field property and the id property…Fx..

columns.push({ id: “officeId”, name: “Office Id”, field: “officeId”, width: 40 });

When would they be different/why two?

Thanks?
Tim

  • 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-26T06:47:39+00:00Added an answer on May 26, 2026 at 6:47 am

    The id is just a unique identifier for the column. You can set it to anything you want. It’s only use is to provide an identifier when you want to refer to your columns from code.

    The field specifies how the column binds to the underlying data. Suppose your data looks like this:

    data = [ 
             { firstName: "John", lastName: "Smith" },
             { firstName: "Fred", lastName: "Jones" }
           ];
    

    When you define the column you can tell it which value you want to display from your data array.

    columns.push({ id: "anythingyoulike", name: "Surname", field: "lastName", width: 40 });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question, but one that I've been curious about...is there a functional difference between
I have a relatively simple question that I cant figure out and I cant
As the title says then the question is relative simple however I cant decide
Hi simple question i guess, but cant figure out how to list the mysql
Quick and should be simple question, but i cant find the answer!!! So im
A very simple question: Why I cant see _ (underscore) in WPF content? For
This is probably a simple question but I can't seem to find the solution.
Simple question, but one I can't find an answer to on the MSDN subscriber
Seems like a simple enough question but I can't seem to find the answer.
This seems like a simple question, but I can't find it with the Stack

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.