Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
Hello,

1st Question: I installed 3 dictionaries for radEditor, as I use edt.Languages.Add(...) it works ok and I get the choice for my 3 languages, but how to select the default one ?

Second question, I am using several editors in my page and using the optimizing ToolProviderID to use one Toolbar (from first editor ceated). But I have my spellchecker language list filled only for first editor. Even if I force Language.Add for each editor in page.

3rd question, should I redefine for each editor the differnt managers: ImageManager, DocumentManager, etc. ?

Last question: is there a way to limit the number of chars in the editor content in such a way the user get a warning clientside ?

Many thanks for fast answer.

Best regars

CS







CSurieux
Top achievements
Rank 2
 answered on 27 Aug 2009
3 answers
501 views
Hi,

I've a page with a RadFileExplorer in a div. When the page load, this div has the style "display:none". In this page, there's a linkbutton that call a javascript that change the style of the div to "display:block".

The problem is that the files are not shown correctly.

If I use the basic version of RadFileExplorer (case 1 in the example), the width of the grid do not adjust to the percent set, it seems to have a preset value (the percent works if the RadFileExplorer is shown on the load). In addition, the height if the grid seems to be automatically set to a very little value.

If I use a custom provider to add some columns (case 2 in the example), it's even worse: the width and height problem is still there and I don't see the filename anymore. The custom provider I use is the one for local path in the code library here with very little changes (to add two custom columns).

Is there a way to make them appear correctly ?
I send you a simple example that doesn't work for me. I have the latest internal build of AJAX controls (2009_2_817). I tested it on IE, FF3 and Chrome and each navigator has little differences. but none works correctly, I let you test and see.

Thanks !!

Here's the calls of a simple example of what I'm experiencing
<asp:Content runat="server" ContentPlaceHolderID="head"
    <script type="text/javascript"
        function test1() { 
            document.getElementById('div1').style.display = 'block'
            document.getElementById('div2').style.display = 'none'
        } 
 
        function test2() { 
            document.getElementById('div1').style.display = 'none'
            document.getElementById('div2').style.display = 'block'
        } 
    </script> 
</asp:Content> 
 
<asp:Content runat="server" ContentPlaceHolderID="content"
 
    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="test1(); return false;" Text="test1" /><br /> 
    <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="test2(); return false;" Text="test2" /><br /> 
     
    <br /> 
 
    <div id="div1" style="background-color:White; width:100%; display:none;"
        1 
        <br /> 
        <rad:RadFileExplorer ID="file_explorer" runat="server" EnableCreateNewFolder="false" VisibleControls="Grid,Toolbar,ContextMenus,TreeView"  
            TreePaneWidth="150px" Width="100%" Configuration-MaxUploadFileSize="1024000" AllowPaging="false" /> 
        <br /> 
        &nbsp; 
    </div> 
 
    <div id="div2" style="background-color:White; width:100%; display:none;"
        2 
        <br /> 
        <rad:RadFileExplorer ID="RadFileExplorer1" runat="server" EnableCreateNewFolder="false" VisibleControls="Grid,Toolbar,ContextMenus,TreeView"  
            TreePaneWidth="150px" Width="100%" Configuration-MaxUploadFileSize="1024000" AllowPaging="false" /> 
        <br /> 
        &nbsp; 
    </div> 
</asp:Content> 

And the code
protected void Page_Load(object sender, EventArgs e) 
    { 
        string[] paths = new string[] { "~/templates/" }; 
        file_explorer.Configuration.ViewPaths = paths; 
        file_explorer.Configuration.UploadPaths = paths; 
        file_explorer.Configuration.DeletePaths = paths; 
 
 
        /* 2nd explorer */ 
        string[] p_paths = new string[] { "C:\\documents\\candidats\\" }; 
        RadFileExplorer1.Configuration.ViewPaths = p_paths; 
        RadFileExplorer1.Configuration.UploadPaths = p_paths; 
        RadFileExplorer1.Configuration.DeletePaths = p_paths; 
        RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(CandidatFileSystemProvider).AssemblyQualifiedName; 
 
        GridTemplateColumn col_taille_ko = new GridTemplateColumn(); 
        col_taille_ko.HeaderText = "Taille"
        col_taille_ko.SortExpression = "Taille_ko"
        col_taille_ko.UniqueName = "Taille_ko"
        col_taille_ko.DataField = "Taille_ko"
        col_taille_ko.ItemStyle.Width = col_taille_ko.HeaderStyle.Width = Unit.Pixel(100); 
        col_taille_ko.ItemStyle.HorizontalAlign = col_taille_ko.HeaderStyle.HorizontalAlign = HorizontalAlign.Right; 
        RadFileExplorer1.Grid.Columns.Add(col_taille_ko); 
 
        GridTemplateColumn col_date = new GridTemplateColumn(); 
        col_date.HeaderText = "Date de création"
        col_date.SortExpression = "Date"
        col_date.UniqueName = "Date"
        col_date.DataField = "Date"
        col_date.ItemStyle.Width = col_date.HeaderStyle.Width = Unit.Pixel(150); 
        col_date.ItemStyle.HorizontalAlign = col_date.HeaderStyle.HorizontalAlign = HorizontalAlign.Center; 
        RadFileExplorer1.Grid.Columns.Add(col_date); 
    } 

