This is a migrated thread and some comments may be shown as answers.

ReBind

0 Answers 26 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
El
Top achievements
Rank 1
El asked on 10 Mar 2009, 10:11 AM
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:

Protected Sub RadTabStrip1_TabDataBound(ByVal sender As ObjectByVal 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

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
El
Top achievements
Rank 1
Share this question
or