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

Currently I am working with a RadGrid that is using batch update that is attached to a SqlDataSoure to load, update and delete. Everything is working fine but normally the users spend around 20 minutes to review and update everything they need before hit "Save Changes", during this process new records are inserted in the database so the data displayed on the screen is not the same of the database. When the user finally hit "Save Changes" the grid refresh first the dataset and after that perform the updates generating errors because records that were not displayed are updated.

 Is there a way to tell the grid to load the data only when it is not postback? Like doing it in the OnNeedDatasource in the code behind.

Pavlina
Telerik team
 answered on 22 Jun 2015
8 answers
445 views

I've recently converted an ASP.NET 2.0 application to 3.5 and have been trying to add telerik.

vs2013 & Telerik asp.net ajax v2015.1.401.35

Recently converted an ASP.NET 2.0 web application to 3.5 and it runs fine.

I've used the telerik wizard to add the necessary bits to web.config.

Tried replacing the scriptmanager with RadScriptManager, but that errors with

JavaScript critical error at line 4, column 1 in http://localhost/iWebTest/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=3.5.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:eb198dbd-2212-44f6-bb15-882bde414f00:ea597d4b:b25378d2;Telerik.Web.UI:en-US:bfbc94e0-0f9b-4d52-9983-75ffc518eea7:16e4e7cd:f7645509:22a6274a\n\nSCRIPT1002: Syntax error 

so reverted to normal scriptmanager for now until that can be resolved.  

Created a new web form, added a radtextbox and a button then in click event in the code behind I tried to retrieve the textbox.text value..  it just returns the original value, not the changed one..

What the heck have I done wrong ?

 

Adrian
Top achievements
Rank 1
 answered on 22 Jun 2015
5 answers
66 views

Hi,

We use the RadGauge a lot, but lately we had some real performance issues, mostly on tablets (iPad)!

When reverting back to a telerik version prior to 2015 Q1 (2014 something), all issues are gone...

In a simple example:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="gauge.aspx.vb" Inherits="TestaTredjepartWeb.gauge" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <script type="text/javascript">
            window.__dt = new Date();
            setTimeout(function () { alert((new Date()) - window.__dt - 10); }, 10);
        </script>
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:Button ID="btn" runat="server" />
            <telerik:RadRadialGauge ID="rrg" runat="server" Transitions="false">
                <Pointer Value="44" Color="Red" Cap-Color="Yellow"></Pointer>
                <Scale>
                    <Labels Position="Outside" Color="Gray" Font="normal 10px Segoe UI, Tahoma, Helvetica" />
 
                    <Ranges>
                        <telerik:GaugeRange From="0" To="40" Color="Red" />
                        <telerik:GaugeRange From="40" To="90" Color="Yellow" />
                        <telerik:GaugeRange From="90" To="200" Color="Green" />
                    </Ranges>
                </Scale>
            </telerik:RadRadialGauge>
        </div>
    </form>
</body>
</html>
 

When running this sample on a desktop computer, the alert says about 30ms with 2014 version and 100ms with any 2015 version, on an iPad it says 150ms with 2014 version and 600ms with any 2015 version.

About 3-4 times slower!

On some pages we have multiple gauges, which makes it even worse...
The 2015 Q2 Beta is also slow...

Regards
Andreas

 

Danail Vasilev
Telerik team
 answered on 22 Jun 2015
3 answers
63 views

Hi Team,

I have a combo box like this and client function as shown below. 

   <telerik:RadComboBox ID="cmbCurrency" runat="server" CausesValidation="false"  ClientIDMode="AutoID"
                    EmptyMessage="[Select All]" Filter="Contains" MaxHeight="150" Width="100%" HighlightTemplatedItems="true" 
                    AllowCustomText="true"  OnClientDropDownClosed="onDropDownClosing"> 
                     <ItemTemplate>  
                        <div onclick="StopPropagation(event)" >  
                            <asp:CheckBox runat="server" ID="cbxItem" Text='<%# Eval("CurrencyCode") %>' onclick="onCheckBoxClick(this,'cmbCurrency')"/>   
                        </div>  
                    </ItemTemplate>  
                </telerik:RadComboBox>

 

//<Combo box 2  with same onclick event > 

 

