Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
Question:  I'm trying to add a RadEditor to my application - but it's a control generated on the fly in the back end.

How can I add this control (and limited features) dynamically in the code behind?
Basically, all I want to do is add the editor with the following:
  • Font Choices (limited to: "Arial", "Times New Roman", "Frutiger Roman")
  • Text Size (limited range from 8px - 25px)
  • Font Color Choices (limited to maybe 3 or more colors)
  • Font Bold
  • Font Italic
  • Font Underline
  • Cut/Copy/Paste

Thanks in advance.

Rumen
Telerik team
 answered on 03 Sep 2012
3 answers
97 views
We have users, particularly IE 8 users, having issues where they get the error :
Stop Running this script?
A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.

I have been trying to optimize where we clear and add nodes to the tree and wanted some advice if possible. We have an older version of Telerik so we don't have the new bulk load option where I could pass in an array.

Currently to clear nodes I am doing :
               
                var nodes = tree.get_allNodes();
                for (var i=0; i < nodes.length; i++) {  
                    if (nodes[i].get_nodes() != null) {  
                        nodes[i].get_nodes().clear()
                    }  
                }

For adding nodes I am using
var tree = $find("<%= control.ClientID %>");
                var Node = tree.findNodeByText('NodeText');
                    var newNode = new Telerik.Web.UI.RadTreeNode();
                    newNode.set_text('');
                    newNode.set_value('');
                    newNode.check();
                    Node .get_nodes().add(newNode);

Once we get start adding close to a hundred nodes per each parent node we get this error. Any help / advice is greatly appreciated. IE9 users do not see this issue.
Boyan Dimitrov
Telerik team
 answered on 03 Sep 2012
1 answer
101 views
I have the below fomat of bullets in outlook as Shown bellow in image, when I copy this into Editor

 


It get's converted into: this format

v 
Out-of-the-box XHTML-enabled Output...

v  Unmatched Loading Speed and Performance

v  Microsoft Word-like Spell-checking

v  Seven Ways for Pasting from Word

v  Multilevel Undo/Redo with Action Trails

v  Extended Functionality Through Integrated Controls


"I want to show the original Bullets into telerik without changing any format of bullets "

Thanks
Pardeep

Rumen
Telerik team
 answered on 03 Sep 2012
1 answer
68 views
http://www.telerik.com/community/code-library/aspnet-ajax/grid/radgrid-client-side-toggle-selection-with-server-side-persisting-of-the-selected-items-after-sorting-filtering-and-paging.aspx

In reference to this article.
After you click on the button and save the entries. Only the selected rows on the first page are still being displayed. The other rows are loss.
This is the issue:
void RadGrid1_PreRender(object sender, EventArgs e)
     {
         string IDs = string.Empty;
         string rowIDs = string.Empty;
         foreach (GridDataItem item in RadGrid1.MasterTableView.Items)--->
         {
             CheckBox checkBox = item["template"].FindControl("CheckBox1") as CheckBox;
             if (checkBox.Checked)
             {
                 IDs = IDs + item["LinkNumber"].Text + ",";
                 rowIDs = rowIDs + item.ClientID.ToString() + ",";
             }
         }
         if (!string.IsNullOrEmpty(IDs))
         {
             IDs = IDs.Substring(0, IDs.LastIndexOf(","));
             int rowCount = RadGrid1.PageSize;
             ScriptManager.RegisterStartupScript(Page, Page.GetType(), "setSelectedAfterPostback", "setSelectedAfterPostback('" + rowIDs + "', " + rowCount + ");", true);
             Label1.Text = IDs;
         }
     }

Please let me when there is a fix.
Kostadin
Telerik team
 answered on 03 Sep 2012
1 answer
52 views
Hi,Guys,

I put some buttons on the left and a RadEditor on the right.

What I want to do:
1.click the button,then the RadEditor will show the specific html content.
2.the buttons not only mean a hyperlink but also a anchor in one page.
when clicking the anchor,the content in RadEditor will go to a specific localtion.

I write a js function for going to the anchor's position in the RadEditor's content.
The js function(scrolltoView) is registed when clicking the button with AjaxManager.

The problem:
1.when refreshing the content in RadEditor,the js function is fired and the RadEditor goes to the right position.
2.Howerver ,after the RadEditor is refreshed completely,it looks like the RadEditor loads some css style and then it goes to the wrong position.

How could this happen?Could I excute my js function after the css of RadEditor is loaded completely?

