Getting a value of a specific column with Multiple Column WebCombo

2 replies. Last post: December 9, 2010 7:00 PM by Ellen
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ellen Member

Hi. I have a WebCombo called wcboCompany with 3 columns. First two columns are visible, the last column is hidden.

 

If the columns are visible, I have no problems retrieving their values, but I cannot retrieve the value of the hidden column. The problem is that var cells (Client side code) retrieves only two visible cells, the hidden cell is not retrieved.

 

Server side code:

wcbo.Columns.Add("CompanyID")

wcbo.Columns(0).Width = 230

wcbo.Columns.Add("CompanyName")

wcbo.Columns(1).Width = 70

wcbo.Columns.Add("CompanyGroup")

wcbo.Columns(2).Hidden = "True"

wcbo.Columns(2).RenderOnHidden = "True"

 

 

Client side code (on row selection):

 

var combo = ISGetObject("wcboCompany");

var rows = combo4.GetRows();

var cells = rows[selectedIndex].GetCells();  // Only two visible cells are retrieved

var CompanyName = cells[2].Text;              // Hidden cells[2] doesn’t exists…       

 

Thanks.

All times are GMT -5. The time now is 4:47 PM.
Previous Next