Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
When using a specific doctype inside a div with the position set to absolute, the options window for any dropdown list in the toolbar (in addition to other tool options with windows like Insert Table) align to the top of the window instead of below the tool icon.  I tested with setting the position to relative and with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">.  Either addresses the issue.  However both cause other issue with my code that are not easy to address.

Here is a sample code snippet illustrating the problem.  I have also attached an image to show the position issue.
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
    <head runat="server">
    </head>
    <body>
    <form id="form1" runat="server">
    <div style="position:absolute;">
        <asp:ScriptManager ID="sm" runat="server" />
        <telerik:RadEditor
            id="radEditor1"
            runat="server"
            />
    </div>
    </form>
    </body>
</html>
Joshua
Top achievements
Rank 1
 answered on 12 Aug 2010
5 answers
145 views
Hi,

I tried to create a docks dynamically with the following code:

                Dim newdock As RadDock = CreateRadDock()
                newdock.Tag = "../Webparts/Info.ascx"
                newdock.DockMode = DockMode.Docked
                newdock.EnableRoundedCorners = True
                newdock.UniqueName = "BXT"
                newdock.ID = "BXT"
                newdock.Skin = "Telerik"

                newdock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.Close

                Dim cmd As New DockCommand
                cmd.Name = "DoSomething"
                cmd.Text = "DoSomething"
                newdock.Commands.Add(cmd)

                newdock.CommandsAutoPostBack = True
                newdock.Title = "Testing":

                newdock.Height = New Unit(200, UnitType.Pixel)
                AddHandler newdock.Command, AddressOf RadDock_Command
                LoadWidget(newdock)
                zoneLeft.Controls.Add(newdock)

The dock created sucessfully but when I clicked the default "Close" command, the server event "RadDock_Command" doesn't fire, But if I click the "Custom" command, it works ok. I want to capture the close event as I want to do something else. Please advise.

Andy Ho

               

Petio Petkov
Telerik team
 answered on 12 Aug 2010
9 answers
165 views
For some reason, all the comboboxes in my app have vertical scrollbars, event if there are only one or 2 options. And I do mean "all"; even scrollbars in controls that I don't directly control like the Grid Pager (see attached).

Why is this and how can I stop it from happening.

