Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
Hi, firstly great components. In the grid view component for SharePoint if you bind to a list and one of the columns allows multiple values then you get the following;

;#Test;#Demonstration;# 

Where as it should be Test, Demonstration

Can you advise how we can change this?

Thanks
P
Marin
Telerik team
 answered on 13 Mar 2014
5 answers
170 views
Hi,

I have radgrid & radtoolbar on my page & I am setting ajax setting through ajaxmanager.
In the toolbar, I have Export to Excel Icon & grid filter icon, on click of excel icon I am opening radwindow.
Radwindow has two buttons ok & cancel, on click of ok button I am setting ajax false & done server side code for exporting excel file.
When I clicked cancel button after exporting excel radwindow get closed.
After that on click of filter icon of radtoolbar, I am setting grid.AllowFilteringByColumn=true & rebinding grid.
But then small flick get displayed as it is performing normal postback.
When I comment grid.AllowFilteringByColumn=true line then it works fine.
This issue is generating in ie8 only.

Please Help




Eyup
Telerik team
 answered on 13 Mar 2014
6 answers
217 views
  I have a RadPivotGrid inside a popup RadWindow. The problem s the horizontal scroll doesn't show up in the grid. Here is my code :
 
<telerik:RadWindow ID="modalPopup"runat="server"Modal="true"VisibleOnPageLoad="false"EnableViewState="false"Width="1105px"Height="600px">
      <ContentTemplate>
          <div id="FullScreenGridLayer"style="float: none; clear: both;">
            
        <telerik:RadPivotGrid ID="RadPivotFullScreenGrid"
            runat="server"AllowPaging="true"Skin="Windows7"
            AggregatesPosition="Columns"  OnPreRender="PivotFullScreenGrid_PreRender>
            <PagerStyleChangePageSizeButtonToolTip="Change Page Size"  PageSizeControlType="RadComboBox">
            </PagerStyle>
            <Fields>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Year"IsHidden="false"
                    UniqueName="DateByYear"Caption="Year"ShowGroupsWhenNoData="true">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Month"ShowGroupsWhenNoData="true"
                    UniqueName="DateByMonth"Caption="Month">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridRowFieldDataField="PCName"Caption="PC Center"UniqueName="PCName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="ManagerName"Caption="A/C Manager"UniqueName="ManagerName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="RepName"Caption="Agent"UniqueName="RepName"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridRowField>
                <telerik:PivotGridAggregateFieldDataField="Units"GrandTotalAggregateFormatString=""
                    UniqueName="Units"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridAggregateField>
            </Fields>
        </telerik:RadPivotGrid>
 
            </div>
      </ContentTemplate>
</telerik:RadWindow>

Please let me know if sth is wrong here. 

Thanks
Pavlina
Telerik team
 answered on 12 Mar 2014
1 answer
611 views
The RadDatePicker includes a image/icon of a calender to the right side of it. My question is would it be possible to hide this image. I just want to display the text box that shows a calender when it is clicked. Can I hide it or set it to visible false?

<telerik:RadDatePicker ID="startDatePicker" runat="server" WrapperTableCaption="" ShowPopupOnFocus="True"></telerik:RadDatePicker>
Brett
Top achievements
Rank 1
 answered on 12 Mar 2014
12 answers
283 views
Hello,

I would like to Know the function to set height on client side.

pageView.set_height("100%")  => doesn't work.


function addNewTab() {
                 
                var tabstrip = $find('<%=RadTabStrip1.ClientID%>');
                tabstrip.trackChanges();
                var tab = new Telerik.Web.UI.RadTab();
                tab.set_text("Root Tab 4");
                tabstrip.get_tabs().add(tab);
                tabstrip.commitChanges();
 
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");
                multiPage.trackChanges();
                var pageView = new Telerik.Web.UI.RadPageView();
                pageView.set_id("Page14");
                pageView.set_contentUrl("<%=this.Page.ResolveUrl("~/page.aspx")%>");
                pageView.set_selected(true);
               
                pageView.set_Height("100%");  // here i want to set height
 
                multiPage.get_pageViews().add(pageView);
                multiPage.commitChanges();
}

Olivier
Top achievements
Rank 2
 answered on 12 Mar 2014
1 answer
92 views
Maybe I've missed it but I want to show results as in a bar chart format where my chart series  are portioned (low, high).
As in company "A" results are 35 to 50 %  and Company "B" results are "15 to 30%.  The bar chart format is how I want it to look - horizontal bars but with values that do not begin at 0.
I'm attaching an image of the results that I am getting 
What I get are to results bars for each company (low and High) 
What I want is Individuals(Not High Net Worth) from 51 to 75 as a single bar
and High Net Worth Individuals with a single bar from 11 to 25 (again, a single bar)

