I have 2 tab pages each containing web user control.
TabPage1 contains the ctrl1 and TabPage2 contains the ctrl2
Inside the ctrl1 i have RadGrid with list of not added items while inside the ctrl2 i have list of already added items.
Once i remove an added item i want it to reflects the items to be added. Which means i want to redind the ctrl1's RadGrid.
So when i remove an item and click the tabpage1 i want to see the removed item in the list. I tried this:
But it doesn't work even if i get no errors.
Thanks
TabPage1 contains the ctrl1 and TabPage2 contains the ctrl2
Inside the ctrl1 i have RadGrid with list of not added items while inside the ctrl2 i have list of already added items.
Once i remove an added item i want it to reflects the items to be added. Which means i want to redind the ctrl1's RadGrid.
So when i remove an item and click the tabpage1 i want to see the removed item in the list. I tried this:
Protected Sub RadTabStrip1_TabDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabDataBound |
CType(Me.FindControl("ctrl1").FindControl("RadGrid1"), RadGrid).DataSource = GetItemsToBeAdded |
CType(Me.FindControl("ctrl1").FindControl("RadGrid1"), RadGrid).DataBind() |
End Sub |
But it doesn't work even if i get no errors.
Thanks