We use a UltraWebGrid to create a custom server control. This grid is editable and the properties of DisplayLayout.AllowUpdateDefault, Column.AllowUpdate, and Cells.AllowEditing is enabled. However, none of the grid cell is editable. What could be the problem?
anwang168 said:We use a UltraWebGrid to create a custom server control.
Can you provide more detail as to how you're including WebGrid in your custom server control?
If you're emitting the HTML of the grid to your control, it's possible that you might not also be accounting for the JavaScript files used by the control. This would cause the grid to be nearly totally non-responsive, since our client-side object model would not have been loaded. You would need to emit the necessary script tags to the page yourself in this case, including the JavaScript call to igtbl_initGrid() to initialize the grid when the page completes rendering on the client.
If you're using some other approach, we'll need more information as to what you're doing.
Thanks for the explaination and I think that is the problem.
We have a page which unload a control and load this UltraWebGrid custom server control dynamically in responding to a page event using ajax. The Page does not go through the full life cycle when displaying this customer server control. That was the reason why the whole grid becomes read only. The data and format is renderd without any problems, though.