Fiko
Telerik team
 answered on 27 Aug 2009
1 answer
90 views
Hi,
 In evaluating the free version of the MOSS editor lite, we've found a couple of issues that I'd like to share with you :-

  • SpellChecker highlights mispelt words in yellow and gives the option to amend the highlighted word. Once amended, if 'enter' is not pressed and you click away from the word, the changes do not take affect.  The words remain highlighted in yellow, but SpellChecker has to be re-selected from the toolbar and changes have to be made again
  • SpellChecker highlights misspelt words in yellow and gives the option to amend the highlighted word...except for the first word at the beginning of the sentence in the first paragraph.  The word is highlighted in yellow, but gets missed off.  However it is possible to hover over the word and prompt the correction.

 It's likely that we'll be purchasing the full licensed controls, but it would be good to know that if these bugs exists in the full version also, that they will be resolved.
Thanks,
Jason.

Petko
Telerik team
 answered on 27 Aug 2009
14 answers
471 views
I submitted a suggestion along these lines and Telerik wanted to hear if anyone else thought it might be a good idea. Please give your two cents.

It appears the current RadSlider "Value" property is of type Integer in the Beta. In the first release, this should be of type Double in order to allow for decimal values. Any other Value-related properties should also have this change... like MaximumValue, Minimum alue and SlideStep.

Of course, integer values can  be scaled to decimals, but I don't see why this complication should be put upon the developer when there doesn't seem to be any reason to exclude the ability from using decimal values in the slider itself.
Tsvetie
Telerik team
 answered on 27 Aug 2009
1 answer
110 views
Hi,
How to create websetup with Telerik?
1. I am  trying to create a web setup project, 
2. How to package telerik in web setup project?.
3. I have add the Telerik.Web.Ui.dll in to the GAC.
4. Page rendered with out css styles.

Thanks
Sabarish
Svetlina Anati
Telerik team
 answered on 27 Aug 2009
1 answer
57 views

Hi. I'm working with Sitefinity and using there two RadDatePickers. I need to have next action 

1. Select date in the first raddatepicker.

2. Set selected date in the 2-d raddatepicker = 1-t raddatepicker date + 1 day using client side javascript

In IE and Opera it works pretty good ,but in Mozilla have problems. Whenexecuting event _setInputDate raizes validation and no data selected. I have tried to set DateInput-CausesValidation="false" ,but nothing happends with and without this attribute.

Here the code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div> 
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>  
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

<script type="text/javascript">  
function dateSelected(sender, args) {
var datePicker = $find("<%= InprDeparture.ClientID %>");
var date = args._newDate;
datePicker._setInputDate(new Date(date.getYear(), date.getMonth(), date.getDate() + 1));
}  
</script>


</telerik:RadCodeBlock>  

<h5>Arrival</h5>
<telerik:RadDatePicker ID="InprArrival" Style="vertical-align: middle;" Width="160px" MinDate="2006-02-01" runat="server" MaxDate="2099-12-16">
<ClientEvents OnDateSelected="dateSelected" />
</telerik:RadDatePicker>

<h5>Departure</h5>
<telerik:RadDatePicker DateInput-CausesValidation="false" ID="InprDeparture" Style="vertical-align: middle;" Width="160px" MinDate="2006-02-01" runat="server" MaxDate="2099-12-16" >  
</telerik:RadDatePicker>
<telerik:RadCalendar></telerik:RadCalendar>  
</div>
</form>
</body>
</html>

Dimo
Telerik team
 answered on 27 Aug 2009
7 answers
216 views
Hello,

I have the problem that with various browsers, the content of a html page in a RadWindow is displayed completely wrong when this html page contains javascript.
If I try to open directly the html page into these browsers, this one is displayed correctly.

Tested browsers:
  • Internet Explorer 6 & 7: Correct display.
  • Firefox 3 & 3.5: Wrong display.
  • Opera 9.64: Wrong display.

