@Oleg: Nice one! I didn't know that you can set the meta tag like that. Thanks.
Aleksandar
…an icon that looks like a page (IE8) next to the address bar or look in tools menu
Regards
Don't know if it is JQgrid bug or not, but the when you disable compatibility view in IE – it disappeares! Hope this wil help.
Regards,
Aleksandar
Thanks Oleg. This is more than hlepful. I usualy work with FF and firebug, but this was a specific request from a customer. 🙁
I will go with loadError
Sorry, it's an intranet site not accesible from the outside 🙁 Here is the JS code (first grid is Ok, the second and the third are not):
$(function () {
$(“#list5”).jqGrid({
url: 'js/JQgrid/gridAneks.php',
editurl: 'js/JQgrid/gridAneks.php',
datatype: 'json',
mtype: 'POST',
toolbar: [false, “top”],
colNames: ['Број', 'Датум', 'ДелатноÑÑ‚', 'Рок закупа:', 'Почетак кор.', 'Уг. казна', 'Отказни рок', 'Површина'],
colModel: [{
name: 'broj_dokumenta',
index: 'broj_dokumenta',
width: 90,
editable: true,
search: true
},
{
name: 'datum_dokumenta',
index: 'datum_dokumenta',
width: 90,
editable: true,
search: false
},
{
name: 'delatnost',
index: 'delatnost',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'rok_zakupa',
index: 'rok_zakupa',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'datum_pocetka',
index: 'datum_pocetka',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'ugovorna_kazna',
index: 'ugovorna_kazna',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'otkazni_rok',
index: 'otkazni_rok',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'povrsina_m2',
index: 'povrsina_m2',
width: 80,
align: 'right',
editable: true,
search: false
}],
pager: '#pager5',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'zd.broj_dokumenta',
sortorder: “asc”,
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед докумената'
});
jQuery(“#list5”).jqGrid('navGrid', '#pager5', {
del: false,
add: false,
edit: false
});
jQuery(“#t_list5”).append(“”);
$(“input”, “#t_list5”).click(function () {
alert(“Поздрав, Ñамо теÑтирамо!!!!”);
});
$(“#list2”).jqGrid({
url: 'js/JQgrid/griddok.php',
editurl: 'js/JQgrid/griddok.php',
datatype: 'json',
mtype: 'POST',
colNames: ['Број', 'Ð’Ñ€Ñта док.', 'Ðазив'],
colModel: [{
name: 'interni_broj',
index: 'zo.interni_broj',
width: 55,
editable: true,
search: true
},
//{
// name: 'zakupac',
// index: 'km.naziv_kom',
// width: 90,
// editable: true,
// search: false
//},
{
name: 'vrdok',
index: 'vrdok',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'naziv',
index: 'naziv',
width: 80,
align: 'right',
editable: true,
search: false
}],
pager: '#pager2',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'zda_id',
sortorder: “asc”,
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед докумената'
});
$(“#list2”).jqGrid('navGrid', '#pager2', {
add: false,
edit: false,
del: false
});
jQuery(“#t_list2”).append(“”);
$(“input”, “#t_list2”).click(function () {
alert(“Hi! I'm added button at this toolbar”);
});
$(“#list3”).jqGrid({
url: 'js/JQgrid/gridOglas.php',
editurl: 'js/JQgrid/gridOglas.php',
datatype: 'json',
mtype: 'POST',
colNames: ['Објављено', 'ИÑтиче', 'Штампа/Сајт','Линк', 'Садржај'],
colModel: [
{
name: 'datum_objavljivanja',
index: 'datum_objavljivanja',
width: 55,
editable: true,
search: true
},
{
name: 'datum_isteka',
index: 'datum_isteka',
width: 55,
editable: true,
search: true
},
{
name: 'objavljeno',
index: 'objavljeno',
width: 90,
editable: true,
search: false
},
{
name: 'link_oglasa',
index: 'link_oglasa',
width: 90,
editable: true,
search: false
},
{
name: 'datoteka',
index: 'datoteka',
width: 255,
editable: true,
search: false
}
],
pager: '#pager3',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'datum_objavljivanja',
sortorder: “asc”,
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед оглаÑа'
});
$(“#list3”).jqGrid('navGrid', '#pager3', {
add: false,
edit: false,
del: false
});
//za aneks ugovori
$(“#list7”).jqGrid({
url: 'js/JQgrid/grida2.php?q=1',
datatype: 'xml',
mtype: 'GET',
height: 80,
colNames: ['Број', 'Датум', 'ОпиÑ', ' Валута', 'Позив на број'],
colModel: [{
name: 'zao_id',
index: 'zao_id',
width: 135,
search: true
},
{
name: 'interni_broj',
index: 'interni_broj',
width: 135,
search: true
},
{
name: 'napomena',
index: 'napomena',
width: 135,
align: 'right',
search: true
},
{
name: 'interni_broj',
index: 'interni_broj',
width: 135,
search: true
},
{
name: 'napomena',
index: 'napomena',
width: 135,
align: 'right',
search: true
}],
rowNum: 30,
search: true,
rowList: [10, 20, 30],
sortname: 'zao_id',
sortorder: 'asc',
viewrecords: true,
caption: 'ÐнекÑи Уговори',
multiselect: false,
subGrid: true,
subGridUrl: 'js/JQgrid/subgrida2.php?q=2',
subGridModel: [{
name: ['Бр. уговора', 'Датум', 'ДелатноÑÑ‚', 'Рок закупа:', 'Почетак коришћења', 'Уговорна казна', 'Отказни рок', 'Валута плаћања', 'Површина'],
width: [60, 60, 60, 70, 100, 90, 100, 110]
}]
}
);
});
Thanks Oleg. I didn't notice any errors in a script. Maybe some blank or something else thath doesn't belong to script?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top