The ability to increase the number of values in a custom formatted column for a dgcol tag in jeecg3.5

Source: Internet
Author: User

Only the Formatter property in jeecg3.5, which supports formatting time-format data, does not support the ability to customize the values in a formatted column, for example, to divide the value of an int or long in a column by 100 into a float or doulbe value, jeecg3.5 version does not support similar customfor Matter such a property, this article adds this function to jeecg3.5, the main modified code is as follows:

Org.jeecgframework.tag.core.easyui.DataGridColumnTag

51 Row Private String customformatter;//190-192 line public void Setcustomformatter (String customformatter) { This.customformatter = Customformatter;} 58 Row Parent.setcolumn (Title,field,width,rowspan,colspan,align,sortable,checkbox,formatter,hidden,replace, Treefield,image,imagesize,query,url,funname,arg,querymode, Dictionary,frozencolumn,extend,style,downloadname, Autocomplete,extendparams, Customformatter);

Org.jeecgframework.tag.core.easyui.DataGridTag

257 rows String style,string downloadname,boolean isauto,string extendparams, String customformater) {// 285 rows Datagridcolumn.setcustomformater (customformater);//1082-1087 rows//Custom formatted data function if (Column.getcustomformater ()! = NULL) {Sb.append (", Formatter:function (Value,rec,index) {"); Sb.append ("return"). Append (Column.getcustomformater () ). Append ("(Value, rec, index);"); Sb.append ("}");}

Org.jeecgframework.tag.vo.easyui.DataGridColumn

39 Rows Private String customformater;//custom formatted data function//253-259 Line public string Getcustomformater () {return customformater;} public void Setcustomformater (String customformater) {this.customformater = Customformater;}

Web-inf/tld/easyui.tld

<!--334-338 Row--><attribute><name>customformatter</name><rtexprvalue>true</ Rtexprvalue><description> Custom Format sub-data functions </description></attribute>


The ability to increase the number of values in a custom formatted column for a dgcol tag in jeecg3.5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.