Show Some Love
HTML

jqGrid addRowData - how to add custom name/id to each row?

This forum was posted on Wednesday, March 20, 2013 3:58:08 PM


I am just starting out with jqGrid so sorry if it is an obvious problem (though I could not find the solution on their site anywhere).
I am using the below method to add row data to my grid presently:

for (var i = 0; i  ... 

The id is presently based on the row number but i wish to update the id to a custom definition based on a variable in my mydata array.
For illustration if my mydata array was so:
var mydata = { id="1"  name="someName"  type="typeOne" } 

I would want my HTML o/p to seem like this:
 

OR
 

How can i go about making confirm addRowData method adds a custom id to my rows Rather of the regular rowid?
Thank You!


559 Viewed this Question



 Recent Replies on "jqGrid addRowData - how to add custom name/id to each row?"

  • Nobody has replied on this post, be first to post answer.

Post Your Solution for this Question


Note: Please Put Code into <code></code> block.

Threads related to "jqGrid addRowData - how to add custom name/id to each row?":

Print and Print Preview missing data in IE8

In a specific screen i require to let the user print out little data. Due to the complexity of the data displayed it is used a label:lblTree.Text = stringHTML;The tree is displayed using a dynamically constructed HTML string. The final string is 52 000 characters big. I don't belive that is important but I thought I would explain the background.In aspx it appears like this: report as of 20/09/2012 : 2nd title: The problem is this:when I open the print preview it should say 6 pages (l

setting input content failing

I hv an html text input that I am trying to change the content of via an if statement - other actions within the if statement are occurring which tells me the if statement is reaching this action however the content is not changing as directed - is there an error in my code snippet snippet?HTML:JavaScript:document.getElementById('quest17').innerHTML = "new content";is the problem becoz I also have a class? if so any approach around it... I am honestly at a loss here.

Why is does my webview in my android not display my html file correctly?

I hv an html file that shows an equation. The html file uses this library ( http://mathscribe.com/author/jqmath.html ). In a web browser everything works best. The problem is when i load that html file into my webview in my app. the actual html command in the body does not update into an equation like it did in the web browser. what's the problem here? I placed the html file and the jquery library in the assets folder in my app. The command to load the html file is:mWebView.loadUrl(&

Inherit div height from parent with absolute position

i require to achieve this sort of layout with pure CSS:The gradient in the background is 100% the width of the browser window. The inner text is inside a 1000px div centered inside the browser window. Now i require the text to define the height of the gradient. And This is the problem: The gradient is positioned right (left: 0px; width: 100%) but the text is inside other div.I hv tried little things with show:table; and show:table-cell; but once I put the gradient div to position:absolute

RSS Code Looks Good But unviewable in Browser

I am making an xml of a folder but am having issues. Everything seems best but when I uploaded it nothing was viewable in my Browser Window. I clicked on Page Source and it showed all my code snippet snippet but for little reason is not parsing it right. Could someone checkout out what my issue is? Working this to be an RSS FEEDhttp://www.316apps.com/NewallaSermons/Directory.xml

Changing parts of SVG-Path on the fly

i'm working with RaphaelJS for SVG graphics and I hv a path like this:var path = canvas.path("M50 100 l0 100 c100 -100 200 100 300 0");But later I might wish to change little parts of the graph. E.g:var path = canvas.path("M50 100 l0 100 c100 100 200 -100 300 0"); Notice the moveTo and lineTo commands are the similar solely two arguments for curveTo have changed.Can I update parts of path directly or do I hv to sketch a new path and delete the old one?(Fiddle)

How synchronize more gif pictures?

do you know ny approach How do I synchronize gif animations? problem is that if they have similar timing but are loaded in various time it can appears strange. I don't know for illustration by little javascript "refresh" or reload or something else...

Highlighting current link

Hi I hv to use only html and javascript. I hv made one single page which having a top navigation links the url for those links are something like:domain.com domain.com/b1 domain.com/b2 How do I highlight the current link.

html within border

I hv the following: Hotel This shows and image that is clickable along with text underneath - Hotel which is also clickable.How do I put a border around the jpg and the text (Hotel) so that is is all within a border.I tried: Hotel but that did not put a border around the jpeg and text.

HTTP header construction

Given 2 links: link1link1On a page at this domain: www.site.com/index.html.Are both the header request going to appear the similar ? Or can i expect a "/somepage.html" and "somepage.html" request to the site.com domain ?EDIT: Here is what i see in the raw header in Chrome console: GET /resources/css/jquery-ui.css HTTP/1.1Host: site.comConnection: keep-aliveCache-Control: no-cachePragma: no-cacheUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/537