Show Posts
|
Pages: [1] 2
|
4
|
General Category / EasyUI for jQuery / TypeError: row[opts.textField] is null in firebug
|
on: February 17, 2015, 04:19:41 AM
|
on typing of combobox text box.I am getting below error in fire bug.
TypeError: row[opts.textField] is null return row[opts.textField].toLowerCase().indexOf(q.toLowerCase())==0;
I think due to that error once i filter the less data is loading in combo.If i click outside again the full records are shown.
here is my syntax of combo box <input id="proj_Name" class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/?action=get_list',method:'get',hasDownArrow:false" style="">
Please help me to avoid this typeerror.
Thank you, Kushnoor
|
|
|
6
|
General Category / EasyUI for jQuery / Re: Combobox is not giving valueField value to post the parameters!!!!Urgent help re
|
on: February 02, 2015, 11:00:45 PM
|
Yes I understand that I should set the Value.But I can't set static values.On click of Row edit in Datagrid I m getting the Values and populating in Popup to edit the datagrid row fields. And I have put the type of cfr_name as type of combobox <th data-options="field:'cfr_name',width:'6%',sortalbe:true,align:'center',v editor:{ type:'combobox', options:{ valueField:'id', textField:'text', method:'get', url:'/demand/?action=get_cfr_list', } }">CFR</th> But I m retrieving the edited row details on click of row in Datagrid. If I select the data from drop down Its selecting the value and posting to server 'value',If I dont Select Its sending me the 'text' as 'value'
My datagrid json data ex of 1 row... [{"project_id":"13","project_name":"xxx", Device Lab_EEDJOME","cfr_name":"Vz KAM - Jon Meier" Do I need to send combobx structure data with in the Json data of Datagrid?pls help
|
|
|
8
|
General Category / EasyUI for jQuery / Combobox is not giving valueField value to post the parameters!!!!Urgent help re
|
on: February 02, 2015, 04:33:30 AM
|
Hi , Combobox type editor is not giving me value while posting the form data.How to pic the id from the Combobox List.As its only giving me the text value from datagrid row for eg :- In my html i have below cfr-cu textbox of type combo. In HTML:- <input id="cfr_cu" class="easyui-combobox" name="cfr_name" data-options="valueField:'id',textField:'text'"> And I am loading dynamic data in my javascript like below var ch =[{"id":"1","text":"AT&T"},{"id":"5","text":"BAMA"},{"id":"2","text":"ECSO"}] $('#cfr_cu').combobox('loadData', ch); $('#cfr_cu').combobox('setValue', editedPrjJson.cfr_name);//The Selected Value which I am getting it from Editors of Datagrid. var editors = $('#dg').edatagrid('getEditors', editRowIndex); for (var i = 0; i < editors.length; i++) { //console.log(editors.target); obj += '"'+editors.field+'":"'+editors.oldHtml+'"'; if(i<editors.length-1){ obj +=','; } }
But I am not getting the valueField:'id' ...Please help me ASAP....
Thank you, Kush
|
|
|
10
|
General Category / EasyUI for jQuery / two requests are posting on reloading the data in combobox on select of another
|
on: December 04, 2014, 03:35:00 AM
|
Hi, I have a requirement of OnSelect of one Combobx I should load dynamic data in another combo box.While doing so request is posting twice one post and one get.Please have a look of my both comboboxes and give your valid inputs.
<input id="dmn" class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/demand?action=get_domain_list', onSelect: function(rec){ var url = '/demand?action=get_subdomain_list?id='+rec.id; $('#sub_Dmn').combobox('reload', url); }">
<input id="sub_Dmn" class="easyui-combobox" data-options="valueField:'id',textField:'text',url:'/demand?action=get_subdomain_list'">
|
|
|
11
|
General Category / EasyUI for jQuery / How to style datagrid column headers
|
on: November 04, 2014, 03:04:37 AM
|
Hi, I would like to style a specific column div element of ( datagrid-htable - >datagrid-header-row -> <td field="project_name" class=""> <div class="datagrid-cell datagrid-cell-c1-project_name" style="text-align: left;">)bold element .
I tried styler method like this. {"field":"project_name","title":"project_name","sortable":true,"editor":"text","maxLength":100,"width":"9%","align":"left",styler: function(value,row,index){return 'text-overflow: ellipsis;color:red;';}} But it is applied to body cells of that columns. Please help me.
|
|
|
14
|
General Category / EasyUI for jQuery / How to give class name to datagrid column fields
|
on: November 01, 2014, 04:25:51 AM
|
I have a requirement of loading dynamic columns on click of a left arrow.For that i am looping over "table th" array with class name.And have given Class name to th fields from markup.
<th class="monthTd" field="jan 14" width="80">Jan 14</th> <th class="monthTd" field="Feb 14" width="80">Feb 14</th> <th class="monthTd" field="Mar 14" width="80">Mar 14</th> <th class="monthTd" field="Apr 14" width="80">Apr 14</th> <th class="monthTd" field="May 14" width="80">May 14</th> <th class="monthTd" field="Jun 14" width="80">Jun 14</th> <th class="monthTd" field="Jul 14" width="80">Jul 14</th> <th class="monthTd" field="Aug 14" width="80">Aug 14</th> <th class="monthTd" field="Sep 14" width="80">Sep 14</th> <th class="monthTd" field="Oct 14" width="80">Oct 14</th> <th class="monthTd" field="Nov 14" width="80">Nov 14</th> <th class="monthTd" field="Dec 14" width="80">Dec 14</th>
$('th.monthTd').each(function(m) {} ----Looping th array with class name.. But the problem is on click of right arrow months will move to next months with columns. for that i need to everytime call datagrid with modified columns array. $('#dg').edatagrid({ columns:[new set of th fields], }); For first time its dynamically changing column headers because the .monthTd is found in markup. Next time when i filled dynamically from datagrid classname become empty.
So i want to set class name in my columns array.pls look into attachment nd do reply.
[ { title="Apr 2014", field="Apr 2014", width=80},{ title="Apr 2014", field="Apr 2014", width=80}]
|
|
|
|