Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Euler Sánchez Gómez on May 26, 2009 16:42
open dhtmlx forum
onRowSelect Grid

Hi dhtmlxGrid support team

i have the next question, when i load my grid element and show some data all works fine, i load data with
mygrid.loadXML("./my_data.php");

the problem come when i selected one row, a different color indicates that these row is selected, but when i select another row, the two rows (the one before selected and the new selected row) stay with the color on "shadow" (like if i press ctrl and then selected some rows), what would be the problem here??

thanks in advance for you help

here's my code

<script type="text/javascript">
grid = new dhtmlXGridObject('tableinfo');
grid.setImagePath("./images/");
grid.setHeader("OC,PH,FC,Status,Type P,Total B,Total N,Notes,Send");
grid.setInitWidths("90,80,90,80,70,90,90,210,60");
grid.setColAlign("center,center,center,center,center,center,center,center,center");
grid.setColTypes("link,link,ro,img,ro,ro,ro,ro,img");
grid.setSkin("my_skyn"); //i modified a css and make my own skin    
grid.enableMultiline(true);
grid.enablePaging(true,10,5,"pagingArea",false,"infoArea");
grid.init();
grid.loadXML('./my_data.php');


</script>
Answer posted by dhxSupport on May 27, 2009 00:47
Problem may occur because of after selecting new row old row class doesn't change to the "unselect". Try to use standart dhtmlxGrid skin and check if issue will occur. 
Answer posted on May 27, 2009 07:50

hi, i used a standar skin "light" and the problem continue, like you said, after selecting new row, old row class didn´t change to the "unselect", what would be the problem?

i'm using the next version package -> "dhtmlxGrid_pro_v16_80512" in a pro version, thanks in advance for your help!!

Answer posted by dhxSupport on May 27, 2009 08:51
Please send us example where we can reproduce this issue. Please send it directly to the support@dhtmlx.com.
Answer posted on Jun 12, 2009 08:37
hi, i was cheking wthat would be the problem, and it was in my xml generation, i was using the same id for diferent cells, for instance, 10 cells with the same id, the unselected row doesnt work in his 10 cells, but with diferent id works fine.

many thanks for your help!!