I've got a grid with two columns. ColumnA is regular text, ColumnB is a dropdownlist. I want to bind the values in ColumnB's valuelist based on the value in ColumnA, on a row-by-row basis. I got it working by callingback and rebinding the valuelist on a ActiveRowChange, but that screws up focus, and isn't very "smooth" either. Is there another way, preferably one that doesn't require a postback/callback?
I think it might be easier to filter the valuelist, but the total (non-filtered) list is big (3000+ rows), and my grid would balloon if I put that many rows into the dropdown for every row.
Can anyone point me in the right direction?
Thanks!
There's an example of how to do that using the WebCombo control in the samples browser.
It appears the webcombo control will not work correctly (when bound to a system.data.dataset) unless I have AutoGenerateColumns = True. Basically, it will bind, but when I click on the dropdown arrow it will not drop down. There is no response whatsoever. The example you provided seems to confirm this theory, as it appears to have AutoGenerateColumns on, too. Can you confirm or deny this?
Here is what I did to test this:
Apparently, setting IsBound = True on the columns in a WebCombo w/dataset causes the control to stop working entirely. I'd call that a bug. It is certainly contrary to how I understand IsBound works in a regular grid.
geek,
i am also using dropdown in my grid first column and i am able to bind the columns. but dropdown is displaying only after double clicking on the first column cells... is there any way to display the dropdown bydefault without double click so that user can know that there is dropdown?
surendranest said: geek, i am also using dropdown in my grid first column and i am able to bind the columns. but dropdown is displaying only after double clicking on the first column cells... is there any way to display the dropdown bydefault without double click so that user can know that there is dropdown?
I have this exact same problem. I have to double-click OR hit <enter> on the column in order for the dropdown to display.
--------------------------
dam1015 said: geek, i am also using dropdown in my grid first column and i am able to bind the columns. but dropdown is displaying only after double clicking on the first column cells... is there any way to display the dropdown bydefault without double click so that user can know that there is dropdown? I have this exact same problem. I have to double-click OR hit <enter> on the column in order for the dropdown to display.[/quote]
geek, i am also using dropdown in my grid first column and i am able to bind the columns. but dropdown is displaying only after double clicking on the first column cells... is there any way to display the dropdown bydefault without double click so that user can know that there is dropdown?
dam1015 said: Has anyone come across a solution to this problem? -------------------------- I finally found the solution http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/WebGrid_Place_a_Cell_into_Edit_Mode_on_Cell_Click.html You need to place cell into edit mode as described above. In simple terms, add the following: In Visual Basic:Imports Infragistics.WebUI.UltraWebGrid ...IN THE ON_LOAD section Me.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes Me.UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit In C#:using Infragistics.WebUI.UltraWebGrid; ... this.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes; this.UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit; geek, i am also using dropdown in my grid first column and i am able to bind the columns. but dropdown is displaying only after double clicking on the first column cells... is there any way to display the dropdown bydefault without double click so that user can know that there is dropdown? [/quote]
I finally found the solution
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/WebGrid_Place_a_Cell_into_Edit_Mode_on_Cell_Click.html
You need to place cell into edit mode as described above. In simple terms, add the following:
In Visual Basic:
Imports Infragistics.WebUI.UltraWebGrid ...
Imports
IN THE ON_LOAD section
Me.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes Me.UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit
Me
In C#:
using Infragistics.WebUI.UltraWebGrid; ... this.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes; this.UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit;
using
this
My dropdown does have the AllowUpdate set to yes and CellClickAction set to edit, but when I enter the cell/drop-down, the existing value disappears. That's not desired behavior. Perhaps I'm missing another setting???? What could it be?