Thanks
Danail Vasilev
Telerik team
 answered on 12 Mar 2014
4 answers
84 views
Hi,
I have copied the code exactly as it is in the demo "live xml" but it is giving me errors on the parsing date. String exception on these methods:


protected string GetDayOfWeek(string dateTimeString)
          {
               DateTime result = DateTime.Parse(dateTimeString);
               string dayOfWeek = Enum.GetName(typeof(DayOfWeek), result.DayOfWeek);
  
               return dayOfWeek;
          }
  
          protected string GetTimeOnly(string dateValue)
          {
               return System.DateTime.Parse(dateValue).ToString("hh:mm");
          }
  
          protected string GetDateOnly(string dateValue)
          {
               return System.DateTime.Parse(dateValue).ToString("ddd, MMM d, yyyy");
          }




I cannot understand what is wrong. The same code is working in your demo and there are not errors in my code being it the exact copy. I am going mad with this!
Files are here. I would appreciate your help.

Thanks a lot.
Felice
Felice
Top achievements
Rank 1
 answered on 12 Mar 2014
4 answers
260 views
Hi Telerik Team,

Our project integrated "Insert External Video" plugin. When we insert youtube video in the popup window then click "Save" button, it throws script error in the browser.

IE : SCRIPT1002: Syntax error 

Chrome : Uncaught SyntaxError: Unexpected token <

Could you please check it and find a way to solve it?

Thanks,

Lan
lan luo
Top achievements
Rank 1
Iron
 answered on 12 Mar 2014
6 answers
360 views

The virtual and physical paths are not shown in the FileExplorer.  I cannot see any folders when running my solution.  It is designed to allow clients to select a folder path from their local filesystem.  Additionally, it needs to allow users to select a folder path from a initialpath on the server.  I was able to create a custom content provider for both task after reviewing and modifying code found in this link, http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths , to no avail.  

From stepping through code during debugging, I am getting the paths from the MappingFile.mapping xml file and loading them into the initialPath and viewPath properties.   