Thanks a lot,
Jack

Rumen
Telerik team
 answered on 03 Sep 2012
1 answer
53 views
Hello, I'm trying to use the control RadSocialShare with SendEmail button, it works fine, but I need to modify the appearance of the popup form to send the mail, such as not having control desire captcha, need to leave information in Spanish so as validations, how could you do this?
Thanks,
Marin Bratanov
Telerik team
 answered on 03 Sep 2012
1 answer
125 views
hello Telerik Team,

While upgradation of Telerik radcontrols for ASP.NET ajax i reach one point where i seek your guidance. In some blogs i have read that the Telerik RadControl Upgrade Wizard simply replace the existing DLL files with the Upgraded DLL files. So my question is, does make any difference when i directly replaced the downloaded DLL files with the previous DLL files?
so if this is true that "Upgrade Wizard" simply replaces the older version DLL files with newer version DLL files then instead of using "Upgrade Wizard" can we manually replace the older DLL with newer DLL directly?

Apart from replacing the upgraded DLL files with the older DLL files, does Telerik upgrade wizard provides any additional advantages?

Thanks,
Ashish
Rumen
Telerik team
 answered on 03 Sep 2012
1 answer
94 views
Hi,
I currently open a page from another radwindow using the code...

Protected Sub RadGrid1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles RadGrid1.SelectedIndexChanged
    If RadGrid1.SelectedItems.Count > 0 Then
        For Each item As GridDataItem In RadGrid1.SelectedItems
            Dim strid As String
            strid = item("UniqueID").Text
            Session("Selected") = "Selected"
            Session("ID") = strid
 
            Dim newwindow As New RadWindow
            newwindow.NavigateUrl = "MessageForm1.aspx"
            RadWindow1.Windows.Add(newwindow)
            newwindow.Width = Unit.Pixel(600)
            newwindow.Height = Unit.Pixel(650)
        Next
    End If
End Sub

And everything opens fine, until I come to closing it, I know everything works because It works perfectly using "response.redirect"
When I close it using the following code...
Protected Sub btnSave_Click(sender As Object, e As System.EventArgs) Handles btnSave.Click
 
    Dim log As New dbMessageLog()
    log.ForID = Convert.ToInt32(ddlFor.SelectedValue)
    log.From = Convert.ToString(ddlFrom.SelectedValue)
    log.Customer = txtCustomer.Text
    log.Telephone = txtTelephone.Text
    log.Email = txtEmail.Text
    log.Urgent = Convert.ToInt32(chkUrgent.Checked)
    log.TakenByID = Convert.ToInt32(ddlTakenBy.SelectedValue)
    log.TakenOn = Convert.ToDateTime(DatePicker.SelectedDate)
    log.Actioned = 1
    log.StatusID = Convert.ToInt32(ddlStatusID.SelectedValue)
    log.Message = txtMessage.Text
    log.Subject = TextBox1.Text
 
    If lblMessageID.Text = zero Then
        log.Create(log)
    Else
        log.UniqueID = lblMessageID.Text
        log.Update(log)
    End If
    InjectScript.Text = "<script type='text/javascript'>CloseAndRebind();</" + "script>"
    Session("ID") = zero

On First Click...
It saves the data but doesn't close the window, and displays the old values
the screen flickers slightly as well
However
On a second click of the save button it works fine

It also does it when I click on the "x" at the top right of the page
so i guess it's something to do with the opening code?

Thanks in advance
Ryan
Marin Bratanov
Telerik team
 answered on 03 Sep 2012
3 answers
96 views
This is probably a simple answer, and I'm just not seeing it.
I'm using the Custom Advanced Form example, and what I would like to do is hide the Resource drop down list located within the user controls based on a value on my Scheduler page. For example, if lblOwner.text="N" on the scheduler page, then hide the resource drop down on the advanced form when editing or creating an appointment.

How would I go about accessing those controls?
Boyan Dimitrov
Telerik team
 answered on 03 Sep 2012
6 answers
228 views
Hey,

So - from what we've noticed, this small breaking change actually did quite a number on our site. We've had to implement a site wide control skin to set EnableSingleInputRendering=false for all applicable RadControls.

For one, we noticed that when EnableSingleInputRendering=true, which is the default now, that the final input dom element gets the style "color: transparent;" when the control is not in focus. Why is this?

Thanks,
Kori
Vasil
Telerik team
 answered on 03 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?