Web Server:
  • IIS 7 (2008)

ASP.NET Components:
  • Telerik ASP.NET AJAX 2009 Q2 (701)

Situation:
Test.aspx: Contains a RadRotator. After clicking on an item on this one, a RadWindow with a html page named Test.html is open.

<telerik:RadWindow ID="BlaControl" runat="server" 
                               ShowContentDuringLoad="false" 
                               ReloadOnShow="true" 
                               VisibleStatusbar="false" 
                               AutoSize="true" 
                               Behaviors="Close"
</telerik:RadWindow> 
<telerik:RadCodeBlock ID="BlaScript" runat="server"
<script type="text/javascript"
function rad_ItemClicked_Handler(sender, args) { 
                var nRadWindow = $find('<%=BlaControl.ClientID%>');                                               
                                 
                nRadWindow.setUrl('Test.html'); 
                nRadWindow.show(); 
            } 
</script> 
</telerik:RadCodeBlock> 

Test.html: The page in the RadWindow
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html lang="fr" xml:lang="fr"
<head
<title>Test (France)</title> 
</head> 
<body><center
 
<script language="JavaScript" type="text/javascript"
function Test_Progress(progress) { 
 window.status=progress; // An example of how the progress value can used 
</script> 
 
Coucou4 
</center> 
</body> 
</html> 

And I obtain as result in the RadWindow:
�������4�ON�0��z��j�Te�/�i)� V�$�?ȵ#g�!NƂ#q�ݽ��<��~�����Q�^@A[ �Nj�u��i��<���U|���w 2eB�/�����q�4��L=mr?�{e�lyRw/���ÁߥH��e��~+gǪ�H�X%(`5��J�.��R �R+ ]���1��N���#�T���[R'�����"ǀ݈��t�}T-!�oq?�3�raK+���微�� ��:�1|Д*ՍW� [�����^l+��3(tT G`'�EH�[c:|�K���#mm�=\�;��Kÿ�7�{p� 

Any Idea?

Best regards.
Georgi Tunev
Telerik team
 answered on 27 Aug 2009
5 answers
120 views
Hi,

I'm trying to implement a combobox which should dynamically load and display some data from a xml-file.
In debugger I can see that the data is loaded correctly and is added to the combobox-control via RadComboBox1.Items.Add(...).

But afterwards nothing is displayed in the combobox - the box still remains displaying "Loading..."

The Data I'm expecting is:
"", ""                   (empty Strings)
"data1", "data1"
"data2", "data2"
"data3", "data3"
"data4", "data4"

Here's the code of the combobox-control in my .aspx-file:
<telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="True" EmptyMessage="Choose Data" EnableLoadOnDemand="True" ShowMoreResultsBox="true" 
EnableVirtualScrolling="true" Filter="StartsWith" AutoPostBack="True" DataTextField="Name" DataValueField="Name"
</telerik:RadComboBox> 

Here is what is done on the server in my .aspx.vb-file:
Protected Sub RadComboBox1_ItemsRequested(ByVal sender As ObjectByVal e As RadComboBoxItemsRequestedEventArgs) Handles RadComboBox1.ItemsRequested 
        Dim data As DataTable = GetData(e.Text) 
 
        Dim itemOffset As Integer = e.NumberOfItems 
        Dim endOffset As Integer = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count) 
        e.EndOfItems = endOffset = data.Rows.Count 
 
        For i As Integer = 0 To data.Rows.Count - 1 
            RadComboBox1.Items.Add(New RadComboBoxItem(data.Rows(i)("Name").ToString(), data.Rows(i)("Name").ToString())) 
        Next 
 
        e.Message = GetStatusMessage(endOffset, data.Rows.Count) 
    End Sub 

Does somebody has an idea or hint on what I'm doing wrong?

Kind regards,
Torben
Torben
Top achievements
Rank 1
 answered on 27 Aug 2009
0 answers
79 views
Hi All,

I am using Telerik RadGrid version 2008.02.0826.35 in my application.
I am facing one problem that if there is no rows in the grid then the Header checkbox of clientselectcolumn is automatically checked.

how can i remove this.

thanks
Nitin


nitin
Top achievements
Rank 1
 asked on 27 Aug 2009
13 answers
168 views
In the documentation, you mentioned that users can use StripFormattingOptions to enforce format stripping.  However, I don't see the option in the sharepoint designer.  Is this option available in RAD Editor for MOSS 2007?
http://www.telerik.com/help/aspnet-ajax/cleaningwordformatting%20.html

Thanks.

Stanimir
Telerik team
 answered on 27 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?