EasyUI Forum
September 15, 2025, 04:02:41 AM *
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 / how to change the required options on: July 08, 2015, 08:33:31 PM
 in real using ,sometimes one input is required,sometimes the  input is not required.
so i do as this
Code:
  $('#requiredType').combobox({
                onSelect: function (param) {
                    if (param=1)
{
   $('#DrpHA').combobox({ required: false });
}
else
{
$('#DrpHA').combobox({ required: true });
}
                }
            });

am I created the combobox more than once?
if i creates more than once, how to chang the options?

and i find if i hide the required input ,but when i post the form ,it will find the $("form").form('validate') is false,can not post the form
2  General Category / Bug Report / Re: ComboGrid has bug if the title is too long on: July 07, 2015, 11:55:07 PM
Please set the 'align' property to 'left' for your 'Product' column field.
Code:
{field:'productname',title:'Product',width:120,align:'left'},
after select the item "Rattlesnake  Rattlesnake",the textbox can not show all the text  "Rattlesnake  Rattlesnake",but show the text "attlesnake  Rattlesnake",some word in the head can not see
3  General Category / Bug Report / ComboGrid has bug if the title is too long on: July 07, 2015, 02:39:11 AM
the ComboGrid in the version of 1.4.2 has bug .if the title text too long.
 and I use IE 10
for example  the select title is "Rattlesnake  Rattlesnake",but the textbox sometimes show the text "snake  Rattlesnake", hide the start text not the end text.

4  General Category / EasyUI for jQuery / Displaying 'no records loaded' message in empty datagrid in easyUi 1.4.2 on: June 30, 2015, 06:31:44 PM
Is there a way to have a datagrid display a message inside the datagrid when there are no rows loaded?  Something like "no records found" - but the message would be provided or overridden by a property like emptyMsg (similar in concept to loadMsg).
I find some help in the linkhttp://www.jeasyui.com/forum/index.php?topic=1881.0

but in the version 1.4.2,it is on use ,is there any other way ?
5  General Category / Bug Report / more than 8 ComboBoxs in one web page has bugs on: June 30, 2015, 02:00:42 AM
 in one web page ,I have more than 8 ComboBoxs,there will find a bug.
and the onSelect event is never fire .and I use Google Chrome 43.0.2357.124,and the version of jquery.easyui.min.js is 1.4.2
and Fix the bug with the code
Code:
var _99a=(p instanceof jQuery)?p.attr("id").substr(_999.itemIdPrefix.length+1):_94f(_998,p);
//my code start
if (_99a=="")
{
  if(p instanceof jQuery)
  {
    var id=p.attr("id").split("_");
    var id2= id.length
_99a=id[id2-1];
  }
}
// my code end
return _999.data[parseInt(_99a)];
my test code is bellow
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basic ComboBox - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
 <script type="text/javascript">
$(document).ready(function () {
 $('#Drpattendancetype').combobox({//出勤下拉框控制显示
                onSelect: function (param) {
alert("2334");
}
});
 });
 </script>
</head>
<body>
<h2>Basic ComboBox</h2>
<p>Type in ComboBox to try auto complete.</p>
<div style="margin:20px 0"></div>
<select class="easyui-combobox" id="Drpattendancetype" name="state"  style="width:200px;">
<option value="">1</option>
<option value="AL">Alabama</option>
<option value="AK2">Alaska</option>
</select>
    <select class="easyui-combobox" id ="ttt1" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">11 </option>
                    <option  value="1">11</option>
                    </select>
<select class="easyui-combobox" id ="ttt2" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">22 </option>
                    <option  value="1">22</option>
                    </select>
<select class="easyui-combobox" id ="ttt3" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">33 </option>
                    <option  value="1">33</option>
                    </select>
<select class="easyui-combobox" id ="ttt4" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">44 </option>
                    <option  value="1">44</option>
                    </select>
<select class="easyui-combobox" id ="ttt5" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">55 </option>
                    <option  value="1">55</option>
                    </select>
<select class="easyui-combobox" id ="ttt6" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">66 </option>
                    <option  value="1">66</option>
                    </select> <select class="easyui-combobox" id ="ttt7" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">77 </option>
                    <option  value="1">77</option>
                    </select>
<select class="easyui-combobox" id ="ttt8" style="width: 150px;" >
                    <option  value=""> </option>
                    <option  value="0">88 </option>
                    <option  value="1">88</option>
                    </select>

</body>
  
</html>

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!