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
Rumen,
The example requires databas that I do not have access to... I still will not know what do I need to change in order to achieve the "DEFAULT" behavior.
I copied ASPX example grid and replaced data source with mine.... got the same result, any data change in cell causes page postback...
Thank you Andrei