Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
HI,

I have a table which may contain hundreds of NumericTextBoxes. This results in thousands line of Javascript repeating

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadNumericTextBox, {"_enableOldBoxModel":false,"_focused":false,"_originalValue":45,"_postBackEventReferenceScript":"setTimeout(\"__doPostBack(\\\u0027ctl00$m$g_c2c9bd70_6add_41ce_811f_7a6842bf9330$ctl10$6cd603ba-6163-4442-b414-0171c5db5942_upper_12$inputBox\\\u0027,\\\u0027\\\u0027)\", 0)","_shouldResetWidthInPixels":true,"clientStateFieldID":"ctl00_m_g_c2c9bd70_6add_41ce_811f_7a6842bf9330_ctl10_6cd603ba-6163-4442-b414-0171c5db5942_upper_12_inputBox_ClientState","enabled":true,"incrementSettings":{InterceptArrowKeys:true,InterceptMouseWheel:true,Step:1},"numberFormat":{"DecimalDigits":0,"DecimalSeparator":".","CultureNativeDecimalSeparator":".","GroupSeparator":",","GroupSizes":3,"NegativePattern":"-n","NegativeSign":"-","PositivePattern":"n","AllowRounding":true,"KeepNotRoundedValue":false,"KeepTrailingZerosOnFocus":false},"styles":{HoveredStyle: ["width:32px;", "riTextBox riHover eingabe number"],InvalidStyle: ["width:32px;", "riTextBox riError eingabe number"],DisabledStyle: ["width:32px;", "riTextBox riDisabled eingabe number"],FocusedStyle: ["width:32px;", "riTextBox riFocused eingabe number"],EmptyMessageStyle: ["width:32px;", "riTextBox riEmpty eingabe number"],ReadOnlyStyle: ["width:32px;", "riTextBox riRead eingabe number"],EnabledStyle: ["width:32px;", "riTextBox riEnabled eingabe number"],NegativeStyle: ["width:32px;", "riTextBox riNegative eingabe number"]}}, null, null, $get("ctl00_m_g_c2c9bd70_6add_41ce_811f_7a6842bf9330_ctl10_6cd603ba-6163-4442-b414-0171c5db5942_upper_12_inputBox"));
});

As the application targets IE6 this is extremly slow, causing a non responding IE.

Isn't there a possibility to speed things up / reduce the js code?
Dimo
Telerik team
 answered on 29 Mar 2010
1 answer
112 views

problem with custom fonts in the drop down.

My Radeditor component contains the following.

 

 

<FontNames>

 

 

 

<telerik:EditorFont Value="SomeFont1" />

 

 

 

<telerik:EditorFont Value="SomeFont2" />

 

 

 

<telerik:EditorFont Value="SomeFont3" />

 

 

 

</FontNames>

However, no matter what font is chosen the text in the dropdown box says Arial.    If I examine the content it is updating to the selected font. (ie: <FONT face="SomeFont1">dfsdfasdfasdfasdf</FONT>)  Only the text rendered in the dropdown says Arial.  

Note, that the fonts being chosen do not actually exist on the computer.  The content is being captured for an offline printing application, where the user chooses the font(s) the content will print in. 

Does the editor require the chosen font to exist on the client computer? 

Since, I dont what the user to think that the content will print in Arial.  Is there a way to make the box say "Default" instead of "Arial"? 



 

Rumen
Telerik team
 answered on 29 Mar 2010
1 answer
62 views
Hi All

I'm adding html directly to radeditor in html view .The html i'm adding has a style tag where i defined some styles and classes to reference and use. I have a link and when i change it's properties from design view and switch back to html view i find the style tag content replaced by the content of the title tag.

Any idea what may be causing so ?

Thanks
In Advacne
Rumen
Telerik team
 answered on 29 Mar 2010
1 answer
125 views
With the example here:
http://demos.telerik.com/aspnet-ajax/splitter/examples/sp_slidedirection/defaultcs.aspx

Is there a way for me to view pane1, pane2, and pane3 all together at once?



Tsvetie
Telerik team
 answered on 29 Mar 2010
1 answer
187 views
Hello,

How to refresh the grid whie unloading  the pop up window ?

The grid should display the refreshed data on same page selected in footer. (i.e. state of the grid should be maintained)
Shinu
Top achievements
Rank 2
 answered on 29 Mar 2010
