How to access control inside the RadListView using javascript?

6 posts, 0 answers
  1. LamKhoa
    LamKhoa avatar
    92 posts
    Member since:
    Jun 2011

    Posted 27 Aug 2011 Link to this post

    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.
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 01 Sep 2011 Link to this post

    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 >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. LamKhoa
    LamKhoa avatar
    92 posts
    Member since:
    Jun 2011

    Posted 01 Sep 2011 Link to this post

    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
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 02 Sep 2011 Link to this post

    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 >>

  6. LamKhoa
    LamKhoa avatar
    92 posts
    Member since:
    Jun 2011

    Posted 02 Sep 2011 Link to this post

    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
  7. LamKhoa
    LamKhoa avatar
    92 posts
    Member since:
    Jun 2011

    Posted 02 Sep 2011 Link to this post

    I have finally found solution by following this demo:
    http://demos.telerik.com/aspnet-ajax/upload/examples/async/ajaxprocessing/defaultcs.aspx

    Thanks.
    Lamk.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017