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
Speed selection row with master-details table...
11/07/2011
09:48
Avatar
cekkinus
Member
Members
Forum Posts: 3
Member Since:
11/07/2011
sp_UserOfflineSmall Offline

Sorry for my english. In a configuration master-details table (also in the demo of Trirand site), if i select fastly the row of master, the header title of details is right but the data is the data of selection before....

Regards and compliments.

Andrea

11/07/2011
20:20
Avatar
cekkinus
Member
Members
Forum Posts: 3
Member Since:
11/07/2011
sp_UserOfflineSmall Offline

cekkinus said:

Sorry for my english. In a configuration master-details table (also in the demo of Trirand site), if i select fastly the row of master, the header title of details is right but the data is the data of selection before....

Regards and compliments.

Andrea


Is not a bug but an normal behavior of one ajax request. im solved therefore:

FOR MASTER:(#contratti)

............

onSelectRow: function(ids) {
    valore_contratto=$("#contratti").getCell(ids,'nome_con');
    idcontratto=ids;
    
    if (ids == null) {
    ids=0;
    if (jQuery("#dettagli").jqGrid('getGridParam','records') >0 ) {
        jQuery("#dettagli").jqGrid('setGridParam',{url:"json_select_dettagli.php?id="+ids+"&VAL="+valore_contratto,page:1}).trigger('reloadGrid');
       
        
        }
        } else {
        
        
        
        jQuery("#dettagli").jqGrid('setGridParam',{url:"json_select_dettagli.php?id="+ids+"&VAL="+valore_contratto,page:1}).trigger('reloadGrid');

............

FOR DETAILS(#dettagli)

loadComplete:function(responce){
                                  
                                  jQuery("#dettagli").jqGrid('setCaption',"Dettagli Contratto: "+responce.VAL);
                                
                                  },

.........

IN PHP FILE:

$VAL=$_GET['VAL'];

............

$responce = new stdClass();
$responce->page = $page;
$responce->total = $total_pages;
$responce->records = $count;
$responce->VAL = $VAL;

.............

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
54 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