Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
272 views
Hi all
I'm using radgrid in my website.
Im loading radgrid for radpanelbar in foue radpanel items which means one radgrid for one tab.
I'm refreshing the this page for every 15 secs ,every time on refresh.
So when I see the memoryusage of IE in taskmanager its keep on increasing for every 15 or 13 secs like that.
But I'm not loading any extra data on refresh.
Pls help me in this since this is considered as critical from my client.
and I have same issue in two pages.
Help me asap pls.
Pavlina
Telerik team
 answered on 10 Nov 2014
5 answers
119 views
Had the following example working fine to print contents of a Radwindow from the title bar:  http://www.telerik.com/support/kb/aspnet-ajax/window/details/adding-a-custom-button-to-radwindow-titlebar

However now using IE11 it prints the entire page behind the window as well.
In Firefox works fine and only prints the contents of the Radwindow.

Would appreciate and any.

Thanks

Glenn
Marin Bratanov
Telerik team
 answered on 10 Nov 2014
2 answers
147 views
Trying to limit the results that are returned to a FileExplorer and it works sporadically and quite possibly we are missing something.  If a file exists for a Credit Union it will display as it should however if there isn't one found it will return all the records in that folder (which we do not want).  After it shows all the files if I click the refresh button within the FileExplorer it will then show there are no results.  There is only two possible outcomes:

if a file exists for that credit union, show the file
if does not exist, show no files
Public Shared iASI_Num As Integer
 
    Public Shared Property GetAsiNum() As Integer
        Get
            Return iASI_Num
        End Get
        Set(ByVal value As Integer)
            iASI_Num = value
        End Set
    End Property
 
 
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
 
    End Sub
 
    Protected Function GetVisibleControls() As Telerik.Web.UI.FileExplorer.FileExplorerControls
        Dim explorerControls As Telerik.Web.UI.FileExplorer.FileExplorerControls = 0
 
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.AddressBox
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.TreeView
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.ContextMenus
 
 
        Return explorerControls
    End Function
 
    Private Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender
        If Not String.IsNullOrEmpty(Session("ASI_Num")) Then
            If Session("asi_num") <> 0 Then
                iASI_Num = Session("ASI_Num")
 
                'set properties according to configuration panel
                FileExplorer1.Configuration.SearchPatterns = New String() {"*.pdf"}
                FileExplorer1.VisibleControls = GetVisibleControls()
                FileExplorer1.EnableOpenFile = True
                FileExplorer1.DisplayUpFolderItem = False
                FileExplorer1.AllowPaging = False
                FileExplorer1.EnableCreateNewFolder = False
                FileExplorer1.Configuration.AllowFileExtensionRename = False
                FileExplorer1.Upload.InitialFileInputsCount = 1
                FileExplorer1.Upload.MaxFileInputsCount = 1
 
                If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid) = 0 Then
                    FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.Thumbnails
                End If
 
                If (FileExplorer1.VisibleControls And Telerik.Web.UI.FileExplorer.FileExplorerControls.ListView) = 0 Then
                    FileExplorer1.ExplorerMode = Telerik.Web.UI.FileExplorer.FileExplorerMode.[Default]
                End If
 
                FileExplorer1.Configuration.UploadPaths = New String() {"~/PDF/ECPay"}
                FileExplorer1.Configuration.DeletePaths = New String() {"~/PDF/ECPay"}
 
                '#region assign-provider_vb
                FileExplorer1.Configuration.ContentProviderTypeName = GetType(ExtendedFileProvider).AssemblyQualifiedName
                '#endregion
 
            End If
        End If
    End Sub
End Class
 
Public Class ExtendedFileProvider
    Inherits Telerik.Web.UI.Widgets.FileSystemContentProvider
    Dim iAsi_Num As Integer = ECPayManagement.GetAsiNum
 
    '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)()
        For Each file As Telerik.Web.UI.Widgets.FileItem In baseDirectory.Files
            If IsFiltered(file.Name.ToString) 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
 
    Public Overrides Function StoreFile(file As Telerik.Web.UI.UploadedFile, path As String, name As String, ParamArray arguments As String()) As String
        Dim extension As String = name.Substring(name.LastIndexOf("."))
        name = iAsi_Num & extension 'put here your logic for getting the client id
 
        Return MyBase.StoreFile(file, path, name)
    End Function
 
    Private Function IsFiltered(name As String) As Boolean
        If name.ToString = CStr(iAsi_Num & ".pdf") Then
            Return True
        End If
        ' else
        Return False
    End Function
Vessy
Telerik team
 answered on 10 Nov 2014
1 answer
84 views
System.InvalidOperationException: Telerik.Web.UI.RadRating with ID='RadRating0' was unable to find an embedded skin with the name 'WebBlue'.
Slav
Telerik team
 answered on 10 Nov 2014
1 answer
75 views
I've just added a solution to a server and on adding the web part to the page get the following error:

