Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Can anyone tell me what the security ramifications of using RadAsyncUpload to upload files to a server are, depending on whether Flash is disabled, etc. For instance, if someone were to try an upload a malicious file with a benign file extension would the specific process by which the file is manipulated by the RadAsyncUpload control render the file harmless... or do specific security precautions need to be taken both on the final destination director and the RadUploadTemp Directory to make sure malicous files cannot do harm? 
Genady Sergeev
Telerik team
 answered on 18 Apr 2011
6 answers
225 views
Hi ,

I am using latest version of file explorer. It is cool.
In it I saw that we cannot assign a Keyboard shortcut for Rename, where as we can assign the keyboard shortcuts for Delete,Upload,Create New Folder etc.,
I want to use "F2" as a keyboard shortcut for Renaming a Folder instead of right clicking on the Folder and then click on Rename.
Can you help me how to achieve it?

Thanks and regards,
Naveen
Dobromir
Telerik team
 answered on 18 Apr 2011
1 answer
174 views
I have a RadNumericTextBox set to Type="Percent". I want the user to be able to enter numbers 0 - 100 with one decimal place. "100.0" is 5 characters so I set the MaxLength to 5. The code is below:

<telerik:RadNumericTextBox ID="textInput" Type="Percent" MaxLength="5" runat="server" />
<asp:Button ID="buttonUpdate" Text="Calculate" OnClick="ButtonUpdate_Click" runat="server" />

This works as expected in IE8 and Firefox4. But in Chrome 10 it does not work. When I click the button the focus goes to the text box because an error is detected in the input even if the number of characters entered is less than 5. If I increase the MaxLength to 20 it works in Chrome. It seems that Chrome is applying the MaxLength value to the formatted value ("2.00 %"), but IE and Firefox apply the MaxLength to the characters that the user enters. Is there a workaround for this problem?

I am using Telerik 2010 Q2.
Radoslav
Telerik team
 answered on 18 Apr 2011
1 answer
630 views
so far, I've figured out how to get and set values of a RadNumericTextBox within a RadGrid during edit mode using the following Javascript.

                //GET QUANTITY
                var quantityId = $telerik.$("[id$='Quantity']").attr('id'); //get Client ID of RadNumericTextbox with Id 'Quantity'
                var quantityControl = $find(quantityId);                    //get control
                var quantityValue = quantityControl.get_value();             //get value stored in control


                //SET QUANTITY
                quantityControl .set_value(5);                //set value in control


My problem is that in edit mode, this code only works for RadNumericTextBoxes in the very first row. It simply fails for all other rows. I believe it's because the $telerik.$("[id$='Quantity']").attr('id'); isn't able to find the client id for the other rows correctly.

I've look at several examples here and in forums and I'm unable to find a solution.

Also, speed is a primary concern. When the user changes the value for one textbox in the row, I use these gets and sets to perform instantaneous calculations on values contained within other textboxes within that same row.

Thanks for any help you can provide!
Princy
Top achievements
Rank 2
 answered on 18 Apr 2011
1 answer
75 views
Hello,

I have a radtooltip with a description and some priceinfo. Is it possible to put htmltags (<br /> and <p>) in a radtooltip. And if so, how can I accomplish this.

Thanx in advance.

Patrick

Patrick
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
276 views
i put rad binary image in asp:hyperlink and disply image from sql server2005 with size 100 X 100 now when i click on image i want to open 500 X 500 size image i give in hyperlink targer="_blank" means display large image on new page 

as soon as posible please help me for this type of senario 

tanking You
Veli
Telerik team
 answered on 18 Apr 2011
7 answers
407 views
I have a combobox in a grid popup edit form that I'm creating programatically and I'm trying to set the SelectedIndexChanged event, but I can't seem to get it to fire.

there are some data points that get read in to determine whether or not to set the SelectedIndexChanged event, but here is the code
if (optionType == "ComboBox")
{
    RadComboBox combo = new RadComboBox();
    combo.ID = "dd_" + option.ToString();
    combo.Font.Size = 8;
 
    if (optionName == "Report Date")
    {
        combo.AutoPostBack = true;
        combo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(dd_RptDate_SelectedIndexChanged);
    }
 
    foreach (var optionValue in q_optionValues)
    {
        combo.Items.Add(new RadComboBoxItem(optionValue.tReportOptionValue.OptNm, optionValue.tReportOptionValue.OptVal));
 
        // if option is Report Date, determine additional controls depending on dropdown value
        if (optionName == "Report Date")
        {
            //if optionvalue is specific date, set the datepickers bool to true
            if (optionValue.tReportOptionValue.OptNm == "Specific Date")
            {
                datepickers = true;
            }
            //if optionvalue is specific months, set the monthpickers bool to true
            if (optionValue.tReportOptionValue.OptNm == "Specific Months")
            {
                //datepickers = true;
            }
        }
    }
 
    panelContent.Controls.Add(combo);
}

I know I'm getting to the point where it should assign the SelectedIndexChanged event because the AutoPostBack attribute right above it is working (I can comment out that line and the combobox doesn't postback).

Here is the associated event code
protected void dd_RptDate_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    string url = "/";
    Response.Redirect(url);
 
    RadComboBox combo = (RadComboBox)sender;
 
    GridEditFormInsertItem editFormItem = (GridEditFormInsertItem)combo.NamingContainer;
    BuildOptions(editFormItem);
}

I put in the Response.Redirect just to see if the event was firing and it's not.

Am I not going about this correct way? I need to be able to fire off this event so the BuildOptions event gets run when the postback occurs.

Thanks
Helen
Telerik team
 answered on 18 Apr 2011
3 answers
116 views
Hi,

I am using RadScheduler timeline view.
Please find an attached telerik demo screenshot. Is it possible to show a resource title in timeline view?

Thanks,
 
Peter
Telerik team
 answered on 18 Apr 2011
2 answers
98 views
Hello, I am attempting to implement a series of Master / Child RadGrids, similar to the example located:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx


In fact, I copied most of this code and modified it to work with my database structure.

The problem I have is as follows:

When clicking on a row in Grid #1 to select it, the child Grids #2 and #3 update correctly to reflect the appropriate data associated with Grids #1 and #2, respectively

However, when I use the Next/Previous buttons located in Grid #1 to move between records, only the data in Grid #2 updates. The data in Grid#3 never updates.

The online example posted above exhibits the same behavior. At first I thought that I did something wrong in my program, and have been wracking my brains for a day trying to figure out what I did wrong. Only after I went back to the online example did I see the online example exhibits the same behavior. You can see for yourself... if you go to the example, and click on one of the rows in Grid #1, the data in Grids #2/3 will update... but if you click on the nav buttons in Grid #1, only Grid #2 updates, Grid#3 remains unchanged.

Two questions:

a. Is this a bug in the control, and

b. How can I get Child Grid #3 to update correctly from Grid #2's key value when the user clicks a navigation button on Master Grid #1?
Daniel
Telerik team
 answered on 18 Apr 2011
1 answer
107 views
Hi,

I used grid but I have a method as a class. I bind  datasourse of grid like,
                  
             DataSet dsCategories = null;
                   dsCategories = ct.GetAllCategories();
                    RadGrid2.DataSource = dsCategories;
Problem is paging in the grid. Becouse you suggested to us flowwing using.
        <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"
            runat="server"></asp:SqlDataSource>

Instead of it, I want to use datasourse for paging or filtering etc.. How I bind it? Thanks.
Pavlina
Telerik team
 answered on 18 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?