Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

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

and the fileUploaded script:

function fileUploaded(sender, args)
        {
        var name = args.get_fileName();
        var $ = $telerik.$;
              
        $(".info-panel").
        append($("<div>" + name + "</div>")).show();
        }

It was working - and i just upgraded to the newest 2010 version.

Any ideas?

Simon
Telerik team
 answered on 29 Nov 2010
1 answer
120 views
I am new to this stuff so I may be the issue.  I have a master page and content page.  On the master page I have a combobox.
<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;
           }
       }

I know there is data being return because i tried hard coding the selected value.

 

 

 

Princy
Top achievements
Rank 2
 answered on 29 Nov 2010
1 answer
119 views
Hi,

Is there any way to handle rad grid Row selection event in server side without using grid button column.

Regards
Jidesh
Jidesh Guptha
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
78 views
i have a radgrid contains gridtemplatecolumns need to be sorted. i know that i sort by sort expression and it works well.
but what if i had a gridtemplatecolumn which is custom. For example if i had Three columns :  Number1 ,  Number2 ,  SUM
Column SUM i set it's value by adding the values of Number1 and Number2.how can i sort Column SUM ???
Pavlina
Telerik team
 answered on 29 Nov 2010
3 answers
574 views
Hi!

I have the same problem:
My asp:ImageButton is inside a telerik:RadAjaxManager and do the same code:

HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.AddHeader( "content-disposition", string.Format( "attachment; filename={0}", "ElencoCandidati.xls" ) );
HttpContext.Current.Response.ContentType = "application/ms-excel; charset=utf-8";
HttpContext.Current.Response.Write( wResult );
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();

Without the telerik:RadAjaxManager work fine but when i run my website with a telerik:RadAjaxManager I have the same error:

Line: 938
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<html xmlns:o="urn:s'.


What can I do?


Thanks in advance!


Francesco
Lorenzo
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
45 views
Hi,

We evaluated the ASP.NET controls for our project and found them helpful.


We wanted to know whether RadUpload works on SSL.

Yana
Telerik team
 answered on 29 Nov 2010
5 answers
225 views

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)

 

{
...

}

Tsvetina
Telerik team
 answered on 29 Nov 2010
1 answer
258 views
Hello,

We have some trees with lots of nodes. Drag and drop is enabled so users can re-order the nodes. When a user wants to drag a node from the top of the list to the bottom, the page doesn't automatically scroll. They have to drop the node halfway and manually scroll to continue dragging. Is there anyway to have the page automatically scroll when a user is dragging a node up or down a long tree?

Thanks!
- J
Yana
Telerik team
 answered on 29 Nov 2010
2 answers
111 views
If I input error value into "LastModifiedAt" column of RadFilter then the page happen error. How to validate this value before "OnApplyExpressions" event.

My coding is below:
    <telerik:RadFilter ID="RadFilter1" runat="server"  OnApplyExpressions="radFilterGridControl_SearchGridData">
        <FieldEditors>
            <telerik:RadFilterTextFieldEditor FieldName="LastModifiedAt" DisplayName="LastModifiedAt" DataType="System.DateTime" />
        </FieldEditors>
    </telerik:RadFilter>
               
    <telerik:RadGrid ID="radGridControl" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
         AllowSorting="True"
        GridLines="None">
        <MasterTableView AutoGenerateColumns="False"  >
            <Columns>

                <telerik:GridBoundColumn DataType="System.DateTime" DataField="LastModifiedAt" HeaderText="LastModifiedAt" >
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Can you help me this problem?

Thanks,
Mr PhuongLD
Le Danh
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
85 views

Hi Team

When i'm giving more than 20 numbers it getting some default values how to i resolve this..


Regards,
Ashok Anbarasu
Daniel
Telerik team
 answered on 29 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?