Update:
I managed to load the grid with the data from the cookie like this:
Update:
Cannot store gridParams into cookie.
if u do:
var state_grid
You need to include jquery cookie plugin.
Get it from here:
Hy,
I have the same problem.
The jqGrid.js is loaded. every js files are loaded, but still the same problem.
:(( uncaught exception: jqGrid – No such method: [object Object] :((
if ($.cookie(“gridState”)){
my yahoo messenger id is adytmro_wbc, if you want to instant talk with me.
Sorry for not beying able to do the grid.
I;ve got lot of work to do …
I have to do something like your grid today at work, but without date button (only date).
If i will do it .. i will try to implement the date button to see if it works.
I will post the code after i will do it.
I have found the solution.
i have changed:
tb_show(“Selectati clientul”,”getclients.php?&height=600&width=700″);
into:
tb_show(“Selectati clientul”,”getclients.php?KeepThis=true&TB_iframe=true&height=600&width=700″);
i will try to code a grid with datepicker and buton in the morning.
i will let you know if i managed to succesfully complete it.
you have to do json_encode if your grid data type is json
if it is xml then i think you can use echo
anyway u didn;t understand what
the wiki learned you 😛
it says there that it constructs blablabla
but in your js file you call for demo.php
that should return an array of type
”FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX”
In your case it will be: 1:valor 1, 2:valor2… etc
read carefully the wiki… it is well written
so you need to do as i wrote upper
make the select
execute it
fetch the result into an array
and echo it to js
good luck
|
1 |
try this :D<br /><br />{$(myDate)</code><code>.datepicker({dateFormat:'dd/mm/yy', showOn:'button', <br />buttonImage:'css/images/calendar.gif', buttonImageOnly</code><code>:true}) |
http://www.blackstag.com/css/i…..lendar.gif it is ok
but if u look with firebug …
there are references to all the other pictures needed .. but no reference at calendar.gif.
try to delete dateFormat and see if it does anything or try to delete size:8
to see if there is something happening.
The thing is that the script it is not calling the picture, even if u told it to.
i think that demo.php would have to return the data in an established format.
the format for select is:
{name:'ship',index:'ship', width:90, editable: true,edittype:”select”,
editoptions:{value:”FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX”}},
this will construct:
|
1 |
<span class="sc2"><<a href="http://december.com/html/4/element/select.html" target="_blank" rel="nofollow"><span class="kw2">select</span></a>></span> <br /><span class="sc2"><<a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">'FE'</span>></span> FedEx <span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a>></span> <br /><span class="sc2"><<a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">'IN'</span>></span> InTime <span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a>></span> <br /><span class="sc2"><<a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">'TN'</span>></span> TNT <span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a>></span> <br /><span class="sc2"><<a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">'AR'</span>></span> ARAMEX <span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/option.html" target="_blank" rel="nofollow"><span class="kw2">option</span></a>></span> <br /><span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/select.html" target="_blank" rel="nofollow"><span class="kw2">select</span></a>></span> |
if u want to populate your select with data from database
you need to:
$sql = “select data from database”;
$result = $mysql_query($sql);
$arr = mysql_fetch_array($result);
echo json_encode($arr);
something like this
Best regards,
Adrian
What do you mean by iCol and iRow ?
have you tried
buttonImage:'css/images/calendar.gif', ?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top