Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
87 views
Hello,

I just discovered that silverlight is no more in default toolbar (skin Web20) in Q32009 ?
May be it has disappeared before ?

I checked documentation but have not been able to find somewhere the default tools list ??
Or am I missing something ?

Thank you for info.
CS
CSurieux
Top achievements
Rank 2
 answered on 02 Dec 2009
1 answer
211 views
I've posted a message in the RadTooltip forum to know how to implement a kind of "modal popup" and then append another "information popup" inside.  I've been directed to use a Radwindow to acheive this behavior.  However, there is no example of loading a UserControl into a radwindow.  The only examples I've found are asp.net pages.

Can you please provide an example of loading a UserControl inside a RadWindow?
Thank you very much !

Guillaume
Fiko
Telerik team
 answered on 02 Dec 2009
1 answer
162 views
Hi telerik Guys !

I  need your help to sort  my problem.

I have been playing wid the RAD FILE EXPLORER for a quite some while in my project.

I have an folders list displayed at the TREE CONTEXT MENU, now when I right click & choose "DELETE" to delete a folder. the folder gets deleted while it still exists there & i need to go to the ROOT where that folder was present & then click on to REFRESH button to get the REFRESHED RAD FILE EXPLORER.

Iam not able to REFRESH the RAD FILE EXPLORER at first instance when I delete the folder.

I dont know whats goin WRONG ??

Though I have used DATABIND methof for TREEVIEW ....but all in vain ......

Help guys............. help..................

Ajay Jamwal
Fiko
Telerik team
 answered on 02 Dec 2009
2 answers
117 views
Hi All,

I am getting specified cast is not valied exception for numeric textbox on add new record in radgrid.

my aspx as follows...
<telerik:GridTemplateColumn DataField="AmountReceived" EditFormColumnIndex="1"  
                                HeaderText="Amount Received" SortExpression="AmountReceived"  
                                UniqueName="AmountReceived"> 
                                <EditItemTemplate> 
                                    <telerik:RadNumericTextBox ID="AmountReceivedRadNumericTextBox" runat="server"  
                                        Type="Number" Value='<%# Eval("AmountReceived") %>'> 
                                    </telerik:RadNumericTextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="AmountReceivedRadNumericTextBox" 
                                ErrorMessage="Required" runat="server"></asp:RequiredFieldValidator> 
                                </EditItemTemplate> 
                                <ItemTemplate> 
                                    <asp:Label ID="AmountReceivedLabel" runat="server"  
                                        Text='<%# Eval("AmountReceived") %>'></asp:Label> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 

Please help me regarding this.
PM
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
158 views
Hello,

I have a rad editor which i want to change its upload and viewpath to a direcotry which is not under my application.
Lets say that my application is at D:\MyWebSites\Site1\
But i want to show a target such as D:\Images\
Because if the target is under my application, when i publish a new version of my site, the image will be deleted.
Here is my code

<telerik:RadEditor ID="txtDescription" runat="server" EnableResize="False" Height="300px" 
                                ToolsFile="~/App_Data/BasicTools.xml" Width="552px" Skin="Default"> 
                                <Content>                     
                     
                                </Content> 
                                <ImageManager UploadPaths="D:\Images" ViewPaths="D:\Images" /> 
                            </telerik:RadEditor> 

It gives an error that "... is not a valid virtual path". The viewpath can also be something like http://localhost/Images. But i gives the same error.

Regards.


Fiko
Telerik team
 answered on 02 Dec 2009
9 answers
576 views
I have a Rad Grid where the user can create empty rows to populate and save them to the database.  The user can create multiple blank rows and cancel them accordingly.  My code successfully creates the blank rows and maintains existing rows by populating a dataset with the existing rows then creating new empty rows in that same dataset, then rebinds the dataset. 

The problem is that even though after the Cancel icon is clicked and that cancelled row is deleted from the datset, and the grid is rebound and the grid shows the proper rows in debug (the deleted row is gone), for some reason when the page is redisplayed that row that was deleted from the dataset is still there.  It's no longer in Edit Mode but it lingers in the grid like some Ghostly Row of Debugging Past.  I can't find a way to get rid of that row.  But it is defintiely not in the dataset after the last rebind.

The Grid is ajaxed.  Could this be the issue?  How can I force the refresh of the grid after the databind?  This has become a huge time consuming problem and I really hope I can resolve this soon.

