Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
335 views

I have my RadPageView setup with ContentURL, but on come conditions i need to redirect to different URL.

Nothing i tried works.

Help please

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 06 Sep 2018
5 answers
290 views
We are facing a performance problem, when using RadGrid in RadSpliiter.

We have a MasterPage with multiple RadSplitter which should resize with window. Here is the code:

<body style="margin: 0px; height: 100%; overflow: hidden;" scroll="no">
    <form id="form1" runat="server" style="height: 100%; margin: 0px" method="post">
    <telerik:RadScriptManager runat="server" ID="ScriptManager" ScriptMode="Release">
    </telerik:RadScriptManager>
    <telerik:RadStyleSheetManager runat="server" ID="StyleSheetManager">
    </telerik:RadStyleSheetManager>
    <asp:Panel ID="panel1" runat="server" Width="100%" Height="100%" SkinID="Windows7">
        <telerik:RadSplitter LiveResize="false" ID="RadSplitter1" runat="server" Height="100%"
            Width="100%" Orientation="Horizontal" VisibleDuringInit="false">
            <telerik:RadPane ID="RadPane3" runat="server" Height="50px" Scrolling="none">
                <hd:Header runat="server" ID="header" />
            </telerik:RadPane>
            <telerik:RadPane ID="RadPane4" runat="server">
                <telerik:RadSplitter LiveResize="false" ID="ContentSplitter" runat="server">
                    <telerik:RadPane ID="paneMenu" runat="server" Width="220">
                        <telerik:RadSplitter LiveResize="false" runat="server" ID="NavigationsSplitter" Orientation="Horizontal">
                            <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" Height="26">
                                <telerik:RadTextBox ID="RadTextBox4" runat="server" Width="50" />
                                <telerik:RadButton runat="server" ID="btnNeu" Text="Filtern" CausesValidation="false">
                                    <Icon PrimaryIconCssClass="rbSearch" />
                                </telerik:RadButton>
                            </telerik:RadPane>
                            <telerik:RadPane runat="server" ID="TreeViewPane">
                                <ob:Objektbaum runat="server" ID="objektbaum" />
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="RadSplitBar1" runat="server" />
                    <telerik:RadPane ID="paneInhalt" runat="server" Scrolling="None">
                        <telerik:RadSplitter LiveResize="false" runat="server">
                            <telerik:RadPane runat="server" Scrolling="None">
                                <div class="breadcrumb_header">
                                    <asp:ContentPlaceHolder runat="server" ID="cpHeaderControls" />
                                    <bc:Breadcrumb runat="server" ID="breadcrumb" />
                                </div>
                                <telerik:RadSplitter LiveResize="false" runat="server">
                                    <telerik:RadPane runat="server" Scrolling="None">
                                        <telerik:RadSplitter LiveResize="false" runat="server" ID="srechts" Orientation="Horizontal">
                                            <telerik:RadPane ID="RadPane2" runat="server">
                                                <div id="content" class="div_content">
                                                    <asp:ContentPlaceHolder ID="cphHauptInhalt" runat="server">
                                                    </asp:ContentPlaceHolder>
                                                </div>
                                            </telerik:RadPane>
                                            <telerik:RadSplitBar runat="server" />
                                            <telerik:RadPane ID="paneErrorManagement" runat="server" Height="60" Scrolling="None">
                                                <cc1:EventViewer ID="EventViewer1" runat="server" EventClassPopupLevel="Error" VisualizeAllEventClassesThreshold="Success">
                                                </cc1:EventViewer>
                                            </telerik:RadPane>
                                        </telerik:RadSplitter>
                                    </telerik:RadPane>
                                </telerik:RadSplitter>
                            </telerik:RadPane>
                            <telerik:RadSplitBar ID="KontextSplitter" runat="server" Width="25" />
                            <telerik:RadPane runat="server" Width="25" Height="25" PersistScrollPosition="true">
                                <telerik:RadSlidingZone runat="server" ID="szrechts" Width="0" SlideDirection="Left">
                                    <telerik:RadSlidingPane runat="server" ID="sprechts" Width="200" PersistScrollPosition="true"
                                        Height="25" IconUrl="~/images/navigation/ico_kontext.png" Scrolling="None">
                                        <ko:Kontext runat="server" ID="kontext" />
                                    </telerik:RadSlidingPane>
                                </telerik:RadSlidingZone>
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </asp:Panel>
    </form>