I am not, to the very best of my knowledge, either doing anything to calculate/set the scroller height or to change the skin (I'm using the built in skin "WebBlue" FWIW).

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 12 Aug 2010
1 answer
61 views
Hi,

I have enabled filtering for the radgrid but its not working. I'm not sure what might be the reason for this. Also I want to enable filtering only for a particular column. Below is the  aspx code i'm using. Please let me how what should be modified in order to make the filtering option to work.

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" 
       Skin="Web20" 
       ClickSelectedTab="True" 
       PerTabScrolling="True"  
       MultiPageID="RadMultiPage1" 
       ReorderTabsOnSelect="True" 
       ScrollChildren="True" 
       SelectedIndex="0" 
       ShowBaseLine="True">
       <Tabs>
           <telerik:RadTab runat="server" Text="test1" Selected="True">
           </telerik:RadTab>
           <telerik:RadTab runat="server" Text="test2" >               
           </telerik:RadTab>
           <telerik:RadTab runat="server" Text="test3">
           </telerik:RadTab>
       </Tabs>
   </telerik:RadTabStrip>
   <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
       <telerik:RadPageView ID="RadPageView1" runat="server">
          <br />
           <asp:Button ID="btn_excel_g" runat="server" Text="Export To Excel" 
                   onclick="btn_excel_g_Click" />
           <asp:Button ID="btn_word_g" runat="server" Text="Export To Word" 
                   onclick="btn_word_g_Click" />
           <asp:Button ID="btn_pdf_g" runat="server" Text="Export To Pdf" 
                   onclick="btn_pdf_g_Click" />
           <telerik:RadGrid ID="gp" runat="server" Skin="WebBlue" 
               OnItemCreated="RadGridStyle_ItemCreated" GridLines="None" AlternatingItemStyle-BackColor="White" 
               OnItemDataBound="RadGrid1_ItemDataBound" AllowFilteringByColumn="True" >
               <ExportSettings FileName="Report">
                   <Pdf PageBottomMargin="1px" PageHeaderMargin="1px" PageHeight="10.5in" 
                       PageLeftMargin="1px" PageRightMargin="1px" PageWidth="13in" 
                       PaperSize="Executive" />
               </ExportSettings>
               <ClientSettings>
               <ClientEvents OnRowSelected="OnRowSelecting" />
                   <Selecting AllowRowSelect="True" />
                   <Resizing AllowColumnResize="false" EnableRealTimeResize="false" 
                       ResizeGridOnColumnResize="True" />
               </ClientSettings>
               <AlternatingItemStyle BackColor="White" />
               <GroupHeaderItemStyle HorizontalAlign="Center" />
               <MasterTableView TableLayout="Fixed">
                   <CommandItemSettings ExportToPdfText="Export to Pdf" />
                   <ExpandCollapseColumn>
                      <%-- <HeaderStyle Width="20px" />--%>
                   </ExpandCollapseColumn>
                   <HeaderStyle HorizontalAlign="Center" />
               </MasterTableView>
               <%--<ItemStyle Width="1px" />--%>
           </telerik:RadGrid>
       </telerik:RadPageView>
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2010
1 answer
149 views

Hello,

I am currently using trial version of Telerik Menu control and I am getting some strange error.

My ASP.NET 2.0 application interacts with commerce server and SharePoint 2007. When I do a post back using normal ASP.NET button control I can read data from commerce server but when I postback using RAD Menu control I get a security exception when interacting with Commerce server. The exception is “assembly does not allow partially trusted callers” and source is "mscorlib".

We are planning to buy Telerik control but before that we need to get rid of this error.

I have added following line in my web.config file

<SafeControl Assembly="Telerik.Web.UI, Version=2010.1.519.20, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

 

Here is how I have registered telerik assembly on my page

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

Can you please let us know how can we fix this issue?

T. Tsonev
Telerik team
 answered on 12 Aug 2010
1 answer
127 views
I want to realize the following scenario:

I have a grid with a list of persons.
When I edit one person with a popup Edit, I want to have a grid in the popup, where i can add/edit/delete the company's the person is member of.

Is that possible ? And how ?

Regards
Falk Hennings
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2010
1 answer
60 views
Are there any plans at Telerik to offer a fisheye control, similar to the one featured on the Mac?
Georgi Tunev
Telerik team
 answered on 12 Aug 2010
2 answers
108 views
Please see SS1.gif. The image is taken from one of the demo pages for RadTabStrip. Note the white line down the left side of the tab. You can see it in other skins too, but it is most apparent using WebBlue. The problem only occurs in IE. SS2.gif shows the same page in Chrome (top) and FF (bottom).

FWIW, it's not just local to you demo pages; I'm seeing it in my app too.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 12 Aug 2010
3 answers
44 views
Hi,

I'm having a weird problem with the MOSSInsertTableElement and MOSSDeleteTableElement tools only working a random percentage of the time.

Sometimes when you click in a table cell the drop-downs will work fine but other times most of the options are greyed out (see attachments for examples in the same browser session on the same page just having clicked around in the table).

Have you seen this before?

Any ideas?

Thanks

Dave
Rumen
Telerik team
 answered on 12 Aug 2010
1 answer
124 views
I am working with a custom provider and I have added prefixes to my folder names so that they will show up in a specific order.  I have this working except for the first level.  Have I missed something based on by code seen below.

Public Class CustomFileBrowserProviderWithFilter
    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
        For N As Integer = 0 To filteredDirectories.Count - 1
            filteredDirectories(N).Name = filteredDirectories(N).Name.Replace("_", " ").Split("$")(1)
        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 name.ToLower().EndsWith(".vb") Or name.ToLower().EndsWith(".aspx") Then
            Return True
        End If

        ' else
        Return False
    End Function
End Class

John
Top achievements
Rank 1
 answered on 12 Aug 2010
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?