Great!
When will 3.7 be released?
/Martin
Oops, wasn't clear. I was talking about the “label” property, but I thought more about a ready to use form like the columnchooser, not a method. Well, better then nothing, will do my own form around setLabel then.
Thank you Tony!
best regards, Jens
same problem, no alt row is not marked, when i checked the generated output, though I have
altRows = true
Hello,
I have a similar problem to the above however, the instead of “d”, the name coming back from my web service is “ListData”. Also, this will change depending on the type of the request. I cannot change the returned string from the web service so I need to handle this somehow on the javascript side.
{“ListData” : {“Success”:”true”,”Record”:”1″, “rows”:[{“MyID” : “7”,”MyTitle” : “MyTitle”,”StartDate” : “09.12.2009”,”EndDate” : “31.12.2009”}]}}
How do I specify the jsonReader so the grid can read the data contained in the rows array? I tried the following with no success:
rows: 'ListData'
rows: 'ListData.rows'
If I populate the grid using addRowData, it works fine but I want to have it autopopulated using the json datatype. I know I am missing something very basic.
Can anyone help me?
Thanks,
Rushi
the first one show you where i install jqgrid and : http://www.nord-international.fr/dripe/test%20tableaux/grid.html is my custom example
sorry http://www.nord-international.fr/dripe/test%20tableaux/jqgrid.html
thanks again
Hello,
I have also tried to use triggerToolber with the same result – no result ;). I think that it may be a bug.
Thanks Tony.
Anyways i have already modified the plugin for setColumns()
[Solved]: had to add formatter:'select' to the field.
Hi,
I don't know if it will be useful for anyone else, but that's what I have done with the Cookie jquery plugin.
http://plugins.jquery.com/project/cookie
jQuery(”#jqGridX”).jqGrid({
Hi Tony,
Thanks for your answer. I am not a js and jquery specialist but am eager to learn.
I looked at the code of the demo site with FireBug as you suggested and I think I figured out what you do:
1) The main tab is created with an add event function defined (for closing tabs)
2) A treeGrid is created for the main menu with an associated url for every leaf of the tree (eg jsonex.html)
3) An onSelectRow event callback is created: On selection of a leaf of the treeGrid, the existence of the tab associated with the leaf is checked.
ww9rivers said:
I finally got a grid showing in my Drupal module. I would say two things: (1) jqGrid is a wonderful piece of work! (2) Firefox and Firebug have been very helpful in debugging all kinds of issues.
Things I found missing from the 3.4.4 (maybe 3.5.a3 also):
- No document about the “view” option for pager;
- The “row_view.gif” file is missing from all themes;
- A few CSS classes (table.navbutton and table.tbutton come to mind) inherit some table styles from Drupal, which mess up the pager buttons. I could post a patch for this one if needed.
Thanks!
Hi ww9rivers
Can you do some bullet point of what you needed to do?
Key question – how did you implement the data feed URLs ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
$(document).ready(function() {
$(“#test”).jqGrid({
datatype: “local”,
colModel:[
{name:'id', width:50, sorttype:”int”},
{name:'text', width:500},
],
height: 400,
width: 800,
pager:$('#testPager'),
subGrid:true,
subGridRowExpanded: function(subgrid_id, row_id) {
var subgrid_table_id, pager_id;
subgrid_table_id = subgrid_id+”_t”;
pager_id = “p_”+subgrid_table_id;
$(“#”+subgrid_id).html(“
“);
$(“#”+subgrid_table_id).jqGrid({
datatype: “local”,
colModel:[
{name:'field1', width:200},
{name:'field2', width:200},
],
height: 100,
width: 700,
pager:$('#'+pager_id)
});
$(“#”+subgrid_table_id).navGrid(“#”+pager_id,
{edit:false, add:false, del:false, search:true},
{}, // edit options
{}, // add options
{}, // del options
{multipleSearch:true} // search options
);
var testData2 = [
{id:”111″, text:”Test #1″},
{id:”222″, text:”Test #2″},
{id:”333″, text:”Test #3″}
];
for(var i=0;i<=testData2.length;i++)
$(“#”+subgrid_table_id).jqGrid('addRowData',i+1,testData2);
}
});
$(“#test”).navGrid('#testPager',
{edit:false, add:false, del:false, search:true},
{}, // edit options
{}, // add options
{}, // del options
{multipleSearch:true} // search options
);
var testData = [
{id:”1″, text:”Test line #1″},
{id:”2″, text:”Test line #2″},
{id:”3″, text:”Test line #3″}
];
for(var i=0;i<=testData.length;i++)
$(“#test”).jqGrid('addRowData',i+1,testData);
});
UPDATE:
forgot to include the locales js file.
now am getting a separate error:
$.jgrid.stripHtml is not a function
Hello
Thank you for you fast reply and sorry for my bad english. I ve developped by myself an application for my job (local authoritiy/international cooperation). Application was at the beginning created on local network with ms access, access data pages and html intranet pages with some js scripts. Now i'm trying to create “real” website with mysql, php… that's new
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top