WebGrid rowIndex equal 1 when click on filter row

1 reply. Last post: August 19, 2010 3:27 AM by Niven Prasetya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

 

Hello InterSoft,

When I click field in a WebGrid filter row then WebGrid_OnCellClick function executed.

Somehow rowindex became equal 1, which point me to 2nd row in a grid.

How to escape executing WebGrid_OnCellClick() by clicking on "Filter" row in a Grid

Or how to set rowindex equal -1 when clicking on Filter row

 

function WebGrid_OnCellClick(gridId, tblName, rowIndex, cellIndex, cellEl) { try { var grid=ISGetObject(gridId); var wgRow = grid.RootTable.GetRow(rowIndex); var htmlRow = wgRow.GetElement(); if(!wgIsFilterRow(htmlRow)) //DO Code here } catch(e) {}

}

All times are GMT -5. The time now is 11:33 PM.
Previous Next