I have a WebCombo as EditorControl for a column in my WebGrid. When I choose an item from theWebCombo to change the actual value for the cell theAfterCellUpdate (JavaScript) function is fired.. as long as I don't choose the item with ID = 0. I can choose any other item (as many times as I want) and everything works fine, but as soon as I choose the item with ID = 0, the event is fired that time but it won't fire again no matter what I choose.
SInce I already had a "omg, that was it! It was so simple and I didn't see it!" moment [http://forums.infragistics.com/forums/t/14206.aspx] I'm checking if the above described behavior could be caused by some misconfiguration or something like that.
Thanks for your replies.
Hello,
I have a similar problem with AfterCellUpdate client side function not firing on some cases in the first column of the editable grid.
I found the moment you have any formatting code assigned for any column the AfterCellUpdate fails to fire.
Following was my scenario:
this.Bands[0].Columns[columnNo].Format = "###,###,##0";
The moment I change the cell value to 1000 the AfterCellUpdate does not fire only for somw columns (Looks very strange to me).
The only resolution I found was remove the column formatting it works absolutely fine :)
Thanks,Chaitanya...
Hi,Chaitanya. Thanks for your reply. I have tried what you found in your scenario but there's been no luck in mine. For those WebCombo-edited columns I have a string.Empty format, but event setting no format at all the problem's still there. I found out that if I use the exact same combo to edit a TemplatedColumn new Column with default configs then everything works fine, so I think I might be missing some config.
Hopefully someone else has experienced something similar and found another way to solve it. Thanks.
[It worked for a TemplatedColumn, then I tried a regular UltraGridColumn and it works as well.. the must be some config messing things up]
This might be a type issue. In DropDown columns, you have to be careful to make sure your database data type matches your column type and the type of the dropdown's values. In this case, could the format string be incompatible with the column type or the data type?
HTH
Hi, Ed. I have already set the Types properly. Proof of that is I have all other items (ValueMember > 0) working just fine. The only problem I have is when I select the item which ValueMember = 0, then the AfterCellUpdate is fired that time but if I try to change the value again it just won't fire.. The value of the cell is the text I have chosen from the combo, but if I enter editing the cell, the value passed to the combo is again the one with ValueMember = 0 and it'll never change again :-(
As I said, there must be some config because I can get it to work in a new UltraGridColum, but I have been adding/removing all the configs I have (and can think of) with no luck so far.
Thanks for your help.
I have been struggling with this for quite a while and still haven't found what could be causing the problem. Any thoughts you could share on this one?