Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
Hi from spain and excuse me for my english. How can i set the content directly from a html file?

thanks
Rumen
Telerik team
 answered on 16 Feb 2010
0 answers
217 views
HI ,

I would like to know if there exists a sample which demonstrates an implementation of user control based on some telerik control, exposed as a DLL ? 

I mean that I need to create a user control which could be given to developer as a DLL only.

The one of many problems that I see is sharing of e.g. rad script manager .

Can telerik team provide a simple example of such a control ? 

thanks in advance ! 

 
MOD MOD
Top achievements
Rank 1
 asked on 16 Feb 2010
3 answers
90 views

I’m implementing a Custom Insert Link Dialog, but have run into a problem.

When I insert a link from my custom dialog it insert the new link and the original link (without any contents with argument parameters used)

IE 8
Original editor source:

<p><a href="/link.htm">link text</a></p> 

Source after Insert:

<p><a href="/link.htm">link text</a><a href="/link.htm" SKS="bd274b09-7e8d-4802-8edb-f739b2fd00c1" SiteID="1294" PeopleID="12459" newHref="/link.htm"></a></p> 

All element properties are properties of the dialog argument object.

Firefox – OK

Chrome and Safari 4

Original editor source:

<p><a href="/link.htm">link text</a></p> 

Source after Insert :

<p><a href="/121212.htm"><a href="/121212.htm">test of v8 style link</a></a></p> 

Steps I Take
Highlight link
Click custom dialog button on toolbar and insert link
Change to html view – and see problem

Followed the example on:
http://www.telerik.com/help/aspnet-ajax/addcustomdialogs.html 

CODE: 

Telerik.Web.UI.Editor.CommandList["InsertSpecialLink"] = function(commandName, editor, args) {  
 
                var selectedElement = editor.getSelectedElement();  
                var popUpUrl = "/AdminV9/Link/InsertLink.aspx?sks=" + "<%=SKS%>";  
                  
                var argument = null;  
 
                if (selectedElement.tagName == "A") {  
                    editor.selectElement(selectedElement);  
 
                    // Set argument as link this will be passed into popup   
                    argument = selectedElement;  
                }  
                else {  
                    var content = editor.getSelectionHtml();  
 
                    if (content.indexOf('<A') > -1 || content.indexOf('</A>') > -1) {  
                        alert('Some of the text you have selected already contains a hyperlink. Click inside that hyperlink first to remove it or to edit it. ')  
                        return false;  
                    }  
 
                    // Create a new link element   
                    var link = editor.get_document().createElement("A");  
                    link.innerHTML = content;  
 
                    // Set argument as link this will be passed into popup   
                    argument = link;  
                }  
 
                // Modify argument so picker can call web services  
                argument.SKS = "<%=SKS%>";  
                argument.SiteID = "<%=SiteID%>";  
                argument.PeopleID = "<%=PeopleID%>";  
                var InsertInternalLinkOK = function(sender, args) {  
                    // Google makes the url absolute so use "newHref" property rather that "href"  
                    editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a>", args.newHref, args.target, args.className, args.innerHTML))  
                }  
 
                editor.showExternalDialog(  
                    popUpUrl,  
                    argument,  
                    600,  
                    500,  
                    InsertInternalLinkOK,  
                    null,  
                    'Insert Link',  
                    true,  
                    Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,  
                    false,  
                    true);  
            }; 

Thanks, 

Norman Peter
Top achievements
Rank 1
 answered on 16 Feb 2010
1 answer
113 views
I like to run the example of the Grid/Items Drag-and-drop ....

I copy the Html source to my computer,,, in this case I have the Visual Studio 2008 with the Telerik controls, I created the Project like: Telerik\Web\VB.NET Web Application, after that, I delete the html source and I copy the Html source of the example but  I received the follow errors messages:

