RadUpload in RadListView itemtemplate

Thread is closed for posting
2 posts, 0 answers
  1. suhas Yalgude
    suhas Yalgude avatar
    1 posts
    Member since:
    May 2010

    Posted 04 Jan 2012 Link to this post


    I am using RadUpload in RadListView itemtemplate. OnClientFileSelected of radupload i am setting filename to textbox and then calling blur().

    function ImageFileSelected(radUpload, eventArgs) {
            var input = eventArgs.get_fileInputField().value;
            $find("txtHSPortraitBackground").set_value(input.substring(input.lastIndexOf('\\') + 1));

    this causes textchanged event of textbox.

    protected void txtHSPortraitBackground_TextChanged(object sender, EventArgs e)
                RadListViewDataItem item = rlvWebClip.Items[0];
                RadBinaryImage RadBinaryImageUP = ((RadBinaryImage)item.FindControl("RadBinaryImageUP"));
                RadUpload rulHSPortraitBackground = ((RadUpload)item.FindControl("rulHSPortraitBackground"));

                RadBinaryImageUP.DataValue = GetFileDataInByte(rulHSPortraitBackground);

    Here the issue is that the uploadedfiles.count is always 0. I am not able to find out why. So please help me.
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 04 Jan 2012 Link to this post

    Hello Suhas,

    Could you clarify whether your RadListView is ajaxified or not? If you are using Ajax, then you should disable it when uploading files since the RadUpload could not upload files via Ajax. Another approach would be to use RadAsyncUpload control instead.

    All the best,
    Dimitar Terziev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top