</body>

The performance with only static content for this page is excellent.

Now we place a RadGrid in main Content (cphHauptInhalt).

<asp:Content ID="Content2" ContentPlaceHolderID="cphHauptInhalt" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgResult">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgResult" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadGrid ID="rgResult" OnNeedDataSource="getDataSource" runat="server" AllowSorting="True">
        <PagerStyle Mode="NumericPages" />
        <MasterTableView TableLayout="Fixed" /> 
    </telerik:RadGrid>
</asp:Content>

The performance is now very very bad!

If the grid has only 100 items, it take about 4s to load, with 300 items it takes about 7s and with 700 items it takes 12s. Most of the time (round about 85%) the client works in javascript functions and the cpu is blocked with 100% load. Also if the mouse moves or the client window is resized.

I think, the performance is down because of the large DOM-Tree.

Is there a trick or anything to stop javascript calculating the whole DOM? Or is there another reason why it is so slow?
Kiranmayee
Top achievements
Rank 1
 answered on 06 Sep 2018
13 answers
1.5K+ views
Hi,
I have Footer row in my Radgrid with Text box as footer item template control for few columns. User can enter a value in text box and then click button to save it in database. I am not getting textbox value at runtime in button click event, its always ""

I am using the below code to read access footer value.
GridFooterItem footerItem = (GridFooterItem)gridBulkEdit.MasterTableView.GetItems(GridItemType.Footer)[0];                       
RadTextBox texte = (RadTextBox)footerItem.FindControl("txtPortfolioID");

please advise.
Marin Bratanov
Telerik team
 answered on 06 Sep 2018
10 answers
1.8K+ views
Currently, the RadComboBox displays a comma delimited list of checked items until all of the items are checked, at which point it displays "All items checked".  Would it be possible to get it to continue displaying the comma delimited list instead of that message when all of the items are checked?
Vessy
Telerik team
 answered on 06 Sep 2018
4 answers
478 views

I have a radgrid with Allow automaticupdates but when I try it it does update the database below is my asp.net code

<%@ Page Title="" Language="VB" MasterPageFile="~/Header.master" AutoEventWireup="false" CodeFile="InvoiceSchedule.aspx.vb" Inherits="StepIII_InvoiceSchedule" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>


  
   <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
        </Scripts>
      
    </telerik:RadScriptManager>

 

