Hi,
Thanks in advance for your help.
I have a rad grid connected to a SQL database, and also a button that pops up and allows user to add more items to the radgrid.
The data added from the seperate window is added into the radgrid and shows when I rebind it, so when I 'Import' the data from the pop up how do I rebind the radgrid in the parent window to display the data?
Many Thanks
Ryan
UPDATE: I now have it running how I need it to, however it is still not updating the screen without refreshing it, How do I add the Ajax controls?
The code it runs through currently
then
Thanks once again
Thanks in advance for your help.
I have a rad grid connected to a SQL database, and also a button that pops up and allows user to add more items to the radgrid.
The data added from the seperate window is added into the radgrid and shows when I rebind it, so when I 'Import' the data from the pop up how do I rebind the radgrid in the parent window to display the data?
Many Thanks
Ryan
UPDATE: I now have it running how I need it to, however it is still not updating the screen without refreshing it, How do I add the Ajax controls?
The code it runs through currently
function refreshRadGrid() {
var masterTable = $find("<%=RadGrid2.ClientID%>").get_masterTableView();
masterTable.rebind();
}
Protected
Sub
RadGrid2_NeedDataSource(sender
As
Object
, e
As
Telerik.Web.UI.GridNeedDataSourceEventArgs)
Handles
RadGrid2.NeedDataSource
' MATERIALS FOR DAYSHEET
Dim
dt
As
New
DataTable
If
lblHeaderID.Text <> 0
Then
Dim
itm
As
New
dbrcOrdItems(Session(
"ConnectionString"
))
Dim
HeaderID
As
Integer
= lblHeaderID.Text
dt = itm.ListforDaySheet(HeaderID)
RadGrid2.DataSource = dt
End
If
RadGrid2.DataSource = dt
End
Sub
Thanks once again