I am new to infragistics and am trying to find the grid row that fires when a change is made to a dropdown on the row, in the grid. I know when the dropdown changes, but can't find correct event to get the grid row's other column info.
So far I've tried updaterowbatch, updaterow, updategrid, updatecellbatch, updatecell and none seem to fire on postback.
I'm sure I'm missing something simple that someone has found long ago...
Thanks!
Hello All,
I think I might have a suggestion here that could probably here a little. The ASPX template is parsed at the very beginning of the lifecycle of the Page (OnInit). This btw coincides with where Visual Studio places all event hooking by default. If you want to respond to a changed event, you need to wire the event as early as OnInit - doing so in Page_Load or in a postback event handler like button click may not work in all cases.
So if you are witing events programmatically, just make sure you do so in OnInit.
OnUpdateCell="UltraWebGrid1_UpdateCell"
and change de protection level to public
public void UltraWebGrid1_UpdateCell(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
Hope this helps if you haven't found the answer yet.
I just tested it out and it does recognize it.. this is the code that i wrote
tc.Key = "TemplatedColumn";
UltraWebGrid1.Columns.Add(tc);
listaValores.ValueListItems.Add(1, "One");
tc.ValueList = listaValores;
UltraWebGrid1.UpdateCell += new Infragistics.WebUI.UltraWebGrid.UpdateCellEventHandler(UltraWebGrid1_UpdateCell);
and the function itself
void UltraWebGrid1_UpdateCell(object sender, Infragistics.WebUI.UltraWebGrid.CellEventArgs e)
{
}
my final question...just wonder if the grid doesn't recognize a celltemplate dropdown in a templatedcolumn when it is changed?
<igtbl:UltraWebGrid ID="gridx" OnUpdateCell="gridx_UpdateCell" ... ....
which sets the function you'll be calling when that event fires.. taht's usually set automatically.. That's the last thing I could think of