Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
181 views
Hi!

I the newcomer in it. I tried to pass the given tutorial, and to add there RadEditor for text editing. But if I use RadScriptBlock RadEditor does not work. I also tried without it, but at me all the same it has not turned out to load a photo into a database. Could you  help me to realise this idea?

I have put the demo files here.
There is a screenshot as look the given table to a database, probably, it will help...

Regards,
Roman




Veselin Vasilev
Telerik team
 answered on 13 Feb 2009
1 answer
96 views
Hello,
When I create a user control(.ascx) with Telerik ASP.Net Ajax controls it works fine for first time.As soon as modify in ASPX code I can't able to see my design view from VS2008.
What's the problem.No Compilation Error.Nothing else.
ASPX code is fine.User control works fine with Other .ASPX files.Note that I can see design view of ASPX file where I am using WebControl.
Thanks in advance.
Sebastian
Telerik team
 answered on 13 Feb 2009
5 answers
148 views
Hi there,

I am trying to limit the number of docks in a zone to 1. Basically, I have three zones:

The selection zone that contains docks that can be selected
2 "drop zones" to which you can drag items from the selection zone.

What I want to do is this:

1. Once you drag an item from the selection zone to one of the drop zones, and the drop zone already contains a dock, that dock must be removed from the drop zone and placed back in the selection zone.
2. I'd like to have the same behavior for dragging items between the zones. That is, if I drag a dock from dropzone 1 to dropzone 2 and dropzone2 already contains a dock, that dock must be placed back in the selection zone.

Is this possible? If so, how?

I tried handling the PositionChanged handler server side, but it also fires for the current item (as its index may have changed), so I can't figure out what dock is new, and which one was already there.

Any suggestions, pointers to the help file and so on are more than welcome.

Cheers,

Imar

Imar
Top achievements
Rank 1
 answered on 13 Feb 2009
