Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views
Hi,

I've been searching for an hour with no luck... I really think a link to some upgrade information and procedures would be extremely useful.

I'm wondering what would be the side effects of upgrading my current trial controls Q1 2008 to what ever the lates on is now. Will it just fix the exising bugs? Will the properties change and will things break? To what extent?

Finally, what's the best way to do it?

Thanks.
Daniel
Telerik team
 answered on 26 Jun 2008
1 answer
124 views
Hi, I'm building an application that uses RadDocks and RadTreeView.

I want the user to drag and drop a RadTreeNode (that identifies a user control) onto a RadDockZone. After this dragging, a new user control is istantiated into a dynamic RadDock.

Now this user controls expose a lot of properties that I want to set and I want them to persist on postback.I know I have to instantiate the dynamic controls during Page_Init but if I use the HandleDrop event, I can instantiate it only after the Page_Load.

Now the question is: how can I instantiate the control in the page init?

Thanks a lot,
Marco
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
157 views
Hello,

So basically im creating a page that has 2 dockzones both with orientation set to hoirzontal. What I would like to do is leave around 20-25 pixels between each dock within the zone, and like it to remain like that alwys, i.e. when a new dock rom another zone is dragged on there, it should also remain 20-25 pixels away from the existing ones.

I tried setting the Left properties of the docks to no avail, I also put a style tag and set margins but somehow this did not give me the desired reults either. Is there an easy way to do this, just a simple css hack. or am i missing something here?

Thanks for your replies!

Best,
M
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
89 views

I am using Drag & Drop (DD) on the radGrid and everything is working fine except for where I DD on a control (this case a label) that's on the row.

Is there a way for the DD event to be fired if I DD on the label on the row, if I DD anywhere on the row where there is no label the event is fired properly.

Thanks
Rosen
Telerik team
 answered on 26 Jun 2008
3 answers
100 views
i recently upgraded to the new version of telerik (the latest hotfix 2008.1.619)

with the earlier version when i expanded one of the items in my radpanelbar the other already opened node collapsed.
With the new version that does not happen.

Can you suggest why?
newbie
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
245 views
Hi,

I have gone through the documentation which helps in setting the default background color and fonts in editor.

The article says using ContentAreaCssFile property to assign the css file containing body class to change background color.

I did the same but it doesn't work. If I assign the same file using CssFile.Add method, it sets the background color.
But, this takes away all the classes that were in the 'Apply CSS' dropdown tool. I need them.

I'm using Telerik theme from DLL resource by simply assinging 'telerik' name to skin property, and not customizing it.

Here one tutorial says about using ContentAreaCssFile, and other one says about adding external css file.
http://www.telerik.com/DEMOS/ASPNET/prometheus/Editor/Examples/SettingContentAreaDefaults/DefaultCS.aspx
http://www.telerik.com/help/aspnet-ajax/settingeditorbackgroundandcolor.html

What is the right thing to do?
I tried both of them, none works for me. Only using javascript works. But still leaves me with another problem.
Fonts on entire page that holds editor, are smaller than they should be in firefox. It looks good enough in IE.

Thanks,
Chirag
Rumen
Telerik team
 answered on 26 Jun 2008
1 answer
162 views
Hi telerik,

(Header should ofcause be 'RadEditor as TextBox', not TestBox)

I would like to use RadEditor as a simple editor for .txt, .js, .htm documents without the text beeing html formated. Like a regular multiline TextBox but with buttons (that dont generate html) like Cut, Coyp, Paste, Undo, Redo and Find & Replace. Like when editor is in 'HTML-mode', but with the above mentioned buttons as the only buttons and active/enabled.

Ofcause one shouldn't be able to choose view-modes, as there is no formating or preview.

Is this possible? Thanks in advance!

/horsted 
Rumen
Telerik team
 answered on 26 Jun 2008
1 answer
102 views
Hi is there any way we can use RadChart in RadEditor. Like to insert a RadChart in RadEditor.

