I seem to have a problem. When I select a row in a webgrid. The row has data which I fill into the various ASP.NET controls, and although I see the values being transferred in code-behind, the UI does not get refreshed w/ those values. WebTab is set to "LoadOnDemand". Not sure what else I am missing??
woops, there is a typo in the subject. The form is not "filled" with data.
Thank you for posting in our forum.
By default the WebDataGrid makes ajax requests, which refresh only the grid itself. Since the text boxes are not part of the grid their UI will not be updated after the ajax request initiated by the grid.
To update the whole area you can wrap it in an UpdatePanel and set the WebDataGrid’s option EnableAjax to "false" – this will ensure that grid won’t initiate an ajax request. In this way the request will be handled by the UpdatePanel, which will update its whole content area.
<asp:Label runat="server" Text="Field 1" Style="margin-right: 10px" /><asp:TextBox runat="server" ID="txtSampleTextBox"></asp:TextBox>
<asp:Label runat="server" Style="margin-right: 10px" Text="Field 2" />
<asp:TextBox ID="txtSampleTextBox2" runat="server"></asp:TextBox>
<ig:WebDataGrid ID="WebDataGrid1" runat="server" AutoGenerateColumns="False" Height="350px" OnRowSelectionChanged="WebDataGrid1_RowSelectionChanged" Width="400px" EnableAjax="false">
Let me know if you have any questions or concerns.