4 answers
607 views

Hello,

I am having trouble finding the proper syntax for getting controls inside Radschedulers InlineInsertTemplate (or any other template for that matter)  I have read the articles in the KB about accessing controls inside templates dealing with RadMenu but none specifically dealing with RadScheduler.

I am trying to check the value of a textbox in my template on appointment insert to see if it has a value or not.  If not, I want to be able to insert some sort of default value into the appointment.  Whenever I try to access controls in the inline edit using schedule.FindControl("myTextBox") or schedule.NamingContainer.FindControl("myTextBox") I am met with an error

Object reference not set to an instance of an object.

Here is an example of the code I am trying to use.

    Protected Sub schedule_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles schedule.AppointmentInsert  
 
        'Insert this dummy value into the textbox when appointment is being inserted  
        CType(schedule.FindControl("TitleTextBox"), TextBox).Text = "YO" 
 
    End Sub 

If anyone can help me out with this I would greatly appreciate it.

Thanks
Peter
Telerik team
 answered on 29 Mar 2010
3 answers
93 views
On the Page_Load the Attribute IS set correctly.

So that on NodeExpand of the top level the myPC node is created.

However, the Attributes.Add in NodeExpand does not set the attributes.

Therefore NEXT time it comes into expand, Drive node is NOT created.

Is this a bug?

protected void Page_Load(object sender, EventArgs e) 
{ 
     if (!Page.IsPostBack) 
     { 
           RadTreeNode rootNode = new RadTreeNode("Computers"); 
           rootNode.Attributes.Add("type", "ROOT"); 
           rootNode.Value = "ROOT"; 
           rootNode.ImageUrl = "~/TreeView/Img/WindowsXP/6myNetworkPlaces.gif"; 
           rootNode.Expanded = true; 
           rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; 
           RadTreeView1.Nodes.Add(rootNode); 
     } 
}  
 
protected void RadTreeView1_NodeExpand(object sender, RadTreeNodeEventArgs e) 
{ 
            if (e.Node.Attributes["type"] == "ROOT") 
            { 
 
                RadTreeNode node = new RadTreeNode("mypc"); 
                node.Attributes.Add("type", "COMPUTER"); 
                node.Value = "COMPUTER";          
                node.ImageUrl = "~/TreeView/Img/WindowsXP/2PCRemote.gif"; 
                node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; 
                e.Node.Nodes.Add(node); 
 
                return; 
            } 
 
            if (e.Node.Attributes["type"] == "COMPUTER") 
            { 
 
                RadTreeNode node = new RadTreeNode("C"); 
                node.Attributes.Add("type", "DRIVE"); 
                node.Value = "DRIVE"; 
                node.ImageUrl = "~/TreeView/Img/WindowsXP/15hardDisk.gif"; 
                node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack; 
                e.Node.Nodes.Add(node); 
            } 
} 
 

Veronica
Telerik team
 answered on 29 Mar 2010
1 answer
64 views
I am trying to run the LIveDemo's solution locally. When I open the solution and try and compile I get the following error:

"Error 8 Cannot implicitly convert type 'double' to 'decimal'. An explicit conversion exists (are you missing a cast?)  "

However when I click the error, it doesn't bring me to any code to look at or correct, so I'm not sure on how to fix the issue. Has anyone seen this error when trying to compile Q1 2010 solution?

Kevin

Tsvetie
Telerik team
 answered on 29 Mar 2010
7 answers
125 views
Hi ,
How to wrap text if Ramenu size is fixed? 
We are using fixed width of radmenu, and sometimes we have long text in  radmenu like "The local school system's board of education"
then how to wrap these all text. I am giving Live URL http://www2.gsba.com/
We are using radmenu in DNN, so radmenuitem style won't work.
(Eg. <rad:RadMenuItem Width="150px" Text="This is the item with the very long text" style="white-space:normal" />)
 
Thanks,
Vivek
Yana
Telerik team
 answered on 29 Mar 2010
1 answer
167 views
Is it possible to delete multiple files at once with the file explorer? For example, if I hold ctrl and select and few files and then click the delete button, only the last file I selected is deleted. Can I make it so that all of the selected files are deleted?
Lini
Telerik team
 answered on 29 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?