Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Problem with 'filterToolbar'
01/12/2010
22:09
Avatar
nicostabile
Member
Members
Forum Posts: 3
Member Since:
24/09/2010
sp_UserOfflineSmall Offline

Hi to all! i´m new with jquery, first of all thanks about this great plugin.

I have a problem when i use filtertoolbar, when i search with the toolbar when i select the row that i want, the row_id is the id of the row of the original grid, but when i do    var rows= jQuery("#list10").jqGrid('getRowData'); the count of elements is only the result of the search. i do this into OnselectRow:

So if i select a result of the search i can´t take the row_id correct.

This is my grid:

jQuery("#list10").jqGrid({
   url: buildUurl,
 datatype: "json",
    colNames:['Id Propietario','Propietario','Nombre Propietario', 'Apellido Propietario'],
    colModel:[
     {name:'id',index:'id', width:55, hidden:true},
     {name:'title',index:'title', width:140},  
  {name:'nombre',index:'nombre', width:140},
     {name:'apellido',index:'apellido', width:140},  
    ],
    rowNum:10,
    rowList:[10,20,30],
    pager: '#pager10',
    sortname: 'id',
 loadonce:true,
    viewrecords: true,
    sortorder: "desc",
 multiselect: false,
 ignoreCase: true,
 caption: "Propietarios",
 onSelectRow: function(ids) {
  if(ids == null) {
   ids=0;
   if(jQuery("#list10_d").jqGrid('getGridParam','records') >0 )
   {
    var sl= jQuery("#list10").jqGrid('getGridParam','selrow');

     var rows= jQuery("#list10").jqGrid('getRowData');
    jQuery("#list10_d").jqGrid('setGridParam',{url:buildUurl2+"?id="+rows[sl]['id'],page:1});
    jQuery("#list10_d").trigger('reloadGrid');
    jQuery("#list10_e").jqGrid('setGridParam',{url:buildUurl2+"?id="+rows[sl]['id'],page:1});
    jQuery("#list10_e").trigger('reloadGrid');
   }
  } else {
   var sl= jQuery("#list10").jqGrid('getGridParam','selrow');
   var rows= jQuery("#list10").jqGrid('getRowData');
   jQuery("#list10_d").jqGrid('setGridParam',{url:buildUurl2+"?id="+rows[sl]['id'],page:1});
   jQuery("#list10_d").trigger('reloadGrid');  
   jQuery("#list10_e").jqGrid('setGridParam',{url:buildUurl3+"?id="+rows[sl]['id'],page:1});
   jQuery("#list10_e").trigger('reloadGrid');
    
  }
 }
});

  jQuery("#list10").jqGrid('navGrid','#pgwidth',{edit:false,add:false,del:false,search:false});
  jQuery("#list10").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false,ignoreCase: true});

I this grid i work with other 2 grid and all is fine, but the result of filltertoolbar don´t works correctly for me.

I hope that my question is clear,

thanks for all,

Nicolás.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
51 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information