Radgrid not updating
Need Data Source Dim Conn String As String = Configuration Manager.
Connection String Dim conn As Sql Connection = New Sql Connection(Conn String) Dim adapter As Sql Data Adapter = New Sql Data Adapter adapter.
Remember to set the Update Mode to Conditional, otherwise the Update Panel will always be refreshed, not only when there is a postback inside or when a trigger fires.
Using the Client ID property of the control will ensure that you get the right ID even if the control is inside a masterpage, a webcontrol, a repeater or whatever might change the ID.
Rad Grid fires the Need Data Source event each time it needs to be bound to a data source.
So I adapted a bit Ben's solution, and I add hidden text box, and update its value before calling the do Post Back method.
To implement that you need to add 4 "things" in your ASP. You need a textbox to store the value you want to pass over to the Update Panel, but you don't want to show it in the page, so it must be hidden via CSS.
If, at the time of the event, the Data Source property is not set to a valid data source object, the grid will not behave correctly.
In a Need Data Source event handler, you should prepare the data source (list of objects) for Rad Grid and assign it to the grid's Data Source property: Protected Sub Rad Grid1_Need Data Source(By Val source As Object, By Val e As Telerik.