Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
165 views
I have implemented the custom upload handler and per the demo and it all works fine except, for uploading any images larger than 2 mb.

The file gets uploaded but,the images are corrupted.
Also, I tried creating a thumbprint of the file as it is being uploaded but I get and error when trying to creating and image from the stream.
Image.FromStream(stream);
throws error "invalid parameter".

I would guess there is some settings in web.config which have missed but I can't work it out.

Thanks
Karl


Asp.Net 4.0
Windows 7
Telerik 2010.3.1109.40
Language c#
Hristo Valyavicharski
Telerik team
 answered on 14 Dec 2013
1 answer
113 views

Hello,

My Radscheduler header looks like the attached image. I want to bring the previous day and next day arrow keys on the either side of the month name. Like this







    <| December 2013 |>. How can I do that? I am attaching an image for that as well. it is named as monthwanted.png

Also there is space between appointments. How can I get rid of that space and make the appointments to be adjacent to each other. I am attaching an image that shows space between the appointments



Magdalena
Telerik team
 answered on 14 Dec 2013
1 answer
59 views
I try to create a RadDataPager as such:

<telerik:RadDataPager runat="server" ID="ProductsListDataPager" PagedControlID="ProductsListView">
            <Fields>
                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                <telerik:RadDataPagerPageSizeField PageSizes="9,18,27,45" />
                <telerik:RadDataPagerButtonField FieldType="NextLast" />
            </Fields>
</telerik:RadDataPager>

But the PageSizeField line causes my page to crash, saying that I can't assign object[] to Int32[].

What am I doing wrong?
Konstantin Dikov
Telerik team
 answered on 14 Dec 2013
5 answers
973 views
I am using RadTextBox in SharePoint 2010 visual web part. Also I have RequiredFieldValidator. I want to show red border around RadTextBox on validation error. How do I do that ?

Thanks in advance.
Venelin
Telerik team
 answered on 14 Dec 2013
2 answers
169 views
Hi,

I want radalert should be non movable

I have tried both ways explained in forum 

1. By not adding any behaviours in RadWindowManager tag in aspx

2 .By adding only close behaviour while calling radalert using its set_behaviours method.


Thanks ,
Somnath
Duke
Top achievements
Rank 2
 answered on 13 Dec 2013
11 answers
325 views
I have used the Telerik controls at our college for a number of years with great success. However, there has always been an issue with using some of the controls over our Sonicwall VPN which is now causing a problem.

I downloaded the latest trial version yesterday to see if this issue had been rectified but it hadn't.

There are a couple of controls which seem to be affected:

RadComboBox
This does not seem to work at all over the Sonicwall VPN. The control is displayed but on clicking on the item nothing happens. The Javascript error Object doesn't support this property or method is given (Telerik.Web.UI.WebResource.axd) Code:0 Line: 8950 Char: 1. I just dropped a ComboBox onto a page and hard coded some options in to keep everything as simple as possible.

RadGrid
The grid displayed as expected. However, when paging appeared or was selected to be used the same error appeared.

Has anybody else had similar issues, and how can I get round the problem?

Bobby
Top achievements
Rank 1
 answered on 13 Dec 2013
2 answers
101 views

When I use this  code:


window.radopen("..\\MyDirectory\\MyWebPage.aspx?Var1=" + v + "&Var2=" + v2, "myRadWindow");
It works fine in Goggle Chrome and IE but in Firefox I receive a Bad Request Error.

Raymond
Top achievements
Rank 1
 answered on 13 Dec 2013
1 answer
97 views
i was looking at the FileExplorer and wondered if it was possible to Filter Files that can be seen.
I found the following code, which i found at http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/hide-files-and-folders.aspx :
:

