Hi all,
I would like to know if there is a way I can track that a cell has been selected and the value has changed?
Here is my situation:
I have a webgrid with 4 columns, column 1 has customer ID, column 2 has Customer Name, column 3 has contains a dropdownlist that has a list of States (MI, NY, OH, etc) and column 4 filters a list of cities depending on what State the user selected. The webgrid has many rows and on some rows, I would like to select the States value from the dropdownlist and from the selected State I would like to turn on a boolean value that a State has been selected and the State (value) that the user selects. Btw, I am using a built-in dropdownlist from the webgrid (Type="dropdownlist")
pseudo:
- Select State from ddl
- Turn on Boolean Value (bSelected)
- Retrieve the selected state
- Show the Cities column (the fourth column)
Thanks very much inadvance!
HS2
You might be able to do something with the AfterCellUpdate client side event of the webgrid, although it is possible that this even is only fired after you've left the cell. Or the BeforeCellUpdate event might be better because one of it's parameters is the new value of the cell.
If you can use javascript try http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=2906
if not, you'll have to do a postback, in the postback you'll have to use updateRow or updateCell event and than filter the column you want