iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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
Hi Sachin,
I found a way to get the clicked cell type whether it's Filter Row or not. Use GetRowByElement method with a cellElm parameter to get the grid's cell type. Here's the function code that i use.
function WebGrid1_OnCellClick(controlId, tblName, rowIdx, cellIdx, cellElm) { var obj = ISGetObject(controlId).GetRowByElement(cellElm); if (obj.Type == "FilterRow") { alert("This is Filter Row"); } else { alert("This is not Filter Row"); } }
Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname