Title: datagrid() method not working in IE Post by: Ashanka on May 12, 2015, 03:13:42 AM Hi,
I am using datagrid("getSelections") method to select the value of the whole selected row(s), and it works perfectly in Mozilla and Chrome but not in Explorer. In explorer $('#dg').datagrid('getSelected') returns null if I select one row. Please find below the code I am using. if ($('.datagrid-cell-check input:checkbox:checked').length>1){ showInfoMsg('Select only one row to edit.'); }else{ var row = $('#dg').datagrid('getSelected'); if (row){ document.location.href = "updColumn.cfm?col_id="+row.col_id+"&rpt_id=#getParam("rpt_id")#"; } else { showInfoMsg('Select a row you want to edit.'); } } Please tell me if this is an existing problem in explorer and if there is an work around. Title: Re: datagrid() method not working in IE Post by: jarry on May 12, 2015, 07:17:51 AM Please refer to this example http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=DataGrid%20Selection
Title: Re: datagrid() method not working in IE Post by: Ashanka on May 12, 2015, 11:38:08 PM Hi Jarry,
Thank you for the reply. I am using the same logic as the example you mentioned. It works perfectly in Mozilla and Chrome but not in Explorer. |