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??
Paul
woops, there is a typo in the subject. The form is not "filled" with data.
Hello Pavel,
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.
Code example:
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Label runat="server" Text="Field 1" Style="margin-right: 10px" /><asp:TextBox runat="server" ID="txtSampleTextBox"></asp:TextBox>
<br>
<br></br>
<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">
…
</ContentTemplate>
</asp:UpdatePanel>
Let me know if you have any questions or concerns.
Best Regards,
Maya Kirova
Infragistics, Inc.
http://www.infragistics.com/support