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

How to access control inside the RadListView using javascript?

5 Answers 184 Views
ListView
This is a migrated thread and some comments may be shown as answers.
LamKhoa
Top achievements
Rank 1
LamKhoa asked on 27 Aug 2011, 06:45 PM
I found the information about accessing control inside the RadListView in this link:
http://www.telerik.com/help/aspnet-ajax/listview-accessing-controls.html

However, there is no example of using javascript, only server-side code.

Please let me know how to access control inside RadListView.

Thanks All

Lamk.

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 01 Sep 2011, 07:34 AM
Hello Lamkhoa,

RadListView Items does not have client objects. So if you do not know the exact ClientID of the control you wan to access it is not so easy to find it. You would need to traverse the DOM elements/objects for that purpose.
However, if you elaborate on what you are trying to achieve, we might find a suitable solution for you.

All the best,
Iana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
LamKhoa
Top achievements
Rank 1
answered on 01 Sep 2011, 03:29 PM
I have RadAsyncUpload and RadBinaryImage inside the RadListView EditMode.
I would like the RadBinaryImage change when I uploaded the image file to Temp Folder.

Thanks
Lamk
0
Iana Tsolova
Telerik team
answered on 02 Sep 2011, 09:03 AM
Hello Lamkhoa,

If you know what is the ClientId of the RadAsyncUpload, you can get the RadBinaryImage as below:
var binaryImage = $find(radAsyncUpload.get_id().replace("RadAsyncUpload_ID", "RadBinaryImage_ID"));


Greetings,
Iana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
LamKhoa
Top achievements
Rank 1
answered on 02 Sep 2011, 02:45 PM
How do I know the "Client ID" of RadAsyncUpload and RadBinaryImage?
You know my scenario, would you please provide for me demo project?

Thanks

Lamk
0
LamKhoa
Top achievements
Rank 1
answered on 02 Sep 2011, 04:48 PM
I have finally found solution by following this demo:
http://demos.telerik.com/aspnet-ajax/upload/examples/async/ajaxprocessing/defaultcs.aspx

Thanks.
Lamk.
Tags
ListView
Asked by
LamKhoa
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
LamKhoa
Top achievements
Rank 1
Share this question
or