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

A project in production works partially, on clients internets (phone, pc etc...) and works on our intranet.

A resource.axd generate an "ERR_CONNECTION_RESET"

difference with other ressource is long url auto generated :

<script src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RSM_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a10395c91-0c67-4b5f-be67-7f60b4835745%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2022.2.622.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3afr-FR%3adbbf043d-66df-4172-9982-e8bb59918fa4%3a16e4e7cd%3af7645509%3a88144a7a%3aed16cbdc%3a4877f69a%3a24ee1bba%3af46195d3%3a33715776%3ab2e06756%3a92fe8ea0%3afa31b949%3ac128760b%3a19620875%3a874f8ea2%3a490a9d4e%3ab7778d6c%3ae085fe68%3acda80b3%3a383e4ce8%3aa064d040%3a59462f1%3a7c926187%3aa51ee93e%3ac08e9f8a%3a58366029%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3afr-FR%3a10395c91-0c67-4b5f-be67-7f60b4835745%3a76254418" type="text/javascript"></script>

i can send you (in private domain base of url, before /Telerik..) to test.

how to reduce this url ? i think is size.

example of resource work in site :

/ScriptResource.axd?d=Acr7YYngYOcLwDrz111yAmfTtNXdiT2AVa5sxCuSkDiFfzEWUyUZNnYbx9cuBqADt0N7LO5fkpvKchmSSPLRCFpBkbQWzKznqT47xPMkxIKzMFwRcsSZO1XF28E6FKpA6I6deov79BgFLTYERhXvYwXJY1EGFuA2PN_d3WFfV_k1&t=14d69f50

 

Thanks for your help.

Vincent
Top achievements
Rank 1
Iron
Iron
 answered on 12 Jul 2023
0 answers
108 views

The DropDownTree doesn't have FitInInput functionality, so what would be the way to create this functionality?

I've tried things like updating the text using `OnClientEntryAdded` and `set_defaultMessage()` but once that function has run in my JavaScript, the original text items that were selected just show back up. 

What do I need to do?

 

Russell
Top achievements
Rank 1
 asked on 11 Jul 2023
0 answers
292 views

Hi,

We are using Telerik ASP .NET AJAX Control version 2020.1.114.45 in our product.

Sometimes, when the users are using our application with telerik controls, they get invalid viewstate exception as below. It happens randomly. Please let me know, if it is a known issue and fix is available for this issue.

We are using Chrome Browser Version 114.0.5735.199.

Invalid viewstate. 
Client IP: <ClientIP>
Port: 48492
Referer: <WebURL>/frmAPPOINTMENTS.aspx
Path: /frmAPPOINTMENTS.aspx
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
ViewState: /wEPDwUJMjIyNjA0OTYwDxYCHhNWYWxpZGF0ZVJlcXVlc3RNb2RlAgEWAmYPZBYCAgMPZBYCAgEPZBYqAgEPFgIeCGRpc2FibGVkZBYEAgEPFgIfAWQWAgIBDxYCHwFkZAIDDxYCHwFkZAIDDxYCHwFkFgQCAQ8WAh8BZGQCAw8WAh8BBQhkaXNhYmxlZGQCBQ8WAh8BZBYcAgEPFgIfAWRkAgMPFgIfAWQWBgIBDxYCHwFkZAIDDxYCHwEFCGRpc2FibGVkZAIFDxYCHwEFCGRpc2FibGVkZAIFDxYCHwEFCGRpc2FibGVkZAIHDxYCHwFkZAIJDxYCHwFkFgoCAQ8WAh8BZBYEAgEPFgIfAWRkAgMPFgIfAQUIZGlzYWJsZWRkAgMPFgIfAQUIZGlzYWJsZWQWBAIBDxYCHwEFCGRpc2FibGVkZAIDDxYCHwEFCGRpc2FibGVkZAIFDxYCHwEFCGRpc2FibGVkZAIHDxYCHwEFCGRpc2FibGVkZAIJDxYCHwEFCGRpc2FibGVkZAILDxYCHwEFCGRpc2FibGVkZAINDxYCHwEFCGRpc2FibGVkZAIPDxYCHwFkZAIRDxYCHwEFCGRpc2FibGVkZAITDxYCHwEFCGRpc2FibGVkZAIVDxYCHwEFCGRpc2FibGVkZAIXDxYCHwFkFgQCAQ8WAh8BBQhkaXNhYmxlZGQCAw8WAh8BBQhkaXNhYmxlZGQCGQ8WAh8BBQhkaXNhY...

