RadTabStrip dynamic creating loading user control, with a repeater inside the user control

0 Answers 16 Views
TabStrip
Rob
Top achievements
Rank 1
Rob asked on 12 Mar 2022, 02:02 PM

I have a rather complex site, starting with a page that includes RadTabStrip, that dynamically loads user controls based on the tab.  Within the user control, there are various controls - however, specifically one has a repeater.

Within the Repeater, I am attempting to add a command button (update) using a CommandArgument.  However within the code behind using the 'OnItemCommand' I am unable to reference any of the controls within the repeater.  They are always null/empty. 

Ways I have attempted to locate:

Dim c1 As String = CType(repeaterControl.Items(e.Item.ItemIndex).FindControl("txComments"), RadTextBox).Text

---------
Dim lb As LinkButton = CType(e.CommandSource, LinkButton)
Dim txBoxValue As String = CType(lb.Parent.FindControl("txComments"), RadTextBox).Text

-----------
Dim txComments As String = CType(e.Item.FindControl("txComments"), RadTextBox).Text

I have tried many different way to attempt to gain this information - but they all appears empty.  I have found that this is due to the user controls being loaded dynamically - but I am working within an establish project, and unable to change that part.  Is there a way to locate these controls within this type of set up.

Please assist and I have been researching this for days.

 

Attila Antal
Telerik team
commented on 16 Mar 2022, 07:13 PM

Hi Rob, 

Could you please share the current implementation you have? I would like to see both the Markup and C#/VB code.

Once I have a better understanding I will share my feedback on how to proceed further.

I look forward to your reply.

No answers yet. Maybe you can help?

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