I would like to cancell automatic post back evry time a change a cell data in UltraWebGrid.
igtbl_cancelPostBack(gridID); in OnAfterCellChanged client side event handler.
I was wondering if there are more simple solution that does not require client scripting?
Thank you in advance.
Andrei
Hello apalvinski,
If you are using The CellUpdate Handler I would conceder using a different one. Cell update triggers a postback.
Patrick
Patrick,
Thank you very much for your help.
My question is: Can I cancel postback without using client side java script?
Thank you,
It really depends on your setup. By default, when cell editing is enabled, postback does not occur, and the cells are updated when you submit the form.
You can take a look at the example here to see how this works:
http://samples.infragistics.com/2008.2/webfeaturebrowser/WebGrid/DatabaseUpdating/DatabaseUpdating.aspx
But if you setup the grid in such a way, that it requires postback for a certain function, there is no way to cancel that other than calling the cancel postback javascript function in the "before" client-side event handler.
Thank you! I am trying to achieve default behavior!
I am sorry for silly question.. What do you mean by "when cell editing is enabled"??
Thank you in advance. Andrei
Then in this case, if the behaviour in the sample is what you want to achieve, I suggest you to just copy/paste the ASPX delcaration of the grid in the sample and use it in your own example - this might be the quickest way to go.
Cell Editing Enabled typically means setting the AllowUpdateDefault property of the grid to true (in DisplayLayout)
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Infragistics2.WebUI.UltraWebGrid.v7.3~Infragistics.WebUI.UltraWebGrid.UltraGridLayout~AllowUpdateDefault.html
I set AllowUpdate... for the grid everywhere possible, but I am still geting PostBack on any cell change...
This seems to be default behavior I am getting... ??
Hello,
Did you copy paste the entire ASPX setup of the grid in the example I've sent you (provided this is the behaviour you want to achieve)?