<div class="Invoice">

       <%-- Created a gridview that has templates --%>
         
          <asp:SqlDataSource ID="sqlMonth" runat="server" ConnectionString="<%$ ConnectionStrings:COSIGrantsDB %>" SelectCommand="SELECT * FROM [lkp_Month]"></asp:SqlDataSource>
          <asp:SqlDataSource ID="sqlYear" runat="server" ConnectionString="<%$ ConnectionStrings:COSIGrantsDB %>" SelectCommand="SELECT * FROM [lkp_Year]"></asp:SqlDataSource>
          <asp:SqlDataSource ID="sqlInvoiceSource" runat="server" ConnectionString="<%$ ConnectionStrings:COSIGrantsDB %>" SelectCommand="SELECT SourceID as SID, Source AS invoicesource FROM lkp_InvoiceSource"></asp:SqlDataSource>
          <asp:SqlDataSource runat="server" ID="sqlInvoice" ConnectionString='<%$ ConnectionStrings:COSIGrantsDB %>' SelectCommand="SELECT InvoiceSchedule_Test.Amount, lkp_Month.Month, InvoiceSchedule_Test.MonthId, InvoiceSchedule_Test.YearId, InvoiceSchedule_Test.SourceId, lkp_Year.Year, lkp_InvoiceSource.Source, InvoiceSchedule_Test.ApplicationID, InvoiceSchedule_Test.InvoiceScheduleId FROM InvoiceSchedule_Test LEFT OUTER JOIN lkp_Month ON InvoiceSchedule_Test.MonthId = lkp_Month.MonthID LEFT OUTER JOIN lkp_Year ON InvoiceSchedule_Test.YearId = lkp_Year.YearID LEFT OUTER JOIN lkp_InvoiceSource ON InvoiceSchedule_Test.SourceId = lkp_InvoiceSource.SourceID WHERE (InvoiceSchedule_Test.ApplicationID = @AppID)" InsertCommand="INSERT INTO InvoiceSchedule_Test(MonthId, YearId, Amount, SourceId, ApplicationID) VALUES (@monthid, @yearid, @amount, @sourceid, @appid)" DeleteCommand="Delete from InvoiceSchedule_test where invoicescheduleid=@invoiceid" UpdateCommand="UPDATE InvoiceSchedule_Test SET MonthId = @monthid, YearId = @yearid, Amount = @amount, SourceId = @sourceid, ApplicationID = @appid WHERE (InvoiceScheduleId = @invoiceschedid)">

              <DeleteParameters>
                  <asp:Parameter Name="invoiceid"></asp:Parameter>
              </DeleteParameters>
              <InsertParameters>
                  <asp:Parameter Name="monthid"></asp:Parameter>
                  <asp:Parameter Name="yearid"></asp:Parameter>
                  <asp:Parameter Name="amount"></asp:Parameter>
                  <asp:Parameter Name="sourceid"></asp:Parameter>
                  <asp:SessionParameter SessionField="appid" Name="AppID" Type="Int32"></asp:SessionParameter>
              </InsertParameters>
              <SelectParameters>
                  <asp:SessionParameter SessionField="appid" Name="AppID" Type="Int32"></asp:SessionParameter>
              </SelectParameters>
              <UpdateParameters>
                  <asp:Parameter Name="monthid"></asp:Parameter>
                  <asp:Parameter Name="yearid"></asp:Parameter>
                  <asp:Parameter Name="amount"></asp:Parameter>
                  <asp:Parameter Name="sourceid"></asp:Parameter>
                  <asp:SessionParameter SessionField="appid" Name="AppID" Type="Int32"></asp:SessionParameter>
           <asp:Parameter Name="invoiceschedid" />
                     </UpdateParameters>


          
          </asp:SqlDataSource>
          <telerik:RadGrid ID="rg" runat="server" AutoGenerateEditColumn="True" DataSourceID="sqlInvoice" AutoGenerateDeleteColumn="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True">

