Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
145 views

Hi team,

I try to integrate RadFileExplorer control in one page. In my project developed by MVP format.

File explorer control is working delete,new folder creation, rename etc., File selected using upload control after click upload button but file is not uploaded.

Its not displayed any error.

I entered code also. kindly provide the solution for this problem. I am waiting for your reply

 

List page Code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListControl.ascx.cs" Inherits="App.Presentation.CMS.Photobooth.Defaults.DomainControl.ListControl" %>
<%@ Register Assembly="Microsoft.Practices.Web.UI.WebControls" Namespace="Microsoft.Practices.Web.UI.WebControls" TagPrefix="pp" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<h1>Default</h1>
  <script>
      (function (global, undefined) {
          function OnClientItemSelected(sender, args) {
              var pvwImage = $telerik.$("#pvwImage").get(0);
              var imageSrc = args.get_item().get_url();

              if (imageSrc.match(/\.(gif|jpg)$/gi)) {
                  pvwImage.src = imageSrc;
                  pvwImage.style.display = "inline-block";
              }
              else {
                  pvwImage.style.display = "none";
              }
          }

          global.OnClientItemSelected = OnClientItemSelected;
      })(window);
  </script>
 
<table style="width: 100%">
    <tr>
        <td style="width: 100%">
            <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Width="595px" Height="350px" EnableOpenFile="true" AvailableFileListControls="All"
                EnableAsyncUpload="true" EnableCreateNewFolder="true" AllowPaging="true" PageSize="10" OnClientItemSelected="OnClientItemSelected" >
                <Configuration EnableAsyncUpload="true" ViewPaths="~/Resources/Images" MaxUploadFileSize="1048576" AllowMultipleSelection="false"
                    UploadPaths="~/Resources/Images" DeletePaths="~/Resources/Images"></Configuration>                
            </telerik:RadFileExplorer>
        </td>
    </tr>
</table>​

 

 

Master page code:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="​App_CMS.master.cs" Inherits="App.Presentation.CMS.​App_CMS" %>​

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="CMSMenu.ascx" TagName="Menu" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>HDB Content Management System</title>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script src='<%= ResolveUrl("~/Scripts/jquery-1.7.1.min.js") %>' type="text/javascript"></script>
        <script src='<%= ResolveUrl("~/Scripts/jquery-ui-1.8.17.custom.min.js") %>' type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $('#dvLogo').click(function () {
                    document.location.href = "/Home.aspx"
                });
            });
        </script>
    </telerik:RadCodeBlock>
    <link rel="SHORTCUT ICON" href="/Images/logo.ico" />
    <link href="~/Styles/CMSStyleSheet.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body id="bodyContent">
    <form id="form1" runat="server">
        <script type="text/javascript">
            if (typeof (Telerik) != "undefined" && typeof (Telerik.Web.UI.RadInputControl) != "undefined") {
                Telerik.Web.UI.RadInputControl.prototype.updateCssClass_Old = Telerik.Web.UI.RadInputControl.prototype.updateCssClass;
                Telerik.Web.UI.RadInputControl.prototype.updateCssClass = function () {
                    //                this._hovered = false;
                    //                this._focused = false;
                    //                //this._focus = false;
                    //                this.updateCssClass_Old();
                }
            }
        </script>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"></telerik:RadScriptManager>
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="False" Skin="Sunset"></telerik:RadSkinManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelsRenderMode="Inline" />
        <div id="divMainContainer">
            <div id="divHeader">
                <div id="leftcolumn"><img src="/Resources/Images/Logo_HDB.png" /></div>
                <div id="rightcolumn"><img src="/Resources/Images/Logo_MNH.png" /></div>
                <div class="clear"></div>
            </div>
            <div id="divMenu" style="width: 100%;">                
                <uc1:Menu ID="Menu1" runat="server" />   
            </div>
            <div id="divContent">
                <div style="margin-top:10px;margin-left:10px;margin-right:12px;">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                        
                    </asp:ContentPlaceHolder>
                </div>
            </div>
            <div id="divFooter">
            </div>
        </div>
    </form>
</body>
</html>​

 

 

 

sudha
Top achievements
Rank 1
 asked on 05 Aug 2015
1 answer
251 views
Error de servidor en la aplicación '/'.

El valor no puede ser nulo.
Nombre del parámetro: keyDescripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código. 

Detalles de la excepción: System.ArgumentNullException: El valor no puede ser nulo.
Nombre del parámetro: key

Error de código fuente: 

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.
Eyup
Telerik team
 answered on 05 Aug 2015
1 answer
50 views

Hi,

