ext.net - ColumnModel Set Header error with mono 3.3.0 -
this asp.net gridpanel code columnmodel id columnmodel3
<south split="true" collapsible="true" collapsemode="mini"> <ext:panel runat="server" id="pnlmsglst" frame="true" height="145" title="消息列表" autoscroll="true" collapsed="true"> <content> <ext:gridpanel id="vehgridpnl" runat="server" storeid="msgstore" striperows="true" frame="true" autoheight="true" autoexpandcolumn="id" autoscroll="true" enablehdmenu="false"> <columnmodel id="columnmodel3" runat="server"> <columns> <ext:column columnid="id" header="id" width="80" dataindex="id" hidden="false" /> <ext:column header="消息内容" width="180" dataindex="content"> <renderer fn="change" /> </ext:column> <ext:column header="车牌号码" width="90" dataindex="carplateno"> <renderer fn="change" /> </ext:column> <ext:column header="设备id" width="90" dataindex="devid"> <renderer fn="change" /> </ext:column> <ext:column header="经度" width="80" dataindex="longitude"> <renderer fn="change" /> </ext:column> <ext:column header="纬度" width="80" dataindex="latitude"> <renderer fn="change" /> </ext:column> <ext:column header="速度" width="70" dataindex="speed"> <renderer fn="change" /> </ext:column> <ext:column header="方向" width="70" dataindex="angle"> <renderer fn="change" /> </ext:column> <ext:column header="定位" width="80" dataindex="location"> <renderer fn="change" /> </ext:column> <ext:column header="时间" width="150" dataindex="date"> <renderer fn="change" /> </ext:column> <ext:column header="车辆状态" width="300" dataindex="status"> <renderer fn="change" /> </ext:column> </columns> </columnmodel> <selectionmodel> <ext:rowselectionmodel id="rowselectionmodel3" singleselect="true" runat="server"> </ext:rowselectionmodel> </selectionmodel> </ext:gridpanel> </content> </ext:panel> </south>
this javascript, when page loaded, automatically run function
function changetitle() { vehlistpanel.settitle(vehlist_title + " :" + nvehcount.tostring()); btnvehdetails.settext(vvehdetails); pnlmsglst.settitle(pmsglist); columnmodel3.setcolumnheader(1, pcontent); columnmodel3.setcolumnheader(2, vvehnum); columnmodel3.setcolumnheader(3, vdevid); columnmodel3.setcolumnheader(4, plongitude); columnmodel3.setcolumnheader(5, platitude); columnmodel3.setcolumnheader(6, pspeed); columnmodel3.setcolumnheader(7, pangle); columnmodel3.setcolumnheader(8, plocate); columnmodel3.setcolumnheader(9, ptime); columnmodel3.setcolumnheader(10, palarmstatus); }
this function change columnmodel3
header.
unfortunately, work on iis, when m trying on real server, return error
referenceerror: columnmodel3 not defined columnmodel3.setcolumnheader(1, pcontent);
is bug? or what? other way change column header ?
server using mono3.3.0,xsp4 , ext.net version 1.3.0
p/s : other components button,label working proper settext
, settitle
. columnmodel having problem.
since, way can't work, m trying on firebug change header, , way change header firebug javascript this
vehcolmodel = parent.frames["statisticfrm0_iframe"].vehgrid.colmodel vehcolmodel.setcolumnheader(3, vvehnum); vehcolmodel.setcolumnheader(4, vdevid);
Comments
Post a Comment