After i select a file for upload, then hit a submit button (standard <asp:Imagebutton) - I get an error:
Cannot find a part of the path
and a querystring of RadUrid= has been added
Here is the aspx code:
<
telerik:RadProgressManager
runat
=
"server"
ID
=
"RadProgressManager1"
EnableMemoryOptimization
=
"false"
/>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"AsyncUp1"
OnClientFileUploaded
=
"fileUploaded"
TargetFolder
=
"/images/BlogThumbs"
AllowedFileExtensions
=
".jpg,.tif,.png,.gif,.jpeg"
/>
<
telerik:RadProgressArea
runat
=
"server"
ID
=
"RadProgressArea1"
/>
function fileUploaded(sender, args)
{
var name = args.get_fileName();
var $ = $telerik.$;
$(".info-panel").
append($("<
div
>" + name + "</
div
>")).show();
}
<
telerik:RadComboBox
ID
=
"cbBox"
runat
=
"server"
AutoPostBack
=
"True"
Height
=
"120px"
ErrorMessage
=
"No Items Available"
Sort
=
"Ascending"
>
</
telerik:RadComboBox
>
Fill by code behind(c#):
using (WorkFlowEntities items = new WorkFlowEntities())
{
{
this.cbBox.DataSource = from c in items.vw_UserAuth
where c.DomainName== "me" select new { c.Name, c.Item };
this.cbProject.DataTextField = "Name";
this.cbProject.DataValueField = "Item";
this.cbProject.DataBind();
this.cbProject.Items.Insert(0, new RadComboBoxItem("Select a item", string.Empty));
}
}
All of this works fine. I am trying to access the combobox from a content page but it always returns "" not null though. I am using this code to get the values:
private string getSelectedProject()
{
RadComboBox masterCombo = (RadComboBox)Master.FindControl("cbBox");
if (masterCombo != null)
{
return masterCombo.SelectedValue.ToString();
}
else
{
return null;
}
}
We evaluated the ASP.NET controls for our project and found them helpful.
Hi, I am getting a double filtering effect happening. Once on the server side and then one more time on the client side. This double filtering wouldn't be an issue except for one of my columns (Description) is 2000 characters long so I only pass back the first 200 characters. If the data I filtered on is after the first 200 characters then the client side filter removes the row.
I do server side filtering by using the datasource selecting event:
protected void objItems_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
e.InputParameters["sortExpression"] = RadGrid1.MasterTableView.SortExpressions.GetSortString();
e.InputParameters["filterExpression"] = RadGrid1.MasterTableView.FilterExpression;
if (e.ExecutingSelectCount)
{
// count is done last
//RadGrid1.MasterTableView.FilterExpression = "";
// while using the above line worked it failed when going from page to page
}
else
{
// selection is done first
}
}
public IList get(int catalogueId, string sortExpression, string filterExpression, int maximumRows, int startRowIndex)
{
...
}