EasyUI Forum
November 04, 2025, 05:18:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: How can I use linkbutton in datagrid fomatter on: June 18, 2014, 07:05:03 PM
A thousand thanks.A new problem rise.I add the onclick function to the linkbutton as follows:
      function abc(isTaken,infoId){
         var index = $('#info_dg').datagrid('getRowIndex',infoId);
         $('#info_dg').datagrid('updateRow',{
            index: index,
            row: {
               isTaken : 1-isTaken
            }
         });
         $('#info_dg').datagrid('refreshRow',index);
      }
(linkbutton's text and icon depends on the isTaken).
After click,the text is correct but the linkbutton disapear.What shouldI do?
2  General Category / EasyUI for jQuery / How can I use linkbutton in datagrid fomatter on: June 18, 2014, 02:56:02 AM
<th field="isTaken" width="100" align="center" data-options="
   formatter:takenfomatter
">taken</th>

function takenfomatter(isTaken,row,index){
   var returnStr = "<a href=\"javascript:void(0)\" class='easyui-linkbutton' iconCls=\"icon-add\" onclick=\"javascript:alert('easyui')\">easyui</a>"
        return returnStr;
}
3  General Category / EasyUI for jQuery / Re: numberbox remote Question on: June 17, 2014, 02:21:39 AM
When I turn out.println("true") to out.print("true"),it works,I don't know why.
4  General Category / EasyUI for jQuery / numberbox remote Question on: June 17, 2014, 02:19:14 AM
My code is like this:
<input type="text" class="easyui-numberbox" name="candNum"
            data-options="
               min:0,
               max:99999,
               required:true,
               validType:{
                  length:[1,5],
                  remote:['info_validateCandNum.action','candNum']
               },
               delay:400,
               formatter:function(value){
                  var str = value.toString();
                  while(str.length<5){
                     str = '0'+str;
                  }
                  return str;
               }
            ">
the server side can get the param,and will return 'true' at last
 PrintWriter out = response.getWriter();
 out.println("true");
however,the numberbox is still in the invalid state.Can anyone solve my problem?
5  General Category / Bug Report / destroyRow bug in edatagrid mode using pagination on: June 10, 2014, 07:22:48 PM
10 items/page,11 items in all,destroy the 11 item in the second page,the datagrid show blank instead of 10 items in the first page.
6  General Category / EasyUI for jQuery / Re: cannot addRow when using formatter in edatagrid mode on: June 09, 2014, 09:15:13 PM
after checking mycode,I find my formatter function wrong because lacking
if(value==null){
 return ;
}
I'm so sorry for my careless.
I still have a question:How can I get a feedback after adding row in edatagrid mode?Can you give me a demo or some hints?
7  General Category / EasyUI for jQuery / cannot addRow when using formatter in edatagrid mode on: June 08, 2014, 10:27:28 PM
here is my code:
<th field="deptID" width="50" align="center"
   editor="{
      type:'validatebox',
      options:{
         required:true,
         formatter:function(value,row,index){
            var deptIDStr = value.toString();
            while(deptIDStr.length<3){
               deptIDStr = '0'+deptIDStr;
            }
            return deptIDStr;
         }
      }
   }">deptID</th>
   deptID is the idField,when I press the add Button,it doesn't work.

when I remove the formatter code,it works well.Please give me some hints
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!