7 Answers, 1 is accepted
0
Hello Eran,
Please examine the following links:
Accessing cells and rows
How to: Access Members of a Control's Naming Container
Understanding the naming container hierarchy of ASP.NET databound controls
Kind regards,
Daniel
the Telerik team
Please examine the following links:
Accessing cells and rows
How to: Access Members of a Control's Naming Container
Understanding the naming container hierarchy of ASP.NET databound controls
Kind regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
answered on 26 Jul 2010, 09:57 AM
hi telerik,
i am using listview. is there anyway to find the control in the itemTemplate ?
Best regard,
ER AN
i am using listview. is there anyway to find the control in the itemTemplate ?
Best regard,
ER AN
0
Hello Eran,
Accessing Controls in RadListView
Regards,
Daniel
the Telerik team
Accessing Controls in RadListView
Protected
Sub
RadListView1_ItemCreated(sender
As
Object
, e
As
RadListViewItemEventArgs)
If
TypeOf
e.Item
Is
RadListViewDataItem
Then
Dim
label
As
Label = TryCast(e.Item.FindControl(
"Label1"
), Label)
End
If
End
Sub
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
answered on 28 Jul 2010, 06:07 PM
hi telerik,
is this a vb code or c# code ? i am doing a vb project.
Best Regard,
ER AN
is this a vb code or c# code ? i am doing a vb project.
Best Regard,
ER AN
0
Hello Eran,
Yes, the code-snippet is in VB.NET.
C# version
VB.NET version
Regards,
Daniel
the Telerik team
Yes, the code-snippet is in VB.NET.
C# version
protected
void
RadListView1_ItemCreated(
object
sender, RadListViewItemEventArgs e)
{
if
(e.Item
is
RadListViewDataItem)
{
Label label = e.Item.FindControl(
"Label1"
)
as
Label;
}
}
VB.NET version
Protected
Sub
RadListView1_ItemCreated(sender
As
Object
, e
As
RadListViewItemEventArgs)
If
TypeOf
e.Item
Is
RadListViewDataItem
Then
Dim
label
As
Label = TryCast(e.Item.FindControl(
"Label1"
), Label)
End
If
End
Sub
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

malik
Top achievements
Rank 1
answered on 14 Aug 2010, 08:10 AM
Dim LblUserID As Label = TryCast(e.Item.FindControl("lbluserid"), Label)
Dim LblPhotoID As Label = CType(e.Item.FindControl("lblphotoid"), Label)
i am not finding control of labels by both ways
it gives nothing plz help.......
0
Hello Malik,
Please have a look at this link: Accessing Controls in RadListView
If the problem still persists, please attach a runnable project and we will examine it locally.
Regards,
Daniel
the Telerik team
Please have a look at this link: Accessing Controls in RadListView
If the problem still persists, please attach a runnable project and we will examine it locally.
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items