Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
119 views
I'm using the example for the asyncUpload and I want to load a standard upload if the browser is incompatable.  I understand this is the place to replace it, but do I have to replace the entire code in this replaceWith() section or is there an easier way...?

(!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
                $(".wrapper").replaceWith(
                    $()

This is the sample
<telerik:RadScriptManager ID="ScriptManager1" runat="server" />
        
    <script type="text/javascript">
        var $ = $telerik.$;
        function pageLoad() {
            if (!Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {
                $(".wrapper").replaceWith(
                    $("<span><strong>Your browser does not support Drag and Drop. Please take a look at the info box for additional information.</strong></span>"));
            }
        }

        function added(sender, args) {
            if (Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable()) {

                $(".ruDropZone").html("<div align=\"center\"><img src=\"images/logo.png\" width = \"300\"></div>");
            }
        }
        
    </script>


Here is the standard upload:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientAdded="added" OnFileUploaded="RadAsyncUpload1_FileUploaded">
        </telerik:RadAsyncUpload>
        <br />
        <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" />
        
        <div style="position:relative;">
            <table>
                <tr>
                    <td id="controlContainer">
                        <telerik:RadUpload
                            ID="RadUpload1" runat="server"
                            MaxFileInputsCount="5"
                            OverwriteExistingFiles="false" />
                            
                        <telerik:RadProgressArea id="progressArea1" runat="server"/>
                        
                        <asp:Button id="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="buttonSubmit_Click" text="Submit" />
                    </td>
                    <td>
                        <div class="smallModule">
                            <div class="rc1"><div class="rc2"><div class="rc3" style="width:240px">
                            
                                <asp:Label ID="labelNoResults" runat="server" Visible="True">No uploaded files yet</asp:Label>
                                
                                <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                                    <HeaderTemplate>
                                        <div class="title">Uploaded files in the target folder:</div>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                                        <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                                        <br />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div></div></div></div>
                                </td>
                                </tr>                              
                                </table>
                                </div>
                                </div></table>
Peter Filipov
Telerik team
 answered on 09 Dec 2011
0 answers
50 views
HI,

I have a formview control (Retrieves data from Database) which contains a usercontrol .
I'm wonder how to databind a radeditor when it is placed within the above usercontrol.  

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 09 Dec 2011
5 answers
279 views
Hi, i m new in Telerik, i just starting to learn how to use the scheduler to create an appointment system.
Actually my problem is: in my database, it used separate date("dd/mm/yyyy") and time("11/11/1766" hh:mm) to record the current appointment datetime, i cannot simply used Data Source Configuration Wizard to bind two separate data fields in each Start/End time fields, also, i am not allow to custom my database record format... is it anyway/possibility can bind two data in one single field? Or Radscheduler can make any custom setting to bind multiple data? Thx.
Peter
Telerik team
 answered on 09 Dec 2011
1 answer
55 views
Hi,

    I am using treeview and want to edit the tree node. It works fine. but i have a requirement when user tries to edit the node some text should get cleared.

for ex. 
node has text like this: Menu1 {abc.aspx}

now while editing the edit mode should show: Menu1

how can I achieve this?

Please advise?

Thanks.
Bozhidar
Telerik team
 answered on 09 Dec 2011
1 answer
142 views
Hi,
Can we highlight a row using the green telerik skin (full row) versus just half of the row? If so please provide the solution.

Please see attached screen shot.

Thanks

Prashant

Pavlina
Telerik team
 answered on 09 Dec 2011
3 answers
171 views

Hi

I have a rad scheduler:
<telerik:RadScheduler runat="server" ID="DiaryScheduler" Skin="Metro" ValidationGroup="Settings" ...

and a custom validator:
<asp:CustomValidator runat="server" ID="MyValidator" Display="Dynamic" ValidationGroup="Settings" ClientValidationFunction="validateMyStuff">
 <span class="validation-error">Some Error Text</span>
</asp:CustomValidator>

When using this with other controls the validation occurs correctly. When usign the schedular, i.e. moving from one view to another and from one week to another, the validation is not run.

Does the ValidationGroup work with the schedular? Have I missed something, is there another setting I need to make this work, or do I have to validate manually?

Thanks
Russell

Ivana
Telerik team
 answered on 09 Dec 2011
1 answer
70 views
We have an existing framework where a class, say class X is defined which inherits 'System.Web.UI.Page' and this class defines some OnPageLoad() method which does some logging acitivity and includes few javascript functions.

Basically, every page in the application inherits this class X.

When we are using telerik, we are facing a probelm where if we inherit any page that uses telerik control from this class X. Then none of the rad server control events like on_ItemCommand or PageIndexChanged does not get fired but if we just inherit 'System.Web.UI.Page' then this events get fired. Please suggest us what could be the possible problem and any solution to it since inheriting the class X is very important for us as many things are done here.
Pavlina
Telerik team
 answered on 09 Dec 2011
1 answer
301 views
Hi:
I have a RadListBox that uses an ObjectDataSource.  I would like to data bind the list-box in a refresh grid/form client-side method.  I am not finding one.
Thanks
Phil
Dimitar Terziev
Telerik team
 answered on 09 Dec 2011
0 answers
100 views
Hi,

we are using RAD Editor SharePoint v 6.1.7 version - For some reason the last tool bar options especially "ReadFontSize" and "ApplyCSS" are getting wrapped to next line

Please find the attached screenshot for the same.

Please let us know the reason and where we can correct - The approach we tried through IE DOM to set the width of the toolbar looks like it is setting automatically

Also find the screenshot of the inline width assign to span which is 34px and 80px for the above two options - If we apply around 40px and 90px they are displaying correctly

Thanks

RESOLVED - By Overriding the inline style with our custom styles
Roopesh
Top achievements
Rank 1
 asked on 09 Dec 2011
2 answers
150 views
Hi,
how can i position the radgrid export controls to left side? By default they appear at right side.

Abhi
Jayesh Goyani
Top achievements
Rank 2
 answered on 09 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?