Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
132 views
Hi,
Can i clear all filter using client side API.
I am using get_filterExpressions().clear();
bu i also want to clear values in inputs.

Thank you in advance.
Oleg Medyanik
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
121 views
Hi

I dont know if it is possible, but we are trying to use the Ajax $Find method to find a RadGrid that has been created in the code behind.  Below is how we create the Rad Grid:

Protected WithEvents grdTypes As New RadGrid  
 
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init  
 
    With grdTypes  
          .ID = "grdTypes" 
          .AllowSorting = True 
          .DataSourceID = "SqlDataSource" 
          .AllowAutomaticDeletes = True 
          .AllowAutomaticInserts = True 
          .AllowAutomaticUpdates = True 
          .ClientSettings.ClientEvents.OnRowSelected = "SelectRow()"
          'ETC  
 
    End With 
 
End Sub 

Following the example in the demos for detecting a row selection, we then have the following code in javascript:

<script language="javascript" type="text/javascript">  
     
    function SelectRow(sender, eventArgs) {  
        var grid = $find("<%=grdTypes.ClientID %>");  
    }  
 
</script> 

Everything appears to be hooked up correctly, and the grid's Client ID is being translated to the correct name (i.e. ctl00_ContentPlaceHolder1_grdTypes), however the "grid" variable always appears to be NULL which means that we are unable to check the selected items count.

Any help would be very welcome.

Paul






Paul Mc
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
112 views
Is there an optimization technique to improve the performance of rad window?
Very often that it is very hard to drag.

Please share.

Thanks
Georgi Tunev
Telerik team
 answered on 15 Oct 2009
2 answers
127 views
I am working in a project,I have used the RadUpload,the code of upload file in my project is follow:

protected void Submit_Click(object sender, EventArgs e)  
    {  
        if (RadUpload1.UploadedFiles.Count > 0)  
        {  
            System.Threading.Thread.Sleep(3000);  
            try 
            {  
                string targetFolder = Server.MapPath(@"UpLoadFile\Project");  
                string targetFileName = string.Empty;  
                foreach (UploadedFile files in RadUpload1.UploadedFiles)  
                {  
                    int counter = 1;  
                    string fileName = files.GetName();  
                    string fileName1 = files.GetNameWithoutExtension() + counter.ToString() + files.GetExtension();  
                    targetFileName = System.IO.Path.Combine(targetFolder, fileName);  
                    while (System.IO.File.Exists(targetFileName))  
                    {  
                        targetFileName = System.IO.Path.Combine(targetFolder, fileName1);  
                        fileName = fileName1;  
                        counter++;  
                    }  
                    files.SaveAs(targetFileName);  
                      
                    //here,I insert the file info into DB;                      
                }  
            }  
            catch (Exception ex)  
            {  
                throw ex;  
            }  
       }  
    }  
 

First,I upload a file "test.txt" into server, then I upload the file "test.txt" second times, in server it's name is renamed as "test1.txt",this project works well, but when I upload the file "test.txt" third times , the RadProgressArea's Elapsed time and Speed run all the time, the radupload can not upload this file, I try this action several times ,but can not work well too.
I think my code where rename the upload file can not work well,but it seems that my code is correct.
What can I do in this situation?
Are there any settings about RadUpload to solve my question?

Thanks
Hu Tao
hu tao
Top achievements
Rank 1
 answered on 15 Oct 2009
7 answers
228 views
For some reason I cant get custom skin to work.
I added a link tag to the page pointing to customized skin file.
I set the EnableEmbeddedBaseStylesheet to false.
I set the skin name to Outlook.
But the control continues to use embedded skin. What am I doing wrong?

Thank you for you help.

See sample below:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
    <link rel="stylesheet" type="text/css" href="Skins/Outlook/ComboBox.Outlook.css" /> 
</head> 
<body> 
    <form id="form1" runat="server"> 
        &nbsp;<div> 
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
            </telerik:RadScriptManager> 
        </div> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" EnableEmbeddedBaseStylesheet="False" 
            RadComboBoxImagePosition="Right" Skin="Outlook"> 
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" /> 
            </Items> 
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
            <ExpandAnimation Type="OutQuart" /> 
        </telerik:RadComboBox> 
    </form> 
</body> 
</html> 
Paul
Telerik team
 answered on 15 Oct 2009
1 answer
250 views

Hi,

I am using  RadGrid (Q2 2009 build) . I am getting this error when trying to expand or collapse in IE7.

"Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element."

Basically, our page has a placeholder where we load user control programmatically. User control contains the radgrid.

If I remove RadAjaxmanager, it works fine but there is no ajax.

Please let me know how I should fix this.

Thanks

Yavor
Telerik team
 answered on 15 Oct 2009
1 answer
92 views
Hi,

Please help me. When I select a row in my radgrid there are unwanted images such as (edit button, delete button, sort button, refresh button, arrows) all over that row. Attached is a screen shot of the radgrid. For all of the rows, it is only the one with the problem. I guess it is because of its height.

Thanks!
Veli
Telerik team
 answered on 15 Oct 2009
1 answer
49 views
Hi
I use scheduler control and I never get error on explorer 7 but Same project doesn't work on explorer 8. I use inline insert, on explorer 8 insert form doesn't appear when I double click. I can't insert or update ...

What can I do for fixing this error?

I use 2009 Q1 version but If it's necessary I can use 2009 Q2.

Thanks

Burak ALTIN
Paul
Telerik team
 answered on 15 Oct 2009
2 answers
53 views
Hi,

Attached, please find a screenshot from IE8.
When the treenode has a text longer than the splitter's width and the node is mouse-hovered, the text appears over the splitter to the adjacent pane. This issue does not occur on IE7 or FF.

BR,
eyal

eyal
Top achievements
Rank 1
 answered on 15 Oct 2009
4 answers
1.2K+ views
I have a radgrid and a template column of country codes going out to a countries table and use a radcombobox in the insert/edit form for this.This is the code for the combobox in the grid:

 <telerik:GridTemplateColumn DataField="country_cd" HeaderText="Country" display="false" EditFormColumnIndex="1">  
                                 <EditItemTemplate> 
                                  <telerik:RadComboBox runat="server"  ID="country_cd"  DataValueField="country_cd" DataSourceID="ccCountries"   
                                       DataTextField="country_name"  OnSelectedIndexChanged="countryChanged"   CausesValidation="false" 
                                       onload="countryLoaded" AutoPostBack="true" MarkFirstMatch="True" SelectedValue='<%# Bind("country_cd") %>'   
                                        IsCaseSensitive="false"  > 
                                  </telerik:RadComboBox> 
                                 </EditItemTemplate> 
                                </telerik:GridTemplateColumn> 

I set the selected value to bind to the country_cd in the database, but this is really for update, not insert. For insert, I do not want to bind the selected value. I want it to be blank, but there is no blank item in the countries table. How can I make the first item blank so that I can validate it and make sure the user chooses a valid country on insert?

Thanks
DIETRICH Frédéric
Top achievements
Rank 1
 answered on 15 Oct 2009
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?