在jsp中有sjg:grid。尝试添加带有下拉列的列,其中的选项显示为=,<,> 。但是,在下拉列表中显示为= undefined< undefined undefined等......
如何将这些选项放入网格列下拉列表中。 我尝试了下面的
<s:url var="searchUrl" action="SearchAction"/>
<s:url var="editSearchUrl" action="editSearchAction"/>
<sjg:grid
id="searchGridId"
formIds="searchFormId"
href="%{searchUrl}"
reloadTopics="reloadSearchGrid"
dataType="json"
pager="true"
gridModel="searchResults"
rowList="10,15,20"
rowNum="15"
rownumbers="true"
viewrecords="true"
autowidth="true"
editurl="%{editSearchUrl}"
editinline="true"
navigator="true"
navigatorAdd="false"
navigatorViewOptions="{height:280, width:500}"
navigatorDelete="false"
navigatorEdit="false"
navigatorRefresh="true"
navigatorSearch="false"
multiselect="false"
onSelectRowTopics="rowselect"
>
<sjg:gridColumn name="orderNumber" index="orderNumber" title="% {getText('label.orderNumber')}" key="true" sortable="true"/>
<sjg:gridColumn name="orderRange" index="orderRange" title="%{getText('label.orderRange)}" sortable="false" editable="true" edittype="select" editoptions="{value:'=:=;<:<;>:>'}"/>
</sjg:grid>
答案 0 :(得分:0)
按照这篇文章的建议,这样做对我有用
http://www.trirand.com/blog/?page_id=393/help/problem-using-colon-in-editoptions-as-value
editoptions="{dataUrl:'jsp/test.html'}"
的test.html
<select role="select" id="orderRangeId" name="orderRange" size="1" class="editable">
<option role="option" value="=">=</option>
<option role="option" value="<"><</option>
<option role="option" value=">">></option>
</select>