EasyUI Forum
May 05, 2024, 11:07:21 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  General Category / EasyUI for jQuery / Re: TypeError: row[opts.textField] is null in firebug on: February 18, 2015, 12:11:08 AM
Thank you for the response .It worked!! Smiley
2  General Category / EasyUI for jQuery / Re: TypeError: row[opts.textField] is null in firebug on: February 17, 2015, 11:17:35 PM
[{"id":"1","text":"middle"},{"id":"2","text":"poor"},{"id":"3","text":"rich"}.........]
3  General Category / EasyUI for jQuery / Re: TypeError: row[opts.textField] is null in firebug on: February 17, 2015, 11:15:44 AM
Yes it has is and text to each record...
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
5  General Category / EasyUI for jQuery / Re: Combobox is not giving valueField value to post the parameters!!!!Urgent help re on: February 03, 2015, 05:23:28 AM
Thank u for the valuable responce. It worked..
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
7  General Category / EasyUI for jQuery / Re: Combobox is not giving valueField value to post the parameters!!!!Urgent help re on: February 02, 2015, 04:39:15 AM
Only on change of combobox its setting the valueField..please help me urgent
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
9  General Category / EasyUI for jQuery / Re: two requests are posting on reloading the data in combobox on select of another on: December 04, 2014, 07:20:16 PM
Awaiting for your valuable response
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.


12  General Category / EasyUI for jQuery / how to post datagrid paging params page nd rows to php file? on: November 03, 2014, 07:32:10 AM
How to post datagrid paging parameters to PHP file.please let me know.
13  General Category / EasyUI for jQuery / Re: How to give class name to datagrid column fields on: November 01, 2014, 09:00:48 PM
Please let me know if i can give class name to columns fields from javascript.Becuase Jeasyui handling my markup tags to display none , and its tags dynamically to datagrid without my class name.
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}]
15  General Category / EasyUI for jQuery / Re: Numberbox ,datebox types are not displaying with easyui-datebox class on: October 30, 2014, 05:55:30 AM
Thanks lot. Smiley....I had created text box , datebox number box from JavaScript.then it worked fine.
May I know what exactly this parser do ?
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!