Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
88 views
Hello,


How i got the data from database and now how do i show the data in the html chart 
http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/loadingdata/defaultcs.aspx ), not by using xml data source.. 
i am actually showing the rank of the person  <%= Locality %> now i need to embed all the data in the chart..
How do i do that?

attachment is my previous code.. 

Thanks.

Mani
Top achievements
Rank 1
 answered on 16 Dec 2013
2 answers
179 views
Hello,

I have an RadComboBox with autopostback set to "true". I've also a requiredvalidator on the RadComboBox. The Combo containes a "Select" element with a value "-1". When I switch from one item to the "Select" item, the validator fires and displays but the combo still makes a postback.

Sample:

<telerik:RadComboBox runat="server" ID="uxDepartment" Width="325px" AutoPostBack="true"
        CausesValidation="false" OnSelectedIndexChanged="uxDepartment_SelectedIndexChanged" />
<asp:RequiredFieldValidator runat="server" InitialValue="-1"
          ControlToValidate="uxDepartment" ErrorMessage="<%$ Resources:UI,inputRequired %>" />

Telerik version is 2010.2.826.35

Any idea?

Best regards
Silvio Silva Junior
Top achievements
Rank 2
 answered on 14 Dec 2013
6 answers
139 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
80 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
44 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
833 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
136 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
275 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
80 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
75 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?