Thanks
Atiq
Rumen
Telerik team
 answered on 26 Jun 2008
1 answer
169 views
I have searched the forum but have not found a related response to the issue I am reciving.

I have a large collection of address that a user might want to add to an editor so I have created an on demand drop down list, and a button (which when clicked inserts the value into the editor)

This all works but does a full postback so I positioned the combo (both inside and outside) the ajaxPanel along with the button and the editor   On clicking the button, the address is added correctly, on a subsequent search I get the Selection out of Range: Parameter Name Value.

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
        height="75px" InitialDelayTime="500" Transparency="25" width="75px">  
        <img alt="Loading..."   
            src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'   
            style="border:0px;" /> 
    </telerik:RadAjaxLoadingPanel><telerik:RadComboBox ID="rcmbGlobalAddress"   
            runat="server" AllowCustomText="True" CausesValidation="False"   
            EnableLoadOnDemand="True" Height="140px" ShowDropDownOnTextboxClick="False"   
            Skin="Outlook" SkinsPath="~/RadControls/ComboBox/Skins" Width="292px">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </telerik:RadComboBox> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" height="200px"   
        HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" width="100%">  
        &nbsp;<asp:Button ID="btnAddcc" runat="server" Height="25px" Text="Add CC:" /> 
        <telerik:RadEditor ID="RadEditor2" Runat="server" EditModes="Design"   
            Font-Names="Arial" Font-Size="12pt" Skin="Outlook"   
            StripFormattingOptions="MSWordRemoveAll" Width="735px">  
            <Tools> 
                <telerik:EditorToolGroup Tag="Empty">  
                    <telerik:EditorTool Name="AboutDialog" /> 
                </telerik:EditorToolGroup> 
            </Tools> 
            <Content> 
</Content> 
        </telerik:RadEditor> 
    </telerik:RadAjaxPanel> 

Code behind:
  Protected Sub rcmbGlobalAddress_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles rcmbGlobalAddress.ItemsRequested  
        If e.Text = String.Empty Then Exit Sub 
        Dim dl As New Datalogic  
        dtGlobalAddress = dl.getGlobalAddress(e.Text)  
 
        With rcmbGlobalAddress  
            .DataSource = dtGlobalAddress  
            .DataValueField = dtGlobalAddress.Columns(1).ColumnName  
            .DataTextField = dtGlobalAddress.Columns(0).ColumnName  
            .DataBind()  
        End With 
    End Sub 
The error on the server is trapped on the databind: and I have checked that rows are being correctly been returned from the following snippet.

Public Function getGlobalAddress(ByVal filterval As String) As DataTable  
        _Command = New SqlCommand  
        _DataResults = New DataSet  
        With _Command  
            .CommandText = "usp_SelectGlobalAddresses" 
            .CommandType = CommandType.StoredProcedure  
            .Connection = _Connection  
            .Parameters.Add("@StartsWith", SqlDbType.VarChar, 99)  
            .Parameters("@StartsWith").Value = filterval  
        End With 
        Try 
            _Connection.Open()  
            _DataAdapter = New SqlDataAdapter(_Command)  
            _DataAdapter.Fill(_DataResults)  
            Return _DataResults.Tables(0)  
        Catch ex As Exception  
            _Error = ex.Message  
            getGlobalAddress = Nothing 
            ' Throw ex  
        Finally 
            _Connection.Close()  
        End Try 
    End Function 


Simon
Telerik team
 answered on 26 Jun 2008
2 answers
105 views
Hi.

I have a table with a subtable.

The subtable has these fields from main table -
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="SongID" MasterKeyField="SongID" />
                    </ParentTableRelation>

These work great for just showing a list but when I try to Add a new item then SongID becomes nothin but I want it to be the same value as when I see the list.
How can I accomplish that? I need that SongID for my datasource and I want it to be populated even when I do "add a new entry". It just should equal to the main tables SongID.

Thanks
Vlad
Top achievements
Rank 1
 answered on 26 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?