<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>

              <MasterTableView DataKeyNames="InvoiceScheduleId" DataSourceID="sqlInvoice" AutoGenerateColumns="False" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" CommandItemDisplay="top">
                  <Columns>
                      <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount" DataType="System.Decimal" FilterControlAltText="Filter Amount column"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="Month" HeaderText="Month" SortExpression="Month" UniqueName="Month" FilterControlAltText="Filter Month column"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="MonthId" HeaderText="MonthId" SortExpression="MonthId" UniqueName="MonthId" DataType="System.Int32" FilterControlAltText="Filter MonthId column"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="YearId" HeaderText="YearId" SortExpression="YearId" UniqueName="YearId" FilterControlAltText="Filter YearId column" DataType="System.Int32"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="SourceId" HeaderText="SourceId" SortExpression="SourceId" UniqueName="SourceId" FilterControlAltText="Filter SourceId column"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="Year" HeaderText="Year" SortExpression="Year" UniqueName="Year" DataType="System.Int32" FilterControlAltText="Filter Year column"></telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="Source" FilterControlAltText="Filter Source column" HeaderText="Source" SortExpression="Source" UniqueName="Source">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="ApplicationID" DataType="System.Int32" FilterControlAltText="Filter ApplicationID column" HeaderText="ApplicationID" SortExpression="ApplicationID" UniqueName="ApplicationID">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="InvoiceScheduleId" DataType="System.Int32" FilterControlAltText="Filter InvoiceScheduleId column" HeaderText="InvoiceScheduleId" ReadOnly="True" SortExpression="InvoiceScheduleId" UniqueName="InvoiceScheduleId">
                      </telerik:GridBoundColumn>
                  </Columns>
              </MasterTableView>
          </telerik:radgrid>
       <%--   <telerik:RadGrid ID="rg" runat="server" AutoGenerateDeleteColumn="True" allowautomaticdeletes="true" AutoGenerateEditColumn="True" DataSourceID="sqlInvoice" AllowAutomaticInserts="True" onUpdateCOmmand="rg_Update" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both" onDeleteCommand="rg_DeleteCommand"  >



            <MasterTableView DataKeyNames="InvoiceScheduleId" DataSourceID="sqlInvoice" commanditemdisplay="top" >
                   <Columns>
                         <telerik:GridBoundColumn HeaderText="invoiceid" datafield="invoicescheduleid"></telerik:GridBoundColumn>
                
                         <telerik:GridTemplateColumn DataField="source" FilterControlAltText="Filter Invoicesource column" HeaderText="source" UniqueName="Invoicesource">
                             <EditItemTemplate>
                                 <asp:DropDownList ID="sourceDropDownList" runat="server" DataSourceID="sqlInvoiceSource" DataTextField="invoicesource" DataValueField="sid">
                                 </asp:DropDownList>
                             </EditItemTemplate>
                             <ItemTemplate>
                                 <asp:Label ID="sourceLabel" runat="server" Text='<%# Eval("source") %>'></asp:Label>
                             </ItemTemplate>
                         </telerik:GridTemplateColumn>
          
                
                       <telerik:GridDropDownColumn DataField="monthid"   HeaderText="Month" uniquename="monthid" ListTextField="Month" ListValueField="monthid" datasourceid="sqlMonth"></telerik:GridDropDownColumn>
                       <telerik:griddropdowncolumn uniqueName="yearid" ListTextField="year" ListValueField="yearid" DataSourceID="sqlYear" HeaderText="Year" DataField="yearid"></telerik:griddropdowncolumn>
                       <telerik:gridboundcolumn UniqueName="amount" HeaderText="amount" Dataformatstring="{0:C}" DataField="amount"></telerik:gridboundcolumn>
                         
                     
            
                         
                     
                    
               
                   </Columns>
               </MasterTableView>
           </telerik:RadGrid>
       --%>
          
             </div>

 

Can anyone tell me what I am doing wrong?

Thanks

 

Robin 

Attila Antal
Telerik team
 answered on 05 Sep 2018
3 answers
584 views

Hi

I have Radgrid with two checkboxes and details table with checkbox in one column and repeater and checkbox in it in another column. When all items in details table is checked then radgrid checkbox should also be checked. similarly if repeater items are checked then radgrid checkbox should be checked. Please suggest how can this be acheived.

<radgrid>

<mastertableview>

<Columns>

<Gridtemplatecolumn>

<checkboxleft>

</Gridtemplatecolumn>

<Gridtemplatecolumn>
<checkboxright>
</Gridtemplatecolumn>

<detailstable>

<gridtableview>

<columns>

<<Gridtemplatecolumn>
<itemcheckboxleft>
</Gridtemplatecolumn>

<<Gridtemplatecolumn>

<repeater>
<itemcheckboxleft>

</repeater>
</Gridtemplatecolumn>

</columns>

</detailstable>

</columns>

</radgrid>

 

 

 

 

 

 

 

 

 

 

Tsvetomir
Telerik team
 answered on 05 Sep 2018
0 answers
151 views

Hi,

I have a "RadWizard" with two "RadWizardSteps" and two different "ValidationGroups".
When I click the first button (BtnArrayAdd), the validation for the "TxtArrayName" control works correct.
When I click the second button (BtnAdd), the validation checks only the "TxtAttributeName" control but not the "CbAttributeType" control.

When I remove the first step, the validation for both controls (TxtAttributeName & CbAttributeType) works correct.

What could be the problem?

 

Thx,
Dominik

