Hi,
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;
document.getElementById('txtHSPortraitBackground_text').focus();
$find("txtHSPortraitBackground").set_value(input.substring(input.lastIndexOf('\\') + 1));
document.getElementById('txtHSPortraitBackground_text').blur();
}
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.
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;
document.getElementById('txtHSPortraitBackground_text').focus();
$find("txtHSPortraitBackground").set_value(input.substring(input.lastIndexOf('\\') + 1));
document.getElementById('txtHSPortraitBackground_text').blur();
}
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.