Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
16 views

Hi,

 

I isolated this script to display overlay drawer but it not working properly, what am I missing?:

 

               <script>
                   function showDrawer(sender, args) {
                       $find("<%= OverlayDrawer.ClientID %>").show();
            }
 
            function hideDrawer() {
                $find("<%= OverlayDrawer.ClientID %>").hide();
                   }
               </script>

        <style>

            .drawer-content {
    height: 200px;
    padding: 1em;
}
 
.RadDrawer.borderless-drawer {
    border: 0;
}
 
div.k-widget.k-drawer {
    z-index: 42002;
}
        </style>
         <asp:Button Width="100" ID="ShowDrawer" Text="Show" AutoPostBack="false" runat="server" OnClientClicked="showDrawer" />
                            <asp:Button Width="100" ID="HideDrawers" Text="Hide" AutoPostBack="false" runat="server" OnClientClicked="hideDrawer" />


       <telerik:RadDrawer runat="server" ID="OverlayDrawer" Skin="Silk" CssClass="borderless-drawer" Position="Right" SwipeToOpen="false">
            <ItemsTemplate>
                 <ul> 
                    <li data-role='drawer-item'><span class='k-item-text'>First Item</span></li>
                    <li data-role='drawer-separator'></li>
                    <li data-role='drawer-item'><span class='k-item-text'>Second Item</span></li> 
                    <li data-role='drawer-item' class='k-state-selected'><span class='k-item-text'>Third Item</span></li> 
                    <li data-role='drawer-separator'></li> 
                    <li data-role='drawer-item'><span class='k-item-text'>Last Item</span></li> 
                </ul>
            </ItemsTemplate>
        </telerik:RadDrawer>
Vasko
Telerik team
 answered on 18 Mar 2025
1 answer
23 views

I checked the demo at https://demos.telerik.com/aspnet-ajax/window/examples/rendermodes/defaultcs.aspx?skin=MetroTouch with render mode set to classic in Chrome's Dev Tools > Mobile device emulator. I noticed a vertical line between the td cells in the title bar row as shown in screenshot below. I also noticed a similar issue with Metro skin in classic render mode. If I view the same in non-mobile mode in Chrome then this issue disappears. Perhaps, its some styling issue, but I could not find any CSS causing this.

It makes the title bar look non-uniform and not good in appearance.

What is causing the break among the td cells in the title bar for this case? (i.e. vertical line can be seen where the first td cell in title bar ends and then where the third td cell begins)

However, I did find a workaround solution using the  jquery code below. 

$(".RadWindow:visible").each((index, emt) => {
    $(this).find("tr.rwTitleRow td.rwTopLeft, .RadWindow tr.rwTitleRow td.rwTopRight").css("display", "none");
    $(this).find("tr.rwTitleRow td.rwTitlebar").attr("colspan", "3");
});

Vasko
Telerik team
 answered on 17 Mar 2025
1 answer
27 views

I have encountered a niche issue I'm trying to solve. I have a grid with EnableViewState set to false. Based on this, the control state within the grid is used to manage things like sort expressions.

My issue is simply this:

  1. Page load
  2. Programmatically add columns to a grid
  3. On the UI, sort on a column, and its name for example is 'My Column', this becomes 'My Column ASC'
  4. On our app are objects in which its name we can add as a column to the same grid
  5. Somewhere in our app I rename the object's name to something else like 'My New Column' - note the sort expression is still 'My Column ASC'
  6. Back to the grid, I cause a postback (e.g., rebind) or reorder a column, or sort, etc.
  7. The columns need to be re-added (I've covered a case to exclude the column with the old name)
  8. Before columns are added again, I manually clear sort expressions on the grid
  9. While debugging, I found that in the ColumnCreated event, the grid sort expressions restore to what they were before the postback, and I see 'My Column ASC' - I find that whenever adding a SortExpression referencing a non-existing column, the program always breaks

 

I debugged against a few events of the grid and found that in ColumnCreated (after NeedDataSource) the grid restored its sort expressions from what I presume is the control state. So, this was between NeedDataSource and ColumnCreated.

 

When exactly did the sort expressions get restored, and is there an event I can listen to?

Vasko
Telerik team
 answered on 17 Mar 2025
1 answer
27 views

Good morning once again.

Today I am trying to apply an image to the RadImageButton, however only the Text is showing, never the image.  Not sure what the issue is.

Note: there is no code behind for this button yet, its just static for testing purposes. 

<telerik:RadImageButton ID="RadImageButton1" runat="server" Text="Cat II/III" Width="50px" Height="50px">
            <Image Url="Content/Images/Cat3.png" />
        </telerik:RadImageButton>


Wayne
Top achievements
Rank 1
Iron
 answered on 14 Mar 2025
1 answer
25 views

Hello

I have several RadGrids with custom css applied to the columns.  Everything works as intended.  However, when a column is sorted, telerik applied the .rgSorted css and this completely defeats the purpose of the gird (in our application).  What is the procedure to DISABLE or DELETE the .rgSorted css, as this particular class will never be needed or used. 

Note: any css class definition with !important cannot be used in this context.

Thank you

Rumen
Telerik team
 answered on 13 Mar 2025
2 answers
34 views

I'm experiencing an issue where the page becomes unresponsive for a long time whenever any Telerik control (such as refresh or loader) is triggered. The page keeps loading indefinitely, causing significant delays, and eventually, the page becomes unresponsive.

Additionally, the following error appears in the browser console:

Uncaught Sys.WebForms.PageRequestManagerTimeoutException: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
at Error.create (https://test.plc.com/GS/Telerik.Web.UI.WebResource.axd?...:6:2736)
at Sys.WebForms.PageRequestManager._createPageRequestManagerTimeoutError (https://wpinhouse.knpc.com/GPCS/Telerik.Web.UI.WebResource.axd?...:15:11219)
at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (https://wpinhouse.knpc.com/GPCS/Telerik.Web.UI.WebResource.axd?...:15:11219)

The issue arises when interacting with Telerik controls that trigger a page request, causing the page to hang and ultimately become unresponsive.

 

issue started from Feb 17 2025

 

 

Sanju
Top achievements
Rank 1
Iron
 answered on 12 Mar 2025
2 answers
51 views

After updating to the latest version (2025.1.218), I received an error on only one of my pages where I'm using the asp:RequiredFieldValidator.

The error stated that WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'...

Initially, I added the script mapping to the global.asax.cs page, but then discovered I could just disable UnobtrusiveValidation in the web.config.

The error was resolved with each of these solutions, but I wanted to get away from modifying the global.asax page, so I went with the web.config setting.

My questions are what has changed that led to this error, and which method is recommended?  What are the ramifications of simply disabling it in the web.config?

 

Rumen
Telerik team
 answered on 11 Mar 2025
2 answers
282 views

I am getting error "You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder.
Please, contact the administrator." in my production environment. It is happening randomly. 

 

Thanks.

Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 11 Mar 2025
1 answer
29 views
I have been having this issue for a few days.  When I add a caption to the MasterTableView, it is always being displayed at the bottom of the grid, never at the top.  Is this normal, and can I change this somehow?  
Rumen
Telerik team
 answered on 10 Mar 2025
0 answers
38 views

got this error

'Could not load file or assembly 'Telerik.Web.UI, Version=2024.3.805.462, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))'

Bj
Top achievements
Rank 1
 asked on 06 Mar 2025
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?