Forum
16:31
19/03/2010
Hello!
I've got a grid with two columns that use select filter field.
$("#list").jqGrid({
url: '<%= Url.Action("All") %>',
datatype: 'json',
mtype: 'GET',
colNames: ["Status", "Type"],
colModel: [
{ name: 'Status', index: 'Status', align: 'left', stype: "select",
searchoptions: { dataUrl: '<%= Url.Action("InvoiceStatusList") %>', sopt: ['eq', 'ne'] } },
{ name: 'Type', index: 'Type', align: 'left', stype: "select",
searchoptions: { dataUrl: '<%= Url.Action("InvoiceTypeList") %>', sopt: ['eq', 'ne'] } }
],
pager: $('#pager'),
rowNum: 10,
rowList: [5, 10, 20, 50],
sortname: 'Id',
sortorder: "desc",
viewrecords: true,
imgpath: '<%= Url.Content("~/Content/css/cupertino/images") %>',
autowidth: true,
height: 300
});
$("#list").jqGrid('filterToolbar', {});
Te problem is that when the page is shown, both select lists are positioned in the last column so that the first is seen (it occupies 100% of column's width) and the second is not visible (although I can see it in the Inspector). The HTML that I get in this place:
<div style="width:100%;position:relative;height:100%;padding-right:0.3em;"><select id="gs_Type" name="Type" style="width: 100%; "><option value="Created">Created</option>
<option value="Advance">Advance</option>
<option value="Expired">Expired</option>
<option value="Approved">Approved</option>
</select><select id="gs_Type" name="Type" style="width: 100%; "><option value="Transfer">Transfer</option>
<option value="WebMoney">WebMoney</option>
<option value="YandexMoney">YandexMoney</option>
<option value="TestCredits">TestCredits</option>
</select></div>
What's the problem with it?
11:21
Moderators
30/10/2007
Hello,
Which version is used?
Also try to use the latest one.
Maybe you refere to this fixed bug:
http://github.com/tonytomov/jq.....caa84ce296
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
51 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66