Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views

Is it possible to load spreadsheet content from an XLS file stored as a BLOB in Azure Storage?

I've gone through the exercise of embedding an XLS file directly in my ASP.NET application

by using an example found here.

  RadSpreadsheet1.Provider = new SpreadsheetDocumentProvider(Server.MapPath("~/App_Data/semda.xlsx"));

Also note that I have uploaded the XLS file using the CloudUpload control, works great!

Now I need to figure out how to make the data connection.

Bozhidar
Telerik team
 answered on 11 May 2016
7 answers
211 views

Hi 
I am using batch edit grid.

My requirement: I want to restrict the user to create the new row when the number of rows in grid view is more than the quantity (2 records). And also I want user to edit the existing rows.

I am able to restrict the user from adding new rows more than number of records specified( In our case its 2 records).
But the problem is I am not able to edit existing rows. 
Below is the code.

ASPX:

<telerik:RadGrid ID="gvSerialNumberTracking" GridLines="None" runat="server" AllowPaging="false"OnBatchEditCommand="gvSerialNumberTracking_BatchEditCommand" OnItemCommand="gvSerialNumberTracking_ItemCommand" CssClass="gvPLC">
 
<MasterTableView DataKeyNames="SerialNumber_ID,SerialNumber_DJ_ID" TableLayout="Auto" EditMode="Batch" AutoGenerateColumns="false"CommandItemDisplay="Top" ClientDataKeyNames="SerialNumber_ID">
                                                                        <BatchEditingSettingsEditType="Row" />                                                                      
 
<Columns>
<telerik:GridBoundColumn DataField="UnitSN" HeaderText="Unit SN" HeaderStyle-Width="100px" UniqueName="UnitSN"></telerik:GridBoundColumn>
 
                                                                            <telerik:GridBoundColumnDataField="Sub1" HeaderText="Sub1" HeaderStyle-Width="100px" UniqueName="Sub1"></telerik:GridBoundColumn>
 
                                                                            <telerik:GridBoundColumnDataField="Sub2" HeaderText="Sub2" HeaderStyle-Width="100px" UniqueName="Sub2"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowKeyboardNavigation="true">
<ClientEvents  OnRowCreating ="OnRowCreating" />
</ClientSettings>
</telerik:RadGrid>

 

Javascript: 

function OnRowCreating(sender, args)
{
var grid = $find("<%=gvSerialNumberTracking.ClientID %>");
var MasterTable = grid.get_masterTableView();
var Rows = MasterTable.get_dataItems();
var Qty = $("#txtJQuantity").val()
 
// txtJQuantity is the quantity (in our case its 2)
if ((Rows.length) > ($("#txtJQuantity").val()))
{
                                                                     
//alert('Wait! You cannot add more than ' + $("#txtJQuantity").val() + ' items');
                                                                     
//args.set_cancel(true);
 
 
}
}

 

Thanks and Regards,

Sandeep

Eyup
Telerik team
 answered on 11 May 2016
1 answer
108 views

Hello,

I need some help on how to control the next button , I am having an application where I have to host a short video and until that video has finished playing I don't want to enable the next button.

I tried few ways through JS but was not able to achieve it , Please help

binny
Top achievements
Rank 1
 answered on 10 May 2016
1 answer
127 views

Hi,

Im trying to use a RadComboBox with items that are being added via JavaScript. I can get the items to add without any issue. However I've noticed that the autocomplete on the drop down doesnt work. 

Is autocomplete available from items that have been added via client side methods?

Thanks,
Neil

 

Peter Milchev
Telerik team
 answered on 10 May 2016
3 answers
196 views

Hi,

     I am working on kendo grid sample App. Where i am getting list of records from WCF service and trying to bind to Kendo Grid. However while returning from controller ,instead of displaying grid ,i am getting download popup with json file and then program terminates.

Following is my controller:-

      Function Display(<DataSourceRequest> request As DataSourceRequest) As ActionResult
        Dim products As List(Of ServiceReference1.Empolyee) = New List(Of ServiceReference1.Empolyee)
        Dim d As New ServiceReference1.Service1Client()
        products = d.GetData()
        Return Json(products.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)

Vbhtml page:-

@modelType   list(of Display_Data.ServiceReference1.Empolyee)
@imports Kendo.Mvc.UI

<link href="~/Content/kendo/2016.1.412/kendo.common.min.css" rel="stylesheet" />
<link href="~/Content/kendo/2016.1.412/kendo.default.min.css" rel="stylesheet" />

<script src="~/Scripts/kendo/2016.1.412/kendo.all.min.js"></script>

   @Code
       Html.Kendo().Grid(Of Display_Data.Empolyee)() _
           .Name("Grid") _
           .Columns(Sub(c)
                            c.Bound(Function(p) p.Name)
                            c.Bound(Function(p) p.Age)
                        
                    End Sub) _
       .Sortable() _
       .Filterable() _
       .Events(Function(e) e.DataBound("onDataBound")) _
     .DataSource(Sub(d)
                         d.Ajax().Read(Function(read) read.Action("Display", "Student")).Model(Sub(m)
                                                                                                       m.Id(Function(i) i.Name)
                                                                                               End Sub)
                        
                 End Sub) _
             .Render()
End Code

Model class: -

Imports System.ComponentModel.DataAnnotations
Public Class Empolyee
    Public Property Name As String
    Public Property Age As String
 
End Class

 

Can anyone please suggest me what am i missing?

Is the vbhtml page correct ?

Will the Datasource will get populated with the  list?

Attached is the snapshot of file which i get as output on returning json.


       

Viktor Tachev
Telerik team
 answered on 10 May 2016