Error 4 'Context' is not a member of 'Telerik.GridExamplesCSharp.Programming.DragAndDrop.DefaultVB'. C:\Prueba_Grid\RadControlsWebApplication1\RadControlsWebApplication1\Default.aspx 1 1 RadControlsWebApplication1
Error 5 'Context' is not a member of 'Telerik.GridExamplesCSharp.Programming.DragAndDrop.DefaultVB'. C:\Prueba_Grid\RadControlsWebApplication1\RadControlsWebApplication1\Default.aspx 1 1 RadControlsWebApplication1


Could you help me?  How I can run this example in my Visual Studio?

Tsvetoslav
Telerik team
 answered on 16 Feb 2010
1 answer
154 views
I have a modal popup with a couple entry fields and a radcalender on it. The calender renders behine the panal popup and drop shadow. How do I bring it render in front?
Dimo
Telerik team
 answered on 16 Feb 2010
1 answer
215 views
Hi,

I have the following problem. I create RadComboBox in code-behind Page_init

Dim ddl As RadComboBox 
Dim sqlSource As SqlDataSource 
ddl = New RadComboBox 
sqlSource = New SqlDataSource 
 
sqlSource.ConnectionString = WebConfigurationManager.ConnectionStrings(TablePrefix).ConnectionString 
sqlSource.SelectCommand = " SELECT ValueText, " & UItaal & "text AS tekst FROM " & TablePrefix & "_" & ArrCategory & " " 
 
plh_Category.Controls.Add(ddl) 
 
ddl.DataSource = sqlSource 
ddl.ID = "ddl_BU" 
 
ddl.EmptyMessage = GetGlobalResourceObject("Insight", "Maak uw selectie") 
ddl.DataValueField = "ValueText" 
ddl.DataTextField = "tekst" 
ddl.DataBind() 
The ComboBox is created OK but I cannot find it with

Dim ddl As RadComboBox = Page.FindControl("ddl_BU") 

It's keep telling me

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.





Why isn't the control added to the Controls collection?

Regards,
Marc



Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 16 Feb 2010
3 answers
146 views

Hi all,

I found two problems with the IPhone Menu and I need help.

1 - The Back Button has an erratic behavior. Take a look at the online sample, it happens there:
When you navigate to the inner child menus and you try to go Back, either the Button disappears OR remains there in the Root menu causing the Menu to totally disappear when clicked.

2 - Besides the issue mentioned above, I changed the IPhone RadMenu to a Master Page and I get a Javascript error: "Object Required - iPodRadMenu.js"
This causes the menu to lose its elastic vertical funny behavior/movements, typical as an IPhone.

I'm using the latest version of ASP.NET AJAX - .NET 3.5 DLL

Urgent help is needed, Thank you!

Nuno

Kamen Bundev
Telerik team
 answered on 16 Feb 2010
1 answer
131 views
Hi All,

I am wondering if it is possible to use the grid without using a database or other "updateble" datasource?
I was thinking of have a list of items on a step of a wizard and then based on the chose in step 1 I would like to populate the grid on step 2. This is working fine and I can set the datasource to a custom DataTable, the problem is that I would like grid to be updateble.

Can I use the viewstate or something like that to rebind the grid etc?


Thanks,
Anders
Shinu
Top achievements
Rank 2
 answered on 16 Feb 2010
7 answers
138 views
Hello Friends


I had used new radgrid control by using Telerik.Web.UI.

Now i want to apply old default css(RadControls/Grid/Skins/Default/Styles.css).

How i will apply old css to my new radgrid?

pls help me.

Thanks & Regards
Jignesh Patel

Dimo
Telerik team
 answered on 16 Feb 2010
1 answer
194 views
Guys,

I have Script Manager on the page and a bunch of controls that will be making requests to the database.
I wonder if those requests will be executed in asynchronous manner (the goal is to see some data on the page while other requests would still being served)...
Again, there is no javascript - just a bunch of user controls rendering text and images.

Thank you
B
Sebastian
Telerik team
 answered on 16 Feb 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?