'  Get physical and virtual path mappings to initialize the FileExplorer upon page load. This is a helper function
' of the ConfigureFileExplorer function
Public Sub GetPhysicalVirtualPath()
 
    Dim configFile As New XmlDocument()
 
    Dim physicalPathToConfigFile As String = Context.Server.MapPath(Me.pathToConfigFile)
    configFile.Load(physicalPathToConfigFile)
 
    ' Load the configuration file
    Dim rootElement As XmlElement = configFile.DocumentElement
 
    Dim handlerPathSection As XmlNode = rootElement.GetElementsByTagName("genericHandlerPath")(0)
 
    ' get all mappings ;
    Me._itemHandlerPath = handlerPathSection.InnerText
 
    Me.mappedPathsInConfigFile = New Dictionary(Of String, String)()
 
    Dim mappingsSection As XmlNode = rootElement.GetElementsByTagName("Mappings")(0)
 
    ' get all mappings ;
    For Each mapping As XmlNode In mappingsSection.ChildNodes
 
        ' Get the appropriately categorized path, which is the InternalShare for ReceiveInternal and SendInternal operations
        Dim virtualPathAsNode As XmlNode = mapping.SelectSingleNode("VirtualPath")
        Dim physicalPathAsNode As XmlNode = mapping.SelectSingleNode("PhysicalPath")
 
        '  If neither string is empty, then
        If Not String.IsNullOrEmpty(virtualPathAsNode.InnerText) And Not String.IsNullOrEmpty(physicalPathAsNode.InnerText) Then
            ' Add all mappings to the list
            Me.mappedPathsInConfigFile.Add(PathHelper.RemoveEndingSlash(virtualPathAsNode.InnerText, "/"c), PathHelper.RemoveEndingSlash(physicalPathAsNode.InnerText, "\"c))
        End If
 
    Next
 
End Sub

The server or client directory should be shown depending on the requested action (tab's ID) received from a hidden field on the client app.  Please see the following:


 

Public Sub GetPhysicalVirtualPath()
 
        Dim configFile As New XmlDocument()
 
        Dim physicalPathToConfigFile As String = Context.Server.MapPath(Me.pathToConfigFile)
        configFile.Load(physicalPathToConfigFile)
 
        ' Load the configuration file
        Dim rootElement As XmlElement = configFile.DocumentElement
 
        Dim handlerPathSection As XmlNode = rootElement.GetElementsByTagName("genericHandlerPath")(0)
 
        ' get all mappings ;
        Me._itemHandlerPath = handlerPathSection.InnerText
 
        Me.mappedPathsInConfigFile = New Dictionary(Of String, String)()
 
        Dim mappingsSection As XmlNode = rootElement.GetElementsByTagName("Mappings")(0)
 
        ' get all mappings ;
        For Each mapping As XmlNode In mappingsSection.ChildNodes
 
            ' Get the appropriately categorized path, which is the InternalShare for ReceiveInternal and SendInternal operations
            Dim virtualPathAsNode As XmlNode = mapping.SelectSingleNode("VirtualPath")
            Dim physicalPathAsNode As XmlNode = mapping.SelectSingleNode("PhysicalPath")
 
            ' 2/20/14 - If neither string is empty, then
            If Not String.IsNullOrEmpty(virtualPathAsNode.InnerText) And Not String.IsNullOrEmpty(physicalPathAsNode.InnerText) Then
                ' Add all mappings to the list
                Me.mappedPathsInConfigFile.Add(PathHelper.RemoveEndingSlash(virtualPathAsNode.InnerText, "/"c), PathHelper.RemoveEndingSlash(physicalPathAsNode.InnerText, "\"c))
            End If
 
        Next
 
    End Sub

 

Can you clarify how the CustomFileSystemProvider.vb file should be used?  I used the example provided in the link above.  However, I removed the file operations (move, delete, etc.) since I only need to select folders from the directory to build a path to return to the client that will be used for processing needs.  Then I added the following extended provider to the end of my page's codepage:

Public Class ExtendedFileProviderInternal
    Inherits Telerik.Web.UI.Widgets.FileSystemContentProvider
    'constructor must be present when overriding a base content provider class
    'you can leave it empty
 
    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 Telerik.Web.UI.Widgets.DirectoryItem
 
        'get the directory information
        Dim baseDirectory As Telerik.Web.UI.Widgets.DirectoryItem = MyBase.ResolveDirectory(path)
 
        'remove files that we do not want to see
        Dim files As New System.Collections.Generic.List(Of Telerik.Web.UI.Widgets.FileItem)()
 
        Dim UnauthextWebConfig As String = System.Configuration.ConfigurationManager.AppSettings("UnAuthorizedFileExtensions")
 
        Dim INVALID_EXTENSIONS As String() = FileExts()
 
        For Each file As Telerik.Web.UI.Widgets.FileItem In baseDirectory.Files
 
            ' Get the file extension of the current file, the last element in the sequence
            Dim ext As String = file.Name.Split(New Char() {"."c}).Last
 
            '  For the Internal version of the file upload control, use this code
            ' along with the exclusion list in the webconfig to prevent script injection from .sql, .cs, .bat, .exe., .cmd, etc.
 
            If Not INVALID_EXTENSIONS.Contains(ext.ToLower()) Then
                files.Add(file)
            End If
        Next
 
        Dim newDirectory As New Telerik.Web.UI.Widgets.DirectoryItem(baseDirectory.Name, baseDirectory.Location, baseDirectory.FullPath, baseDirectory.Tag, baseDirectory.Permissions, files.ToArray(), _
         baseDirectory.Directories)
 
        'return the updated directory information
        Return newDirectory
    End Function
 
    '  This function gets the custom file extension exclusion list from the web.config/ApplicationSettings set by the app admins
    Function FileExts() As String()
 
        Dim extWebConfig As String = System.Configuration.ConfigurationManager.AppSettings("AllowedFileExtensions")
 
        Dim exts As String() = extWebConfig.Split(New Char() {","c})
 
        '  If the count of extensions is not zero, then
        If (exts.Count = 0) Then
 
            exts(0) = ("undefined")
 
        End If
 
        ' Return the array
        Return exts
    End Function
End Class


I did not make any changes to the PathHelper.vb file.  I only kept the New(), GetFileContent(), and CheckWritePermission() functions of the FileSystem.vb file.  The CustomFileSystemProvider.vb, FileSystem.vb, MappingFile.mapping, and PathHelper.vb files are kept in my App_Data folder in Visual Studio 2010. 

I am running/debugging the web application locally with IIS 7 on Windows 7 OS.  The application must access the shared and local directories.  Do I need to create virtual directories in IIS for the server filesystem to show in the FileExplorer?  Additionally, how can I get the FileExplorer to show the user's local File system?  What are your suggestions?  Thanks.
Jermaine
Top achievements
Rank 1
 answered on 12 Mar 2014
3 answers
151 views
Hello everyone.

I've one javascript file(js) with some methods... 

i'm using one Radgrid with update, insert and delete and for this i need to use radajaxmanager.

But, when i use the radajaxmanager the jquery stop working...

Can someone help with this?

Thanks.
Vasil
Telerik team
 answered on 12 Mar 2014
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?