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

Hello,

 

I have a page that I'm building that uses a AutoCompleteBox inside of a repeater.  I am trying to load the control inside of the the ItemDataBound method of the repeater, but an error gets thrown before it can even be called saying "Datasource not set" referring to the AutoCompleteBox.  Is there a specific way that I should be loading the control?  Here is a snippet of the control being loaded inside the ItemDataBound method of the repeater.  Thanks for any help.

 

{

     RepeaterItem item = e.item;

 

    txtAgent = (RadAutoCompleteBox)item.FindControl("txtAgent");

    txtAgent.DataSource  = Agent.GetListOfAgents();

    txtAgent.DataBind();

}

Peter Milchev
Telerik team
 answered on 31 Jan 2018
1 answer
290 views

Hi,

 

I'm trying to generate a full report as a single pdf and I'm wondering if it's possible to add for example an existing pdf file between 2 pages of the pdf rendered ?

Should I find a way to render the pdf on a view page using third party js libraries for pdf rendering or is there a way to do this using only this component ?

 

Thanks,

Grégory
Top achievements
Rank 1
 answered on 31 Jan 2018
1 answer
133 views

Would it be possible to use the ClientExportManager to send a chunk of raw data to the server.

Just send the data and skip the PDF and Image conversion part?

 

Thanks,

Marc

Rumen
Telerik team
 answered on 31 Jan 2018
5 answers
567 views
Hello,
I tried to build a small test page that has a autocompletebox bind to a web method in the code behind of the page.
I copied the example from the autocompletedemo page, but I got this error : "The server method 'GetCompanyNames' failed."
There is a snippet of my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
            <div>
                <fieldset style="width: 400px">
                    <legend>Web service binding</legend>
                    <label for="RadAutoCompleteBox2">
                        Company Names:</label>
                    <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox2" Width="250" DropDownHeight="150"
                        DropDownWidth="250">
                        <WebServiceSettings Path="Defualt.aspx" Method="GetCompanyNames" />
                    </telerik:RadAutoCompleteBox>
                    <p>
                        <asp:Label runat="server" ID="Label2" />
                    </p>
                </fieldset>
            </div>
        </telerik:RadAjaxPanel>
    </form>
</body>
</html>


Code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    [WebMethod]
    public AutoCompleteBoxData GetCompanyNames(object context)
    {
        string searchString = ((Dictionary<string, object>)context)["Text"].ToString();
        List<AutoCompleteBoxItemData> result = new List<AutoCompleteBoxItemData>();
        AutoCompleteBoxItemData childNode = new AutoCompleteBoxItemData();
        childNode.Text = "aaaa";
        childNode.Value = "aaaa";
        result.Add(childNode);
 
        AutoCompleteBoxData res = new AutoCompleteBoxData();
        res.Items = result.ToArray();
 
        return res;
    }
}



Thank you for your help,
Kind regards,
Oren Yardeni.
Peter Milchev
Telerik team
 answered on 31 Jan 2018
1 answer
449 views

Only occasionally I am receiving the "IOException: The process cannot access the file 'file path' because it is being used by another process".

How can I handle my upload to avoid encountering this error?

Here's my code example.

On the webform page.

                            <telerik:RadAsyncUpload
                                runat="server"
                                ID="fileUpload"
                                ChunkSize="3145728"
                                MaxFileInputsCount="1"
                                AllowedFileExtensions=".htm,.html,.HTML,.doc,.DOC,.docx,.zip,.txt,.mht,.MHT,.msg,.mp4,.pdf,.PDF"
                                OnClientValidationFailed="uploadValidationFailed">
                            </telerik:RadAsyncUpload>
                            <telerik:RadProgressArea
                                runat="server"
                                ID="RadProgressAreaTechNotes">
                            </telerik:RadProgressArea>

Codebehind

                    foreach (UploadedFile file in fileUpload.UploadedFiles)
                    {
                        uploadedFilename = file.FileName;
                        asyFileExtension = file.GetExtension().Replace(".", string.Empty);
                        asyFileSize = file.ContentLength;
                        string spath = storePath + uploadedFilename;

                        file.SaveAs(spath);
                    }

 

 

Marin Bratanov
Telerik team
 answered on 30 Jan 2018
0 answers
172 views

Hello,

I have a RadComboBox (with AutoPostBack="True"), a RadTextBox and a button. I select a value from RadComboBox then after post back
i enter some value in the RadTextBox and click on the button. On button's client click, i am using following javascript code:

            var description = $find("<%=RadTextBox.ClientID%>");
            if (description.get_value().trim() === "") {                
                msg += "Description is required\n";                
            } 

But description.get_value() shows blank even though i have enterted some value (before post back). This issue is only 
with IE 11.0.9600. In IE 11.0.10240 and chrome this works fine.

I am using telerik version 2016.1.113.45

Please advise. 

kartik
Top achievements
Rank 1
 asked on 30 Jan 2018
6 answers
181 views
Hi,

I am building some prototype schedulers for an upcoming project we have.  In one example, I am using a webservice/xmlprovider to supply the appointment information for the scheduler.

I am trying to test out the styling of appointments and templates(appointment, insert, edit). 

Utilizing the following code and client event, I can begin to change some of the things I want, but I still can't seem to get the same result as when I build templates in the scheduler markup.  Is there a way to get client access to the template objects, or another approach to build client templates for appointments?

function OnClientAppointmentCreated(sender, eventArgs) { 
        //eventArgs.get_appointment().get_element().style.backgroundColor = "Blue" 
    } 

In general, I am trying to achieve a result like this example but in a client webservice environment.

Any suggestions?
Peter Milchev
Telerik team
 answered on 30 Jan 2018
0 answers
130 views

Hello,

is there a way to have this row and column fixed (as per header infos) ... like in Excel ...

Thanks.

simone
Top achievements
Rank 1
 asked on 30 Jan 2018
0 answers
194 views

so all I'm trying to do is to be modify the menu (root) item to be "transparent" on background color.  I got it to work, almost.  The only thing is NOT working is that when the mouse moves "out" of the menu (or if it moves to the sub items, child items), the "root" item goes back to "black", how can I make that "transparent" too?

 

here are my css code:

 

       .RadMenu_Glow .rmRootGroup
        {
            background: Transparent !important;
            border-left-style: none !important;
            border-left-color: transparent !important;
            border-left-width: 0px;
            border-right-style: none !important;
            border-right-color: transparent !important;
            border-right-width: 0px;
            border-top-style: none !important;
            border-top-color: transparent !important;
            border-top-width: 0px;
            border-bottom-style: none !important;
            border-bottom-color: transparent !important;
            border-bottom-width: 0px;            
            box-shadow: none !important;
        }    
        
                  

        .RadMenu_Glow .rmLink:hover, 
        .RadMenu_Glow .rmFocused, .rmLink 
        .RadMenu_Glow .rmSelected 
        { 
            background-color: transparent !important; 
            background-image: none !important; 
            background-position: 0px 0px !important; 
        } 
        .RadMenu_Glow .rmText 
        { 
            background-image: none !important; 
            background-color: transparent !important; 
        }  

Frank
Top achievements
Rank 1
 asked on 30 Jan 2018
2 answers
136 views

Hello

How can I remove some options from the two dropdowns ?

Basically, I only want to keep the "contains" option.

I haven't found how to do it with a grid in Excel Like Filtering mode.

 

Thank you 
philippe

Philippe GRACA
Top achievements
Rank 1
 answered on 29 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?