1 answer
91 views
I am trying to make my own custom skin and from the help file(http://www.telerik.com/help/aspnet-ajax/radformdecorator-creating-custom-skins.html) is says:
"Open FormDecorator.MyCustomSkin.css and replace all occurrences of with radfd_MyCustomSkin."

It seems that something is wrong in this sentence, my guess is that they meat [replace all occurences of radfd_default with radfd_MyCustomSkin]

However if I look in the FormDecorator.Default.css I see other classes that uses [Default] in their name  without being next to radfd_
For example:
.radfd_select_Default .radfd_select_textSpan



So my question is should I do a Find of all the [Default] in the FormDecorator.Default.css and replace the with MyCustomSkin?

Thank you,
Eric
Georgi Tunev
Telerik team
 answered on 13 Feb 2009
1 answer
62 views
Hi!
I try to export my RadGrid to Excel via GridExcelExportFormat.ExcelML, but every exported data from the grid is displayed in first excel-cell (A1), incl. the headers. Why? I am using MS Excel 2000. In excel 2003 it works, but my client doesn't use the 2003 version... ;(

Is there no "support" for Excel 2000?! Pls help...
Daniel
Telerik team
 answered on 13 Feb 2009
1 answer
99 views
Hi,

We are having one tabstrip with 4 tabs. I want to laod tab on demand only.
How can i acheive this. I have gone through the demo's you have given but it is not clear to me.
Can you please help me how i can achieve this?
Princy
Top achievements
Rank 2
 answered on 13 Feb 2009
1 answer
94 views
Hi,
I have created  two tabs.When i click on one tab, a text box should be created in pageview1 which is associated with tab1 and when i click on second tab, a button should be created in pageview2 which is associated with tab2...

Any help will be appreciated

Thank you






sanjeeb
Top achievements
Rank 1
 answered on 13 Feb 2009
2 answers
156 views
Hi

I'm new on using Telerik and thus, would like to know how best to display text and image in date cells when viewing Telerik - Calendar. The format for text and image in 1 date cell will be something like below:
*image* *text*
*image* *text*
...

Knowing that DayRender event can be used, but wondered if this will cause page loading to be slow since there may be case where activities are available for all the dates in 1 month.

Any advice?
bayi
Top achievements
Rank 1
 answered on 13 Feb 2009
2 answers
809 views
Hi!

I have added rad grid control on my page which allows the single selection for row. This is absolutely fine as per my requirment but.. I need to show radio buttons instead of check boxes. I think from user point of view, we always give radio buttons whenever there is a scenario for single selection and checkboxes for multiple selection. So in this case also I wanted the same, i tried to explore enough on this .. but I am unable to get the solution in teleric rad grid control api.
Do we have any workaround for this???

Please Reply ASAP
Thanks in Advance!

With Regards,
Fatima Khan
Fatima
Top achievements
Rank 1
 answered on 13 Feb 2009
2 answers
302 views
I have created a sample page which is demonstrating the problem I am encountering.  When you click the link on the page, it opens a radwindow.  Within that radwindow, if you click on the link titled 'close me with argument' the window is closed with an argument, the javascript validates the argument then the page does a postback and the server time is displayed on the page.  (I have a radgrid on the page, as this emulates what I am actually doing on my live page).  Then after the page has posted back, if you open the radwindow again and simply close the window (click the X on the toolbar) the argument is still passed to the javascript function.  How can i prevent this from happening?  Below is my sample project using version Q3 2008.  Thanks for your help!

Test.aspx (load me)

<%@ Page language="VB" CodeFile="test.aspx.vb" AutoEventWireup="false" Inherits="_test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"
<head> 
    <title></title> 
    
    <script type="text/javascript"
    function ShowDeleteForm() 
    { 
        window.radopen("test2.aspx""AdWindow"); 
    } 
     
 
    function OnClientClose(oWnd) 
    { 
        //get the transferred arguments 
        var arg = oWnd.argument; 
        if(arg) 
        { 
            if (arg.Value == 'true') { 
                __doPostBack("<%=RadGrid1.UniqueID%>"'DeleteAd;12345');   
            } 
        } 
    }     
 
 
    </script>   
     
</head> 
<body> 
    <form runat="server" id="mainForm" method="post"
        <asp:ScriptManager id="ScriptManager1" runat="server" /> 
 
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista"
            <Windows> 
                <telerik:RadWindow Skin="Vista" ID="AdWindow" runat="server" Height="200px" Width="400px" 
                    Left="150px" ReloadOnShow="true" Modal="true" VisibleStatusbar="false" OnClientClose="OnClientClose" ShowContentDuringLoad="false" /> 
            </Windows> 
        </telerik:RadWindowManager> 
 
 
            <telerik:RadAjaxPanel  
                ID="RadAjaxPanel1"  
                runat="server" 
                LoadingPanelID="LoadingPanel1"
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server"
                        <ContentTemplate> 
                            <telerik:RadGrid ID="RadGrid1" runat="server"
                            </telerik:RadGrid>    
 
                            <asp:Literal ID="ltlContent" runat="server"></asp:Literal> 
                            <br /><br /> 
                            <a href="javascript:ShowDeleteForm();">click me</a> 
                             
                        </ContentTemplate>                                                                 
                    </asp:UpdatePanel>                                                                 
            </telerik:RadAjaxPanel> 
            <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Transparency="35" BackColor="#E0E0E0"
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'  
                    style="margin-top: 50px; margin-left: 0px; position:relative;" /> 
            </telerik:RadAjaxLoadingPanel>         
 
 
    </form> 
</body> 
</html> 
 

Test.aspx.vb

Partial Class _test 
    Inherits System.Web.UI.Page 
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load 
        If IsPostBack Then 
            Dim passedArgument As String = Request.Params.[Get]("__EVENTARGUMENT"
            If Not (passedArgument Is NothingAnd passedArgument <> "" Then 
                If passedArgument.IndexOf("DeleteAd") <> -1 Then 
                    Dim strArray As String() 
                    strArray = passedArgument.Split(";"
                    postVal(strArray(1)) 
                End If 
            End If 
        End If 
    End Sub 
 
    Private Sub postVal(ByVal strVal As String
        ltlContent.Text = Date.Now & " - " & strVal 
        RadGrid1.Rebind() 
    End Sub 
End Class 

Test2.aspx

<%@ Page language="VB" AutoEventWireup="false" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"
<head> 
    <title></title> 
    
    <script type="text/javascript"
        function GetRadWindow() 
        { 
            var oWindow = null; 
            if (window.radWindow) oWindow = window.radWindow; 
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
            return oWindow; 
        } 
     
 
        function returnToParent(val) 
        { 
            var oArg = new Object(); 
            oArg.Value = val; 
 
            var oWnd = GetRadWindow(); 
            
            oWnd.argument = oArg;   
            oWnd.close(); 
        } 
 
 
    </script>   
     
</head> 
<body> 
    <form runat="server" id="mainForm" method="post"
 
        <a href="javascript:returnToParent('true');">close me with argument</a> 
 
    </form> 
</body> 
</html> 


Georgi Tunev
Telerik team
 answered on 13 Feb 2009
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?