Thanks for your help
Sebastian
Telerik team
 answered on 02 Dec 2009
1 answer
144 views
I am a bit confused...

I have a site that is utilizing URL Routing and I want to create a custom image and file dialog that allows me to select file names from a database.  I have already created an image/file management system and I simply want the image/file dialog to read the database as needed and place the links within my content.  The actual delivery of the assets will be handled by my routing protocol (which will deliver actual physical files from the server, not binary information from the database).

I have tried to implement the RadEditorCustomProvider, but I am not sure how to implement it for my needs.

Here is the custom provider, but I have no idea how to call it or fill it with data from by database...

Imports Telerik.Web.UI.Widgets 
 
Namespace RadEditorCustomProvider 
    Public MustInherit Class MyFileBrowserContentProvider 
        Inherits FileBrowserContentProvider 
 
        Public Sub New(ByVal context As HttpContext, ByVal searchPatterns As String(), ByVal viewPaths As String(), ByVal uploadPaths As String(), ByVal deletePaths As String(), ByVal selectedUrl As String, ByVal selectedItemTag As String) 
 
            MyBase.New(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag) 
 
        End Sub 
 
    End Class 
End Namespace 

Can anyone help?
Thanks!!

Mark
Fiko
Telerik team
 answered on 02 Dec 2009
1 answer
174 views



Hi,

I am wondering if anyone can offer any suggestions to resolve an problem I am having.

What I am trying to do: Programmatically create the equivalent of the NodeTemplate (as follows)

<telerik:RadTreeView ...

<Nodes>

<telerik:RadTreeNode>

<NodeTemplate>

some html in here....

</NodeTemplate>

</telerik:RadTreeNode>

</Nodes>


This is an example of the server side code which programmatically adds the nodes to the tree and uses a custom NodeTemplate RadTreeNodeTemplate (see below)

public class RadTreeNodeTemplate : ITemplate

{

private string content;



public RadTreeNodeTemplate(string text)

{

content = text;

}



#region ITemplate Members



public void InstantiateIn(Control container)

{

HtmlGenericControl nodeDiv = new HtmlGenericControl("div");

nodeDiv.Visible = true;

nodeDiv.InnerHtml = content;

nodeDiv.EnableViewState = true;

container.Controls.Add(nodeDiv);

}



#endregion

}

}

Tree building code:

....

RadTreeNode node = new RadTreeNode();

node.Expanded = true;

node.NodeTemplate = new RadTreeNodeTemplate(question.LibraryQuestion.ShortDescription);

node.Value = question.Id.ToString();

parentNode.Nodes.Add(node);

....

The problem is with the programmatically generated nodes cause client-side errors when you mouse over them when they have html content.

a.RadTreeNode.prototype={set_element:function(c){this._element=c;

this._element._item=this;


I figure the html rendered isn’t quite correct... What should I have my RadTreeNodeTemplate (custom ITemplate)

Any help would be greatly appreciated.

Cheers Michael

Roland
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
219 views
Hi,

I am using radtreeview in my application, in the nodeclick event,

radtreeview.slectednode.value gives null reference exception.

what should i do.

<telerik:RadTreeView ID="RadTreeView1" runat="server" ShowLineImages="False" CheckBoxes="True"  OnNodeClick="RadTreeView1_NodeClick">
 </telerik:RadTreeView>

 protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)
    {
        try
        {
            string str = RadTreeView1.SelectedNode.Value;
        }
        catch
        {
        }

        Response.Redirect("member.aspx?member=" + str);
    }

thanks,
mano
Roland
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
151 views
Hi,

I'm trying to find a way to utilise the ".set_html" javascript call to obviously set the content of the editor on a postback (or client-side). I'm using a RadGrid which is holding versions of content with a selecting button which fires a 'SelectedIndexChanged' event - this is where I am attempting to set the html of the editor by calling the following:

 

 

Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "setversion", "javascript:setContent('" + txtDescription.UniqueID + "','" + RadEditor1.UniqueID + "');", True) 

The function is here:

<script type="text/javascript" language="javascript">  
    function setContent(textbox,editor)  
    {  
        $find(editor).set_html($get(textbox).value);  
    }  
</script> 

Is this possible to do? If I'm heading in the wrong direction any advice would be greatly appreciated.

Thanks

 

Rumen
Telerik team
 answered on 02 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?