Onclick Event:

 function onCheckBoxClick(chk, val) {
                var combo = $find("ctl00_MainContent_radDockSelection_C_ctl00_" + val);

                        //prevent second combo from closing 
                cancelDropDownClosing = true;
                //holds the text of all checked items 
                var text = "";
                //get the collection of all items 
                var items = combo.get_items();
                for (var i = 0; i < items.get_count(); i++) {
                    var item = items.getItem(i);
                    //get the checkbox element of the current item 
                    var chk1 = $get(combo.get_id() + "_i" + 0 + "_cbxItem");
                    var chk2 = $get(combo.get_id() + "_i" + i + "_cbxItem");

                    if (chk.nextSibling.innerHTML != "[Select All]") {
                        chk1.checked = false;
                        if (chk2.checked == true)
                            text += chk2.nextSibling.innerHTML + ", ";
                    }
                    else {
                        if (chk1.checked == true)
                            text = "[Select All]";
                        chk2.checked = false;
                        chk1.checked = true;
                    }


                }
                text = removeLastComma(text);

                if (text.length > 0) {
                    //set the text of the combobox   
                    combo.set_text(text);
                    combo.ToolTip = text;
                }

            }

There were 2 problems

1) Check boxes was not responsive.i.e they are not allowing to check either. I change clientstateId as AutoId then It worked.
2) Check all seems not working. 

 

Please let me know How to fix this.

 

Note : the code recently migrated to dotnet 4 and hosted in windows 2008 r2 .

 

Thanks in Advance.

 

Krish

 

 

 

 

 

 

 

 

Krishna
Top achievements
Rank 1
 answered on 22 Jun 2015
3 answers
139 views

Hello, 

i need to build an Audiometric chart like this in c# .net 4

chart

x values are: 125, 500, 1000, 2000, 4000, 8000 Consider that the series can have intermediate values, example 750, 3000, 6000.

i suppose that values are logarithmic but I could not find the correct values.

Marin Bratanov
Telerik team
 answered on 22 Jun 2015
3 answers
145 views
Hi,

I am using sitecore 6.6 which is using Telerik RadEditor control as the Rich Text Editor field type. Presently, It generates output as XHTML; I want the output to be HTML 5. Is it possible to make this change?

Any suggestions will be appreciated.

Regards
Dheeraj Palagiri.
Marin Bratanov
Telerik team
 answered on 22 Jun 2015
6 answers
188 views

Hi,

I need a control to enter time in hours and minutes. Is there any control like textbox with up and down arrows to select hour and minutes in telerik.

Please let me know.

Eyup
Telerik team
 answered on 22 Jun 2015
1 answer
186 views

We have a record maintenance page on a web app that we are developing that sits for an age before submitting the form once the 'Save' button has been pressed BUT that only happens under a very specific set of circumstances.  We have deployed the site to a couple of our test servers (both of which are running Windows Server 2003 Web Edition SP2 & IIS6), when we access the site on Server A through Chrome (43.0) the submission is very slow but if we use FireFox then it acts as expected and it always acts as expected, irrespective of the browser, on Server B.  We have a number of record maintenance forms and this is the only which that exhibits this behaviour, although it is the most complicated form we have.

I can't post the actual code, but we have a RadAjaxManager covering all fields on the form, which we use for field change checking and field validation, numerous control types including four RadAsyncUpload controls and a RadNotification.  If I remove the RadAjaxManager, obviously we lose all the AJAX functionality but the Save works as expected. 

Unfortunately the Server A is remote and it is not possible to debug on there to try and determine and watch point it if stalling.

Any help/pointers would be appreciated.

Many thanks

Maria Ilieva
Telerik team
 answered on 22 Jun 2015
2 answers
118 views
I am using GridTemplateColumn (RadGrid) with edit cell
functionality. That is working fine in IE 9 and above versions. With IE 8 when
I click on any cell to edit it I am getting error in getUniqueNameByCellIndex
function on the code mentioned below –

e.CellIndex-f.Cellindex

e & f are undefined.


Can you please help me out to fix this issue?

 

 
Shilpa
Top achievements
Rank 1
 answered on 22 Jun 2015
1 answer
125 views

I am doing something wrong by Telerik application. When I click on a node in my TreeView it takes 24 seconds for data to appear on the screen. I have profiled the whole process and cannot see when the delay is occurring. This is my first REALLY big application and I need help. I have  eliminated the database  as the cause of my problems.

 

Please come up with places I can look and diangostics I can use.

Nencho
Telerik team
 answered on 22 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?