EasyUI Forum
September 14, 2025, 02:00:06 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid() method not working in IE  (Read 7050 times)
Ashanka
Newbie
*
Posts: 2


View Profile Email
« 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.

Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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
Logged
Ashanka
Newbie
*
Posts: 2


View Profile Email
« Reply #2 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.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!