Hello,
I have a slight problem using UltraWebGrid. I am using version 7.2 of the controls.
I have a WebGrid on a page, columns defined on the datasource and i set the grid to only edit through the RowEditTemplate. I have made a custom control to display in that RowEditTemplate and propagate the values into that control on the SelectedRowsChanged event from the grid, so that on showing the RowEditTemplate, it has the current values.
I have not found out how to react to the <input type="button" value="OK"> for saving, so i replaced it with an asp:Button and react to the event serverside (maybe that is the first part of the problem?).
First Problem: On saving, everything goes fine, the EditRowTemplate div disappears from view and i can go on using the grid, when i click on another row, the values get loaed into the RowEditTemplate, BUT on the next click for editing, the RowEditTemplate doesn't show up anymore.
Second Problem (Actually a minor glitch): As i said, first click updates the values in the RowEditTemplate for that band (which is the only band actually), but also the Paging links (all the numbers for the pages at the bottom of the grid) disappear.
Any input would be greatly appreciated.
Best regards,
Alex
It's not a good idea to put a button (or any other control) causing a server-side postback in a row edit template. Using an ASP.NET button in the row edit template could be causing any or all of these problems.When you complete your editing with a row edit template, the values you've entered are updated into the corresponding row of the WebGrid. You can then respond to events of the WebGrid (likely either UpdateRow or UpdateRowBatch) to pass these values into your underlying data store on the server.This may not be an automatic process, depending on the controls you have in your row edit template. Please refer to this article from our online Knowledge Base for information on how to use the WebGrid's client-side events to copy data from complex controls into the corresponding row of the grid.Please remember that these forums area a peer-to-peer resource to share issues and ideas with other Infragistics users. If you require official support from Infragistics for further assistance, please submit a support incident to Infragistics Developer Support from this page of our website.
Thanks, i will definitly have to solve this differently.