Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi,

I want to have the word count statistics displayed at the bottom of the editor page on the same line/row as the other module buttons (design, html, preview). Sometimes they are displayed right justified on the same line and other times they appear left justified on a new row immediately underneath the module buttons.

I have two questions. Where are they supposed to appear and how to I get them to consistently be right justified on the same row as the module buttons (which is where I want them)

You can see the weirdness for yourself if you go to the editor default demo here http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

In the settings area to the right of the editor, the default settings seem to be default toolsfile, all the modes and all the modules. In this case, the count is right justified and on the same line as the modules.

Now deselect Rad Editor Statistics and then select it again. You will see the word count disappear and when it comes back, it's on its own separate row underneath the modules.

When I launch my own editor, I cannot get the stats to appear anywhere other than left justified on a separate row.

Thanks,
Steve
Rumen
Telerik team
 answered on 04 Jun 2009
2 answers
110 views

Hello,

I have a Combobox where i add the items programmatically. In the OnSelectedIndexChanged event i want to save the new selected value. I tried this with the evaluation controls and this worked. Now i've bought the Q1 2009 Developer license, installed them and my code isn't working anymore.

Below is the code of a small testproject i made, reproducing the problem. On PostBack in the Init event the ComboBox.Items is first empty. In SelectedIndexChanged the Combobox.Items is filled again with the number of items i added but both Value and Item properties are empty.

Is there some property i need to set now or use some other events?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  </telerik:RadScriptManager> 
  <telerik:RadComboBox ID="RadComboBox1" Runat="server"   
    oninit="RadComboBox1_Init"   
    onselectedindexchanged="RadComboBox1_SelectedIndexChanged"   
    AutoPostBack="True" > 
  </telerik:RadComboBox> 
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
 

protected void RadComboBox1_Init(object sender, EventArgs e)  
{  
    RadComboBox1.Enabled = true;  
    if (!Page.IsPostBack)  
    {  
        RadComboBox1.Items.Clear();  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 1""1"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 2""2"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 3""3"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 4""4"));  
        RadComboBox1.Items.Add(new RadComboBoxItem("Item 5""5"));  
    }  
}  
 
protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
{  
    Label1.Text = RadComboBox1.SelectedItem.Text + " : " + RadComboBox1.SelectedItem.Value;  
Jeroen Eikmans
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
80 views
Hi there,

I need the documentation for the client-side API for RadTreeView.  In Q3 2008 there used to be a CHM file somewhere that listed all the client-side functions and their signatures; this seems to be missing from my installation of Q1 2009.  Can you point me to somewhere that has this information?

Thanks in advance,

Ed
Ed
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
80 views
i having javascript error "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

This happen when i having two RadPageView and one required validator registered in textbox located RadPageView1, after this i move to
RadPageView2 and click on button which is not inside tabs.
Brian
Top achievements
Rank 1
 answered on 04 Jun 2009
1 answer
185 views
Hi telerik team ,

I have an issue with numeric text box . the text is not getting sticky when i select , moves up and down.
i used below peice of lines
 <telerik:RadNumericTextBox Font-Size="11px" ShowSpinButtons="True" Type="Percent" Width="60px" Height="8" 
                                                                ID="txtdiscount" MaxValue="100.00" Value="5.50" MinValue="0.00" MaxLength="5" 
                                                                runat="server" Culture="English (United States)" InvalidStyleDuration="100">  
                                                                <NumberFormat AllowRounding="false" /> 
                                                            </telerik:RadNumericTextBox> 
please let me know if i missed anything.


Thanks & Regards
G.Sudheer kumar
Dimo
Telerik team
 answered on 04 Jun 2009
8 answers
251 views
Hi All,

Am using Telerik Grid control in one of my web page. In this telrik grid to edit the Grid row am Using EditForm User control
Please see below my code 
 
  <EditFormSettings UserControlName="~/editform.ascx" EditFormType="WebUserControl" > 
                        <EditColumn UniqueName="EditCommandColumn">  
                        </EditColumn>                          
                    </EditFormSettings> 
And I turn ON the Validate Request property in my web config file
<pages validateRequest="true" theme="Original"
But one of the text box inside my User control i want to allow HTML tags. Ex: <ADV> this is a sample advertisement </ADV>
When I type above text its giving me "Potentially dangerous request" error. which is correct because i turn ON validate Request property in the web config file.

But In My case I want to overcome this problem for a single text box which am using in my UserControl.
Could you please help me how can I allow Unsafe Script to one text box  with out chnaging my web config ValidateRequest property...


Georgi Krustev
Telerik team
 answered on 04 Jun 2009
6 answers
145 views
I have a modal dialog box where iam allowing the user to choose special characters like "≅*≈ â™£â™¥ "and pasting them back onto RADEditor for moss.
Iam using RADEditorSharepoint version 5.4.0.0

my code in .js file goes as follows...
<code>

var

params = editor._dialogParameters;

 

 

var SelectedChar = window.showModalDialog(params["CurrentWebBaseUrl"] + "/_layouts/MySpecialCharacters.aspx", "XYZchars", "center:yes;dialogWidth:600px;dialogHeight:600px;resizable:1");

 

 

if (SelectedChar && SelectedChar.length > 0) {

 

editor.pasteHtml(SelectedChar);

}

</code>

Things are working fine and iam able to see the special characters are getting pasted onto editor without fail. But the issue is as follows.

When i paste â™£â™¥ symbols onto Design view, it should be converting them as &clubs; &hearts; but, when  you switch between design view, neither of the views has got the HTML equivalants like  "&clubs; &hearts;". rather it has got "♣♥" symbols in both the views.

What am i missing here to see "&clubs;" in my html view when i pasted the symbol "♣" onto design view.


Thanks
Prat
Stanimir
Telerik team
 answered on 04 Jun 2009
4 answers
335 views
Hello,

Been working through the demos and documentation on this control. I have it working but I am struggling to get my head around how to set the values of the indicators. Here is my code:

private void UpdateProgressContext(UploadedFile file) 
    { 
        const int total = 100
 
        RadProgressContext progress = RadProgressContext.Current; 
        DateTime startTime = DateTime.Now; 
 
        for (int i = 0; i < total; i++) 
        { 
            progress.PrimaryTotal = FileHelper.GetFileSize(file.ContentLength); 
            progress.PrimaryValue = i; //TODO: file size 
            progress.PrimaryPercent = i; 
 
            progress.CurrentOperationText = file.GetName(); 
 
            TimeSpan elapsed = DateTime.Now.Subtract(startTime); 
            progress.TimeElapsed = string.Format("{0:D2}:{1:D2}:{2:D2} s", elapsed.Hours, elapsed.Minutes, elapsed.Seconds); 
 
            double estimatedMillisecons = 24 * 60 * 60 * 1000; 
            if (i != 0) 
            { 
                estimatedMillisecons = total * elapsed.TotalMilliseconds / i; 
            } 
 
            TimeSpan estimated = TimeSpan.FromSeconds(1); 
            if (estimatedMillisecons > 1) 
            { 
                estimated = TimeSpan.FromMilliseconds(estimatedMillisecons); 
            } 
            progress.TimeEstimated = string.Format("{0:D2}:{1:D2}:{2:D2} s", estimated.Hours, estimated.Minutes, estimated.Seconds); 
 
            double speed = 0.0d; 
            if (elapsed.TotalSeconds > 0) 
            { 
                speed = i / elapsed.TotalSeconds; 
            } 
            progress.Speed = string.Format("{0:0.00}", speed); 
 
            if (!Response.IsClientConnected) 
            { 
                //Cancel button was clicked or the browser was closed, so stop processing 
                break; 
            } 
 
            //Stall the current thread for 0.1 seconds 
            System.Threading.Thread.Sleep(100); 
        } 
    }  

I want a very simple indicator - 1 progress bar indicating the total file size of the file being uploaded, the value to be the number of bytes currently being processed and the percentage. I'd also like the estimated upload time and speed (in KB/s) to be displayed.

I'm just about there but the time, speed and bytes value is incorrect. I think because of the total I am setting (i.e. 100).

Thanks,

Michael
Michael Dunbar
Top achievements
Rank 2
 answered on 04 Jun 2009
3 answers
118 views
Hi,

I have a client that needs to upload 30-40 images in a folder to a gallery on his website is there a practical way of doing this using RadUpload ???

Similar to this: http://ajaxuploader.com/Demo/select-multiple-files-upload.aspx

Thanks in advance
Naveed
Roland Vonk
Top achievements
Rank 1
 answered on 04 Jun 2009
1 answer
69 views
Our site uses a couple custom skins which look somewhat off with the newest dll. I know there have been promises to fix any skin breakage but I'm not sure how much of our code I would be allowed to send out. Is there any place I can look for documentation as to how I might go about updating the site myself?

Thanks.
Dimo
Telerik team
 answered on 04 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?