System.InvalidOperationException: Telerik.Web.UI.RadRating with ID='RadRating0' was unable to find an embedded skin with the name 'WebBlue'.

I have used Gacutil.exe to add the reference to Telerik.UI.dll and ..Skins.dll. Both are definitely copied over but in SharePoint LogViewer there still remains a problem with using the 'WebBlue' skin on the RadRatings. Has anyone managed to solve this problem before? How do you carry over the skins added within the solution?

Cheers.
Slav
Telerik team
 answered on 10 Nov 2014
22 answers
514 views
Hi,

I have a portal-type page that can contain any number of "portlets". Various types of portlets get data from various sources like RSS feeds, database queries, etc. Some of them are fast, others slow, depending on how much work they have to do to get their data.

So that one or two slow-loading docks do not slow down the entire page, what I am looking to do is:
    1. have the main page and its collection of docks load immediately
    2. but then for each dock to then independently begin acquiring its data, displaying a loading panel  as it does its work
    3. do this in a way that won't cause javascript errors if a dock is closed or minimized while "loading" or page navigation occurs, etc.
 
I've searched around (both on these forums and Google), but cannot find clear instructions anywhere that shows how to get RadDocks to do the above.

Thanks for any assistance you can provide.

-Al

Slav
Telerik team
 answered on 10 Nov 2014
1 answer
85 views
Hello guys, 

I am totally new in Talerik Radgrid, so please bare with me. I have Raggrid inside one of the page. i am using Advance Binding (need data source) to bind my data. which is working perfectly fine. 

now my problem is, I want to customize the columns. Here what i want to do.

1. How can i change the Column Header 
2. How can i remove Filter box from some of my columns. 
3. How can i Hide some column to display in grid. 
4. How can i customize Sorting. in specific columns.


And also, can anyone please explain me the concept of UniqueName. Thanks. 

Here what i do to bind the data.  

.xaml page. 
<telerik:RadGrid runat="server" ID="RadGrid2" AllowPaging="True" AllowSorting="true"
        OnNeedDataSource="RadGrid2_NeedDataSource" AllowFilteringByColumn="True" Skin="Sunset">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
            
        </ClientSettings>
    </telerik:RadGrid>

.cs page
protected void RadGrid2_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
       {
           (sender as RadGrid).DataSource = GetDataTable();
       }
 
       public DataTable GetDataTable()
       {
           string str1 = (string)(Session["UserName"]);
 
           string query = "select Acer_Status,No_Of_Vouchers,Acer_Actual_Balance ,Zero_To_Thirty_Days , Thirtyone_To_Sixty_Days ,Sixtyone_To_Ninety_Days ,Ninetyone_Days_Plus  from ACER_AR_SUMMARY1 where Practice_Short_Name ='" + str1 + "'";
 
           String ConnString = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
           SqlConnection conn = new SqlConnection(ConnString);
           SqlDataAdapter adapter = new SqlDataAdapter();
           adapter.SelectCommand = new SqlCommand(query, conn);
 
           DataTable myDataTable = new DataTable();
 
           conn.Open();
           try
           {
               adapter.Fill(myDataTable);
              
           }
           finally
           {
               conn.Close();
           }
 
           return myDataTable;
       }


Konstantin Dikov
Telerik team
 answered on 10 Nov 2014
3 answers
1.3K+ views
How can I disable a row in Item DataBound event. I will have a column with name Approved or Pending in the radgrid. If it is Approved I would like to enable the row if not disable the row and show some text in that place stating that the record was not approved.

Can some one help me
Konstantin Dikov
Telerik team
 answered on 10 Nov 2014
1 answer
92 views
I'm trying to do Excel export from a RadGrid.  So far I've successfully generated XLS files.

However so far I've been unable to generate Xlsx (using either your demo example at http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx or various forum posts).

I'm currently running 2013.3.1324.40.
Maria Ilieva
Telerik team
 answered on 10 Nov 2014
3 answers
46 views
I am using the Telerick Scheduler in a custom module I am creating for DNN (v6.02.09) which uses Telerick v2012.2.724.35

I can't update the Telerik controls directly to my knowledge, they are bound to the version of DNN being used, so I am out of luck with that suggestion.

Here is my issue, while testing I found a weird bug in the calendar display, for Novermber 2014. The date "2" is duplicated twice, shifting all the other days in the calendar, and then is shows SUNDAY and MONDAY as the "weekend" days, instead of SATURDAY and SUNDAY. Now all the events added show up on the correct BOX, but the boxes have the wrong DAY on them, so it look like the events added are one day prior to the actual date. See the image below...

<a href="http://s1222.photobucket.com/user/BSantiag/media/TelerikSchedulerBugNov2014.jpg.html" target="_blank"><img src="http://i1222.photobucket.com/albums/dd487/BSantiag/TelerikSchedulerBugNov2014.jpg" border="0" alt="TelerikSchedulerBugNov2014.jpg"/></a>
Boyan Dimitrov
Telerik team
 answered on 10 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?