I am working on hybrid application. Recently I am having an issue in WIndows 8, when app is starting,  the splash screen shows for a moment, then it hides and a white screen is displayed for a brief moment before the Keno Mobile UI shows. I have added AutoHideSplashScreen in Windows config.xml but it doesn't work in Windows phone. This configuration is working on Android, perfectly OK. I have upgraded Cordova to 3.7.0 version.

Can you give me any suggestions on how to remove white screen flash as the app starts, it looks unprofessional.

Thanks in advance.

Arpita

Petyo
Telerik team
 answered on 05 Aug 2015
2 answers
135 views

Hi guys,

I'm using Telerik Q2 2015 with the release of Export to PDF (multiple pages) using ExportClientManager.

When a user clicked export, the save window popped up asking for open or save the pdf file.

If that user chose save then open the PDF file, everything is good.

But If that user clicked open the PDF then save the file, it showed error code 23 (Please see attachment).

Have anyone been had this issue and is there any solution?

I'm using adobe reader version 11.0.4

 

Victor
Top achievements
Rank 1
 answered on 05 Aug 2015
8 answers
214 views
When adding new ComboBoxItems on the client (JavaScript), and specifically setting the "isSeparator" to true, it does not render correctly and instead still renders as an "rcbItem" in a standard "LI" element and the CssClass "rcbSeparator" is no where to be found (by inspecting the HTML).

categoryItem = new Telerik.Web.UI.RadComboBoxItem();
categoryItem.set_text("Separator");
categoryItem.set_value("Separator1");
comboItems.add(categoryItem);
categoryItem.set_isSeparator(true);

Does anyone know how to get Separator items to render correctly when adding them in JavaScript?
Ivan Danchev
Telerik team
 answered on 04 Aug 2015
1 answer
76 views
I have added a RadDropDownList control on my web page. Along with it I have added a standard Asp.Net button control. When I am clicking on the Asp.Net button the event associated with it is not getting fired. Can anyone tell why is this happening? Is it because of the Rad control? If so then what should I do to make the button click event to work properly?
Ivan Danchev
Telerik team
 answered on 04 Aug 2015
5 answers
266 views

Hi,

I have a RadCombobox on an aspx page that I'm trying to populate with one item at OnLoad using 

RadComboBoxItem newItem = getItem(id);
RadCombo1.Items.Add(newItem);
RadCombo1.SelectedValue = Request.QueryString["cid"];
RadCombo1.Text = newItem.Text;

After page finishes loading, while invoking RadCombo1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e), e has empty Text and loads data as if the box was empty.

Control on page:

<telerik:RadComboBox ID="RadCombo1" runat="server" 
                                        Width="300" MaxHeight="350" AllowCustomText="true" 
                                        MarkFirstMatch="true" 
                                        OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"
                                        OnSelectedIndexChanged="RadCombo1_SelectedIndexChanged"
                                        EnableLoadOnDemand="true" EnableVirtualScrolling="true"
                                        OnItemsRequested="RadCombo1_ItemsRequested"
                                        ShowMoreResultsBox="true" Filter="Contains">
                                    </telerik:RadComboBox>

 

How can I set e.Text to my selectedItem.Text or invoke manually RadCombo1_ItemsRequested ?

Ivan Danchev
Telerik team
 answered on 04 Aug 2015
1 answer
69 views

I am very new to the Telerik controls, less then 8 hours.  I just spent several hours building a social network diagram using the D3.js library and now need to see if I can create a similar product with the Telerik controls.  Basically the diagram ​nodes need to show an image, that is stored on a local server, along with some textual ​information.   All data for the nodes and links would be stored in a local json data-set.  I would also need to add text labels to lines that link the nodes.

 

Can any one tell me if these requirements can be met using the Telerik controls, and any example code I could use to get up to speed.

 

Thanks

Perry

Vessy
Telerik team
 answered on 04 Aug 2015
1 answer
163 views
I am having an issue with Telerik RadGrid Control

The Grid control is configured allowing "paging and filtering"

When I write some text in the filter box the RadGrid control shows me the rows needed
but when I move from a page to another the radGrid shows me all the rows. 

It does not keep the filter I ask for


Help would be appreciated!
Maria Ilieva
Telerik team
 answered on 04 Aug 2015
9 answers
3.2K+ views
Does not seem like RadGrid.Rebind() is firing the NeedDataSource if NeedDataSource has already been executed on postback.  I am using a context menu on a grid row to duplicate the row but when I call the grid.Rebind() on the RadMenu_ItemClick it does not fire the NeedDataSource to rebind the grid. Has anyone else seen this?  I am using the Q3 2008.

Thanks,

Jason

 

Maria Ilieva
Telerik team
 answered on 04 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?