Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
789 views
I am trying to test the functionality of Spreadsheet using the example at http://demos.telerik.com/aspnet-ajax/spreadsheet/examples/overview/defaultvb.aspx?show-source=true.

I am using Telerik version 2015.3.930.45 in vb.net.

This is pretty simple code and I am receiving the following error.  What am I missing?

-----------------------
Object reference not set to an instance of an object. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.SpreadsheetDocumentProvider.GetSheets() +72
   Telerik.Web.UI.RadSpreadsheet.PerformSelect() +110
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
   Telerik.Web.UI.RadSpreadsheet.EnsureDataBound() +98
   System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
   Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
   Telerik.Web.UI.RadSpreadsheet.OnPreRender(EventArgs e) +79
   System.Web.UI.Control.PreRenderRecursiveInternal() +83
   System.Web.UI.Control.PreRenderRecursiveInternal() +155
   System.Web.UI.Control.PreRenderRecursiveInternal() +155
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
------------------------------

Code snippets
aspx
   
<div>
    <telerik:RadSpreadsheet runat="server" ID="rssTest"></telerik:RadSpreadsheet>
</div>


aspx.vb
   
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
Dim provider As SpreadsheetDocumentProvider<br>       
Dim path As String = Server.MapPath("~/App_Data/20150530_C09_Schedule.xlsx")
provider = New SpreadsheetDocumentProvider(path)
rssTest.Provider = provider
End Sub

Vessy
Telerik team
 answered on 29 Sep 2020
4 answers
1.2K+ views

Is there any way to get radgrid grouping by a specific column?

Thanks,

d-cpt

 

 

Attila Antal
Telerik team
 answered on 29 Sep 2020
1 answer
89 views

Hello I am working in RadCloudUpload to upload files in amazon s3 server. It working with Single file (20MB) perfectly. But when I am trying  to open multiple files (ex: 10MB, 20MB, 5MB, 8MB) it is uploading only One or Two files at a time.Not all the files are uploaded. but If I am trying to upload files with smaller size (ex: 10KB, 2MB, 100KB, 3MB) then all the files are uploaded to S3 server. How to resolve this problem ?

<telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MaxFileSize="91943040" RenderMode="Lightweight"                 MultipleFileSelection="Automatic" OnClientFileUploaded="fileUploaded" OnFileUploaded="RadCloudUpload1_FileUploaded" ProviderType="Amazon"  >        </telerik:RadCloudUpload>


function fileUploaded(sender, args)
{          theForm.submit();            }


 protected void RadCloudUpload1_FileUploaded(object sender, CloudFileUploadedEventArgs args)
    {      
        long contentLenght = args.FileInfo.ContentLength;
        string contentType = args.FileInfo.ContentType;
        string keyName = args.FileInfo.KeyName;
        string originalName = args.FileInfo.OriginalFileName;
        args.IsValid = true;       
    }


<httpRuntime maxRequestLength="91943040" executionTimeout="3200" />

 

please help !!!

dulevo
Top achievements
Rank 1
 answered on 25 Sep 2020
5 answers
202 views

Hello,

When I run IMager manager in rad editor, I can't load css and get the error as shown. please show me another way to fix this problem, thanks

Vessy
Telerik team
 answered on 24 Sep 2020
4 answers
241 views
I have a grid that will display items and when you click on a row it's designed to redirect you to another page where you can edit that items data. My problem is that there is also a delete button that is to be in the row as well and when you click the delete button it fires the OnItemCommand event first which redirects before the delete can occur. So I'm looking for some direction here. If anyone can help I would greatly appreciate it.
Attila Antal
Telerik team
 answered on 24 Sep 2020
1 answer
131 views

     Not sure if this is even possible.

 

I have an update panel that fires off fine when a button is clicked and it shows "Processing request. Please wait...."

All fine and dandy.

Certain actions may take a while and I would like to be able to change the message content (attempting through threading and delegates) with status updates as to the background process.

 

Is this even remotely possible?

Peter Milchev
Telerik team
 answered on 24 Sep 2020
1 answer
363 views

I'm using the spreadsheet component for completing a template file. Several columns have dropdown box values to ensure known values.
Until now I was only able to use the mouse for opening a dropdown box + selecting a value.
The users asked me if there is also a keyboard shortcut way of opening the dropdown box and selecting a value for speeding up the data entry.

Peter Milchev
Telerik team
 answered on 24 Sep 2020
4 answers
472 views
Hi,

We are using RadAsyncUpload and saving the ContentType property of the uploaded file.

For most uploaded files, .pdf, .docx etc. the ContentType property has been detected.

When uploading an .msg file the ContentType property is null.

Is this an known issue? Do you have any suggestions?

Thanks.

Dani
Top achievements
Rank 1
 answered on 23 Sep 2020
5 answers
249 views

 

i am using RadGrid BatchEdit, which is using combobox where CheckBoxes="true".  i can't acess checkbox values in server side.

 

telerik:GridTemplateColumn UniqueName="AmountAttributeCategory" HeaderText="Tax"  >
                        <ItemTemplate>
                            <asp:Label runat="server"><%#DataBinder.Eval(Container.DataItem, "TaxesName")%></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>

                           <telerik:RadComboBox   runat="server" ID="RadComboBoxAttribute"  CheckBoxes="true"  AllowCustomText="true"  CheckedItemsTexts="DisplayAllInInput"
                                 OnItemsRequested="RadComboBoxAttribute_ItemsRequested"     
                                EnableLoadOnDemand="true"  DataValueField="TaxesID" DataTextField="Text"   
 >
                             <ItemTemplate>
                                    <table>
                                        <tr>
                                            <td style="width:100px;text-align:left;"><%# DataBinder.Eval(Container, "Text")%></td>
                                             <td style="width:100px;text-align:left;"><%# DataBinder.Eval(Container, "Attributes['Amount']")%></td>  
                                      
                                        </tr>
                                    </table>
                            </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

 

        protected void RadGrid1_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
        {

           foreach (GridBatchEditingCommand command in e.Commands)
            {

                        Hashtable oldValues = command.OldValues;
                Hashtable newValues = command.NewValues;

                 //                 GridTemplateColumn file = (GridTemplateColumn)newValues["AmountAttributeCategory"];

               // RadComboBox ddlDesc = RadGrid1.FindControl(RadGrid1.MasterTableView.ClientID + "_AmountAttributeCategory").FindControl("RadComboBoxAttribute") as RadComboBox;

}}

 

how to get checkbox values which is binded in combobox RadGrid GridTemplateColumn ?

 

 

Attila Antal
Telerik team
 answered on 23 Sep 2020
2 answers
290 views
Hi,

I have the following doubts regarding Telerik Rad Scheduler . I would be happy if i get it cleared.. Pls Help

1) In rad scheduler we hane Appointment Click event . But i need an event fired when user clicks on a empty time slot and i should be able to get the time slots date , start and end time via event argument

2) I want the Rad Scheduler to fit into my DIV tag automatically with out specifying a specific height

3) Do we have anything like (Data key items in rad grid) or (attributes in rad tree ) in rad scheduler. i need some extra information to be add with my appointments.

Thanks in advance.

Ravi
TTCPL
Shubham
Top achievements
Rank 1
 answered on 23 Sep 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?