Thanks.

Nallan Krishnan
Top achievements
Rank 1
 updated question on 07 Jul 2023
0 answers
109 views

Hi

How do you add a client side OnExpanded / OnClientExpanded?

 

I have tried... but I get an error add_expand is NOT A FUNCTION 

 

var radDock = $find('MyRadDock')

 

radDock.add_expand(function () {

    // Expand

}

Ideas?  thx

Jonathan
Top achievements
Rank 1
Iron
Veteran
 asked on 06 Jul 2023
1 answer
100 views

Here is my scenario:

Top Level - Projects, second level: project details;

If i have only one project, i would like to go straight to project details by hiding top level.

Any suggestions?

 

Attila Antal
Telerik team
 answered on 04 Jul 2023
2 answers
267 views

I have a RadGrid with attribute RenderMode set to Mobile.
It works just fine and you can scroll vertically fine if I add "rough" data into the ItemTemplate e.g.

<ItemTemplate>
<%# Eval("SomeData") %>
</ItemTemplate>


However, if I add some extra tags around the data e.g. 

<ItemTemplate>
  <div class="text-center">
    <%# Eval("SomeData") %>
  </div>
</ItemTemplate>


I can't scroll the data any longer as it behaves like I am dragging the whole control

It also works fine if you use GridBoundColumn instead meaning, only when you add containers into the template column it stops scrolling on mobile devices. On desktops still works perfectly fine. Thank you

NOTE: I've noticed that if i carefully touch the space between the rows i can scroll up and down without problem but the content behaves just like i described above. Thx

Latromi
Top achievements
Rank 2
Iron
 updated answer on 29 Jun 2023
2 answers
299 views

We upgraded Telerik.Web.UI from version 2012.3.1016.35 to 2023.1.117.45 recently.

The RadEditor renders correctly. But module dialog are all broken. See below screenshot, it's hyperlink manager dialog. (We have two custom dialogs, they are working fine).

Do you know any possible reason of it? I cannot find any log or error message from web browser.

fuquan
Top achievements
Rank 1
Iron
 answered on 29 Jun 2023
1 answer
180 views

Hello -

We are using Telerik forms for our internal website. When I download one page with all its components, it is 73 files and 11.2 MB total size. Screen captures attached.

  • 10 axd files (4.4 MB)
  • 8 css files (328 KB)
  • 47 js files (2.7 MB)
  • 7 image files (84 KB)
  • 1 html file (3.7 MB)

Most of our site is made up of similar pages. Our site has an average 500 connections per second. During peak times, the website crawls, with 20-30 seconds to return one page for each user.

We are accessing only text, with about 200 KB of text returned for each request.

It looks like 99.3% of the size of our pages is Telerik related files (mostly axd and js).

What could we be doing wrong? What should we be doing differently to reduce the size or count of Telerik files returned to the client?

Thank you!

Rumen
Telerik team
 updated answer on 28 Jun 2023
1 answer
215 views

Hello

I have an @Mention function that works within a normal aspx textarea.  It autocompletes names when entering the @ symbol and start typing the name.  Do you know how I can get this to work within Radgrid.  In the code below I need it specifically within the "Mat" column.

Here is the JavaScript:

        ////@mention function

        $(document).ready(function () {
            var availableTags = []; // You will fill this with data from server side

            function split(val) {
                return val.split(/@\s*/);
            }

            function extractLast(term) {
                return split(term).pop();
            }

            $(".mention")
                .on("keydown", function (event) {
                    if (event.keyCode === $.ui.keyCode.TAB && $(this).autocomplete("instance").menu.active) {
                        event.preventDefault();
                    }
                })
                .autocomplete({
                    minLength: 2,
                    source: function (request, response) {
                        var term = extractLast(request.term);
                        if (term.length >= 1) {
                            // ajax call to the server-side method
                            $.ajax({
                                url: './ProjectTracker.aspx/GetUsers',
                                method: 'POST',
                                contentType: 'application/json',
                                data: JSON.stringify({ 'prefix': term }),
                                success: function (data) {
                                    response(data.d);
                                }
                            });
                        }
                    },
                    focus: function () {
                        return false;
                    },

                    select: function (event, ui) {
                        var terms = split(this.value);
                        // remove the term before '@' symbol
                        terms.pop();
                        // add the selected item
                        terms.push(ui.item.value);
                        // join the terms with '@' and append space, instead of '@' at the end
                        this.value = terms.join("@") + ' ';
                        return false;
                    }
                });
        });

        $(".mention").autocomplete({
            // ... other options ...
            open: function () {
                $(this).autocomplete('widget').css('width', $(this).outerWidth());
            }
        });

Here is the Radgrid:

                     <telerik:RadGrid RenderMode="Lightweight" OnPreRender="Slippage_PreRender" runat="server" ID="Slippage" AutoGenerateColumns="false"
                        OnNeedDataSource="Slippage_NeedDataSource" OnUpdateCommand="Slippage_UpdateCommand" OnItemDataBound="Slippage_ItemDataBound"
                        OnItemCreated="Slippage_ItemCreated" OnDeleteCommand="Slippage_DeleteCommand" Skin="WebBlue"
                        OnInsertCommand="Slippage_InsertCommand" ShowHeadersWhenNoRecords="true">
                        <MasterTableView AutoGenerateColumns="False" EditMode="InPlace" DataKeyNames="ID" InsertItemDisplay="Bottom" CommandItemDisplay="Bottom" EnableHeaderContextMenu="false" ShowHeadersWhenNoRecords="true">
                           <PagerStyle Mode="NextPrevAndNumeric" PageSizeLabelText="Page Size: " PageSizes="300" />
                           <Columns>
                              <telerik:GridEditCommandColumn HeaderStyle-Width="20" ItemStyle-Width="20" UniqueName="start">
                              </telerik:GridEditCommandColumn>
                              <telerik:GridBoundColumn  DataField="Mat" DefaultInsertValue="" HeaderText="Slippage"  
                                 SortExpression="Mat" UniqueName="Mat" ItemStyle-CssClass="maximize">
                              </telerik:GridBoundColumn>
                              <telerik:GridCheckBoxColumn UniqueName="risk" HeaderText="At Risk"   ItemStyle-HorizontalAlign="Center"  HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="100px" DataField="risk" >
                              </telerik:GridCheckBoxColumn>
                              <telerik:GridButtonColumn Text="Delete" HeaderStyle-Width="50" ItemStyle-Width="50" CommandName="Delete" UniqueName="Delete"/>
                           </Columns>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="false" AllowColumnsReorder="false">
                           <Resizing AllowColumnResize="false"></Resizing>
                        </ClientSettings>
                     </telerik:RadGrid>
                     <div style="clear: both"></div>
                     <br />
                  </div>
               </div>
            </div>

Here is the code for GetUsers:

        [System.Web.Services.WebMethod]
        public static List<string> GetUsers(string prefix)
        {
            List<string> users = new List<string>();
            // Query your database here based on the prefix and fill the 'users' list
            // This is a simple demonstration with static data
            List<string> allUsers = new List<string> { "John", "Alpha Bravo", "James", "Zack Smith", "Joy" };

            // For simplicity we are just doing a StartsWith. You might need to use a 'LIKE' query in SQL or equivalent
            users = allUsers.Where(u => u.StartsWith(prefix, StringComparison.InvariantCultureIgnoreCase)).ToList();

            return users;
        }

 

Here is a normal textarea that works with the function:

             <textarea class="mention" id="textArea" rows="4" cols="50"></textarea>

 

I've added these into the aspx  page:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
Attila Antal
Telerik team
 answered on 27 Jun 2023
1 answer
113 views

I'm using a Rad MultiSelect to search for people, and I would like to include a link to the selected person's profile page within the item template.  I noticed that when I use a RadButton, I don't see it on the page.  When I use the <a OnClick> I see the hyperlink but I can't hit the controller action.  

Is it possible that I just can't use a RadButton in the MultiSelect Item Template?


<ItemTemplate> <span class="k-state-default"> <p>#: data.Foo#</p> <a OnClick="detailsViewClick" runat="server" ID="Bar">View Details</a> <%-- Commented out because this does not even show up on the view <telerik:RadButton RenderMode="Lightweight" ID="Bar" runat="server" Text="ViewDetails" OnClick="detailsViewClick" > </telerik:RadButton>--%>

</span> </ItemTemplate>


Rumen
Telerik team
 answered on 26 Jun 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?