<telerik:RadWizardStep ID="StepWebServiceOutArrays" runat="server" StepType="Auto">
                    <br />
                    <div class="sbLabel1"><asp:Label ID="LblArrayName" runat="server"></asp:Label></div>
                    <div class="sbControl1"><telerik:RadTextBox ID="TxtArrayName" runat="server" Width="200"></telerik:RadTextBox></div>
                    <div class="sbLabel2"><asp:RequiredFieldValidator ID="TxtArrayNameValidator" runat="server" ControlToValidate="TxtArrayName" ValidationGroup="ArrayValidation" EnableClientScript="true" ForeColor="Red" ></asp:RequiredFieldValidator></div>
                    <br /><br /><br />
                    <telerik:RadButton ID="BtnArrayAdd" runat="server" CssClass="system" Width="100" OnClick="E_Click" ValidationGroup="ArrayValidation"></telerik:RadButton>
                    <telerik:RadButton ID="BtnArrayRemove" runat="server" CssClass="system" Width="100" OnClick="E_Click" CausesValidation="false"></telerik:RadButton>
                    <br />
                </telerik:RadWizardStep>
 
                <telerik:RadWizardStep ID="StepWebServiceOutAttributes" runat="server" StepType="Auto">
                    <br />
                    <div class="sbLabel1"><asp:Label ID="LblAttributeName" runat="server"></asp:Label></div>
                    <div class="sbControl1"><telerik:RadTextBox ID="TxtAttributeName" runat="server" Width="200"></telerik:RadTextBox></div>
                    <div class="sbLabel2"><asp:RequiredFieldValidator ID="TxtAttributeNameValidator" runat="server" ControlToValidate="TxtAttributeName" ValidationGroup="AttributeValidation" EnableClientScript="true" ForeColor="Red" ></asp:RequiredFieldValidator></div>
                    <br /><br />
                    <div class="sbLabel1"><asp:Label ID="LblAttributeType" runat="server"></asp:Label></div>
                    <div class="sbControl1"><telerik:RadComboBox ID="CbAttributeType" runat="server" Width="200"></telerik:RadComboBox></div>
                    <div class="sbLabel2"><asp:RequiredFieldValidator ID="CbAttributeTypeValidator" runat="server" ControlToValidate="CbAttributeType" ValidationGroup="AttributeValidation" EnableClientScript="true" ForeColor="Red"></asp:RequiredFieldValidator></div>
                    <br /><br /><br />
                    <telerik:RadButton ID="BtnAdd" runat="server" CssClass="system" Width="100" OnClick="E_Click" ValidationGroup="AttributeValidation"></telerik:RadButton>
                    <telerik:RadButton ID="BtnRemove" runat="server" CssClass="system" Width="100" OnClick="E_Click" CausesValidation="false"></telerik:RadButton>
                    <br />
                </telerik:RadWizardStep>
Dominik
Top achievements
Rank 1
 asked on 05 Sep 2018
2 answers
328 views

Dear Team,

I am working on some charts where some of them have more than 3 or 4 y-axis. The requirement is to set 2 y-axis on left side and remaining on right side.

Basically, we are trying to enable the user to customize their own chart where they can set orientation for each y-axis and save the option in back-end. I have tried with axis crossing points but it is pushing all additional y-axis to the right side. 

Any example / guidance is appreciated. 

sri harsha
Top achievements
Rank 1
 answered on 05 Sep 2018
1 answer
607 views

I have a grid that is in edit mode an update delete command in grid.

I have some textboxes (for name, surname etc) and and a radgrid on my web page.(for products for example). all radgrid's rows are in "inplace" edit mode

I want to use the 'Add new Record' on the RadGrid and then with an external button want to save it to database.

Used the link as reference : https://www.telerik.com/forums/update-radgrid-with-external-button-(all-rows-in-edit-mode)

Marin Bratanov
Telerik team
 answered on 05 Sep 2018
4 answers
267 views

hi,

I'm trying to figure out how to add a clickable hyperlink to a cell, currently I receive the contents from a SQL backend, check if the value contains a link and add it as a cell.Link, it currently shows them as links but they are not clickable, what pony trick am i missing? thanks for you advise. ps: this is in C#

 

if (cellValue.Contains("http://")) {
    cell.Link = cellValue;
}

 

kind regards, iwan

Iwan
Top achievements
Rank 2
 answered on 05 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?