1 answer
491 views

Hi,

I am using Telerik Rad controls in my asp.net web application with version 2011.3.1115.35 (Licensed). I am using Visual studio 2010, IIS 7.5 for application server.

My issue is, one particular page is taking too long time to load like 45-55 Seconds in first time, Second time on wards taking less time like 4-5 sec.

According to my observation, if i click on that page all telerik controls style sheets related to that particular page is going to load with different WebResource.axd requests. If i double click on any WebResource.axd file, it is going to open .CSS file related to Telerik control. Please can any body advice me with sample code like how to optimize this page with less numbers of requests & less time to load.

Please find the attached screen shots for your reference.

Its urgent for me .

 

Thanks n advance.

Regards

Sekhar.

Pavlina
Telerik team
 answered on 10 May 2016
6 answers
718 views
I am running 4.15.08 release of Telerik Ajax controls.
I am using Visual Studio 2008 (fully updated).

I was getting "Errors on page" in IE7. Unchecked disable script debugging. In the Tekerik.Web.UI.Common.Core.js  on this line is the error:

                 Type.registerNamespace("Telerik.Web.UI") 

I have a Telerik Tabstrip on the page. this error occurs when page loads:
              Microsoft JScript runtime error: 'Type' is undefined

Other than the Telerik.Web.UI.dll and Telerik.Web.UI.xml files in the project's bin folder there is nothing else for Telerik in my Solution.

I have no previous versions of telerik installed on this system.

Any ideas for this?

Thank you in advance!
Sagi
Top achievements
Rank 1
 answered on 10 May 2016
1 answer
89 views

Hi, i'm using a RadTreeViewContextMenu, the problem in RadMenu,When I select an option and this option open a popup, when close the popup the RadMenu disappears

aspx:

<div class="row">
                    <asp:Repeater ID="dtlProcesosValor" runat="server">
                        <ItemTemplate>
                            <div class="col-md-4">
                                <asp:HiddenField ID="IdProceso" runat="server" Value='<%# Eval("IdProceso") %>' />
                                <telerik:RadTreeView ID="rtvProcesos" runat="server" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" LoadingMessage="<%$ Resources:MensajeCargando %>" DataFieldID="idproceso" DataFieldParentID="procesoantecesor" DataTextField="nombre" DataValueField="idproceso">

                                    <ContextMenus>
                                        <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
                                            <Items>
                                                <telerik:RadMenuItem Value="Editar" Text="Editar" runat="server" PostBack="true" Visible='<%#TienePermisoEdicion() %>'></telerik:RadMenuItem>
                                                <telerik:RadMenuItem Value="Eliminar" Text="Eliminar" runat="server" PostBack="true" Visible='<%#TienePermisoEliminacion() %>'></telerik:RadMenuItem>
                                                <telerik:RadMenuItem Value="Detalle" Text="Detalle" runat="server" PostBack="true" Visible='<%#TienePermisoConsulta() %>'></telerik:RadMenuItem>
                                            </Items>
                                        </telerik:RadTreeViewContextMenu>
                                    </ContextMenus>
                                    <Nodes>
                                        <telerik:RadTreeNode>
                                            <NodeTemplate>
                                                <%# DataBinder.Eval(Container, "Text")%>
                                            </NodeTemplate>
                                        </telerik:RadTreeNode>
                                    </Nodes>
                                </telerik:RadTreeView>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

 

 

CodeBehind: 

 switch (e.MenuItem.Value)
        {
            case "Editar":
                {
                    Response.Redirect("EdicionProcesos.aspx?Operacion=Buscar&Proceso=" + id);
                    break;
                }

            case "Detalle":
                {
                    Hashtable parametros = new Hashtable();
                    parametros[DetalleProceso.PROCESO] = procesoSeleccionado;
                    Master.AbrirPopupRadWindow(this.Page, "~/Proceso/DetalleProceso.aspx", string.Empty, Comunes.AnchoPopups, Comunes.AltoPopups, parametros);
                    break;
                }

            case "Eliminar":
                {
                    this.ProcesoBorrar = this.ProcesoController.BuscarProceso(procesoSeleccionado);
                    this.MensajeBorradoLogicoFisico.btnBorradoLogico.Enabled = this.ProcesoBorrar.Activo.HasValue && this.ProcesoBorrar.Activo.Value;
                    this.MensajeBorradoLogicoFisico.MostrarMensaje(this.GetLocalResourceObject("msjConfirmarEliminar") != null ? this.GetLocalResourceObject("msjConfirmarEliminar").ToString() : "");
                    break;
                }

When I select an option
When I select an option
Veselin Tsvetanov
Telerik team
 answered on 10 May 2016
3 answers
759 views
In the documentation (http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/security) you can read "In order to encrypt the configuration in a secure way, we strongly recommend to set the custom encryption key in the web config using the following app setting -Telerik.AsyncUpload.ConfigurationEncryptionKey".

 

What kind of value can I set for the Telerik.AsyncUpload.ConfigurationEncryptionKey. Is it a random string? If yes how long it should be.

Hristo Valyavicharski
Telerik team
 answered on 10 May 2016
1 answer
73 views
Hi, i am populating data using telerik radgrid in my project 
and trying to filter columns, intially i am not getting all the filter conditons[few are showing],and when i set 
datatype to system.string i got all the filter conditions but not able to get the result[i am binding numeric values] when i try to filter with 
'greaterthan' for above 2 digit values and if i take datatype as system.int32 its fine but not showing all the filter conditions
.How to get the results with all the filter conditions .thanks 
Viktor Tachev
Telerik team
 answered on 10 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?