Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
501 views
Hi, I am trying to use a RadListView in the same way I use a RadGrid in that I am trying to get the datakeyvalue for a specific dataitem when in the ItemDataBound method.

In a RadGrid, I can do the following:

e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][myDataKey] 

to get the value of each datakey and then set client-side onclick attributes for a hyperlink so that clicking the link opens a RadWindow, passing in the row ID.

However, e.Item for a RadListView does not have an ItemIndex property, so how can I do the same for a RadListView?
ie,

e.Item.OwnerListView.DataKeyValues[???][myDataKey]

Regards,
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 16 Feb 2010
4 answers
204 views
Hi all,

I am new to Telerik RadControls for ASP.NET.

I want to create a Excel like grid. Without the need to click the "Add" hyperlink to add a row. Without the need to click "Edit" link to edit a record... etc.

I have checked the forum and code library. Its has a very simular thread in the code library but its old - seems its from old version Rad controls and its for ASP.NET 2.0 anyway.

I thought the excel like grid is a very popular thing to do but seems not many people are talking about it. Is it a reason for that?

Also can I please ask if anyone has done it in the lastest RadGrid and in ASP.NET 3.5 and able to provide some sample for me.

The grid itself seems unable to do it and it seems to need to wrap with something controls but I don't have a clue.

Please help.

Edward
Top achievements
Rank 1
 answered on 16 Feb 2010
1 answer
136 views
Hi,

i've got a problem using the RadTreeView.

I have a simple RadTreeview, which send some Javascript Arguments to a RadXmlHttpPanel using OnClientNodeClicked:

  function OnClientNodeClicked(sender, args) { 
 
             var node = args.get_node(); 
             node.select(); 
             var panel = $find("<%=RadXmlHttpPanel1.ClientID%>"); 
            
             panel.set_value(node.get_value()); 
             
 
             
 
         } 
 
  <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" 
                      Value="EMPTY" 
                      LoadingPanelID="RadAjaxLoadingPanel2" 
                        OnServiceRequest="XmlHttpPanel_ServiceRequest" 
                        Height="180px" 
                        Width="280px" 
                        EnableClientScriptEvaluation="true" 
                       ></telerik:RadXmlHttpPanel> 
 

It works well.

But i have to add another RadXmlHttpPanel under this one with a RadGrid inside (Following Telerik sample).

I put a OnNeedDataSource="RadGrid1_NeedDataSource" on my RadGrid in order to fill it, and i tried this in code behind:

Dim s As String = RadTreeView1.SelectedValue 
 RadGrid1.DataSource = MyFunction(s) 

But it fails. i've trying to find a solution for 2 days now, but i don't know how to catch my treeview value. Any help? thanks


Nicolas


Pero
Telerik team
 answered on 16 Feb 2010
1 answer
178 views
I am having an issue with AJAX (and only AJAX calls) calls when using embedded scripts that are compiled into a DLL. For example, RadTabs work fine, but when loading a user control via AJAX, I get an error. Likewise loading a user control via AJAX for a ToolTip gives me an error.


The error being returned is:

RadToolTipManager response error:
Exception=Sys.WebForms.PageRequestManagerServerErrorException: Assembly 'JPScriptResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not contain a Web resource with name 'JPScriptResources.jquery-1.3.2.min.js'.


I can verify that the embedded jQuery IS working in my site, as it works in several other places. I even removed jQuery from embedding, and it just errors on whatever the next embedded script is.

Any thoughts?


Veselin Vasilev
Telerik team
 answered on 16 Feb 2010
2 answers
157 views
I have a radsplitter as followed:
Left Pane : Treeview
Right Panel : Uses the "ContentURL"

I need the page being loaded into the right panel contenturl background to be transparent so that it doesnt overlap the background set for the right panel.
How may I go about this?
Thanks in advance.

 

- Update -
How do I had "allowTransparency=true" to the iframe generated by radsplitter?  This is what I need to get the transparent to work in IE.
Svetlina Anati
Telerik team
 answered on 16 Feb 2010
1 answer
145 views
Hi,

I have a problem on my live site using radwindow resize method, on the testing server (without https) the resize is working fine, but on the live server it generates javascript error on the resize method: Access is denied.


Click on the map picture to popup the radwindow, I've tested this case on IE, Firefox, and Google Chrome, in IE we can see the javascript error detail: Access is denied, but in Firefox and Chrome the javascript error is ignored but the resize is also not working.

Please advise as we cannot find any solution but to turn off the resize, but this solution is not acceptable.

Best regards,
Omar S.
Svetlina Anati
Telerik team
 answered on 16 Feb 2010
1 answer
147 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
216 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
87 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"><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
112 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
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?