Public Class CustomProvider
    Inherits FileSystemContentProvider
 
    Public Sub New(ByVal context As HttpContext, ByVal searchPatterns As String(), ByVal viewPaths As String(), ByVal uploadPaths As String(), ByVal deletePaths As String(), ByVal selectedUrl As String, _
 ByVal selectedItemTag As String)
 
 
 
        MyBase.New(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, _
         selectedItemTag)
    End Sub
 
 
 
    Public Overloads Overrides Function ResolveDirectory(ByVal path As String) As DirectoryItem
        Dim originalFolder As DirectoryItem = MyBase.ResolveDirectory(path)
        Dim originalFiles As FileItem() = originalFolder.Files
        Dim filteredFiles As New List(Of FileItem)()
 
 
 
 
        ' Filter the files
        For Each originalFile As FileItem In originalFiles
            If Not Me.IsFiltered(originalFile.Name) Then
                filteredFiles.Add(originalFile)
            End If
        Next
 
        Dim newFolder As New DirectoryItem(originalFolder.Name, originalFolder.Location, originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions, filteredFiles.ToArray(), _
         originalFolder.Directories)
 
        Return newFolder
    End Function
 
    Public Overloads Overrides Function ResolveRootDirectoryAsTree(ByVal path As String) As DirectoryItem
        Dim originalFolder As DirectoryItem = MyBase.ResolveRootDirectoryAsTree(path)
        Dim originalDirectories As DirectoryItem() = originalFolder.Directories
        Dim filteredDirectories As New List(Of DirectoryItem)()
 
        ' Filter the folders
        For Each originalDir As DirectoryItem In originalDirectories
            If Not Me.IsFiltered(originalDir.Name) Then
                filteredDirectories.Add(originalDir)
            End If
        Next
        Dim newFolder As New DirectoryItem(originalFolder.Name, originalFolder.Location, originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions, originalFolder.Files, _
         filteredDirectories.ToArray())
 
        Return newFolder
    End Function
 
    Private Function IsFiltered(ByVal name As String) As Boolean
 
 
 
        If Not name.ToLower().EndsWith(".sys".ToLower.ToString() + ".csv") Then
            Return True
        End If
 
        ' else
        Return False
    End Function
End Class

i can see how it works, and was wondering if its possible to not have to hardcode what the file 'EndsWith' in the IsFiltered Function.
My files will all be stored in the one Folder (no other Folders will be accessible to the user), and the Files in the Folder should be Filtered depending on who is viewing it.

so, for example, if you are logged in as 'London', you should only see Files that End With '_London.csv'.
equally, if you are logged in as 'Manchester', you should only see Files that End With '_Manchester.csv'.

There are many different Logins, so i would prefer not to have to have a different Folder for each Login.
David
Top achievements
Rank 1
 answered on 13 Dec 2013
13 answers
4.1K+ views
I have noticed some Jquery.min.map 404 errors in the chrome console.   When I try to go to one of the lines that has the problem, it refers to a ScriptReserouce that contains a "Telerik.Web"UI" reference.

Is there something that should be turned on or off to prevent these errors.  I am using Q1 2013.
Adam Nelson
Top achievements
Rank 2
 answered on 13 Dec 2013
5 answers
228 views
Hello,

I developed my project in Visual Studio 2013 and my project have a RadGrid with DetailTables inside to able to expand row details. Then I follow demo sample


to add a RadWindow for Edit and Add New Record.

All working fine until I added a RadGrid1_ItemCreated code behind to create dynamic URL for Edit link button

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                HyperLink editLink = (HyperLink)e.Item.FindControl("EditLink");
                editLink.Attributes["href"] = "javascript:void(0);";
                editLink.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}','{2}','{3}');",
                    e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["EmpID"],
                    e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["RowID"],
                    e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["VoucherID"],
                    e.Item.ItemIndex);
            }
        }

I could not expand row details anymore.  I get an error in Chrome browser console:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object. Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6
Error.create Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6
Sys.WebForms.PageRequestManager._createPageRequestManagerServerError Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:15
Sys.WebForms.PageRequestManager._parseDelta Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:15
Sys.WebForms.PageRequestManager._onFormSubmitCompleted Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:15
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6
Sys.Net.WebRequest.completed Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6
_onReadyStateChange Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSys…:6

As soon as I took OnItemCreated="RadGrid1_ItemCreated", the expand row works again

Can anyone please look at it?  I don't know if this issue cause by Visual Studio 2013

Thanks,
Sam
Viktor Tachev
Telerik team
 answered on 13 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?