dhtmlxWindow


Hello again



I have a grid placed on tab window. then pressing on grid row i open a new window there i need all data from the selected row in form. once it closed and i select a new row,window is shown but,no form inside. as i understand after window closed i have to deactive event i use to open it and load data.



here 2 files



grid.php



  

    div.gridbox div.ftr td{
        text-align:right;
        background-color:#E5F2F8;
        border-right:0px solid gray;
    }
    div.gridbox_light table.hdr td {
        text-align:center;
    }

  





  




               

               
                   
                       
                         
                           
                           
                           
                           
                           
                       
                       
                           
                           
                       
                   
Group:
       
First Name: Last Name:
Last Name:

                  
               


           
           



tabs.php



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”><head>

MAS



















 










<?php include("scheduler.php"); ?>  






<?php include("grid.php"); ?>  








<div id=“a3” name=“פרטים אישיים”  width=“100px”>








 



 
   
     
     
     
     
     
     
     
     
   
   
     
     
     
     
     
     
     
     
   
   
     
     
     
     
     
     
     
     
   
 
   
       
     
שם משפחה
       
     
שם פרטי
       
       
     
קבוצה
               
               













<div id=“a4” name=“ניהול נוכחות”  width=“100px”>
   

<div id=“a5” name=“הגדרות”  width=“100px”>
  










 



 



thanks



 


Hello,


after the window closes, its content is removed. So, possibly it will be better to redefine close button behavior and hide the window (not to delete it) when the “close” button is pressed.


var usrWin;


usrWin = new dhtmlXWindows();
usrWin.enableAutoViewport(false);
usrWin.attachViewportTo(“a_tabbar”);
usrWin.setImagePath(“libs/imgs/”);
w2 = usrWin.createWindow(“w2”, 40, 40, 920, 350);
w2.setText(“user_data”);
w2.attachObject(‘objForm’,true);
w2.button(“close”).close = function() {
w2.hide();
}
w2.hide();

function windowUser() {
w2.show();
}

but each time its different data depends on selected row. is that will work? i need only selected data in the window form.


You can change data inside form using document.getElementById(fieldId).value = someValue approach.


hi



the script in your first answer is not work. once i put it in code grid data is empty


Hello,


please provide the complete demo to recreate the issue (it can be also sent to support@dhtmlx.com)