Need to check whether clicked cell is part of filter row or not

1 reply. Last post: March 2, 2016 8:25 AM by Erwin Sanders
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Sachin JainMember

Hi,

Our reuirement needs to find that clicked cell of grid column is filter row or not .

The required column's filter is disabled by 

MyColumn.FilterEditType = FilterEditType.NoEdit;

OncellClick event it always return  wgIsFilterRow = false even if clicked cell is part of filter row cell.

The method is written as

 

function WebGrid1_OnCellClick(controlId, tblName, rowIdx, cellIdx, cellElm) {
                  var ColumnName = wgGetColNameByCell(cellElm);
                   var WebGrid1 = ISGetObject(controlId);
                   var WebRow = WebGrid1.RootTable.GetRow(rowIdx);
                   var rowElement = WebRow.GetElement();
                   var flag = wgIsFilterRow(rowElement);

//

//
}

Also found that if we check innerText of this cell then it shows the innerText of fisrt row of webgrid.

Can you suggest a way to find type of clickedcell ?  RowType == "Record" retuned for both dataRow and filterRow !

 

thanks

Sachin

 

 

    

All times are GMT -5. The time now is 5:48 AM.
Previous Next