Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
Hi Telerik Team,

My telerik version is - Version=2008.1.619.20.

I want to display some custom text and a button inside a Radwindow. "CustomTemplate" attribute is not working. Please help in providing me an alternative way to achieve the requirement, as I don't have the scope of upgrading to latest version as of now.
Marin Bratanov
Telerik team
 answered on 11 Dec 2013
11 answers
943 views

I am using Normal telerik radgrid bind.

on OnLoad Event i called load grid functionality.

 

   
  
private void OnLoad()
  
{
  
uxUserList.DataSource = Model.UsersModelList;
  
uxUserList.DataBind();
  
  
}

 

 

it's working fine.

but when i enabled AllowPaging="true" i get the following error.

i am using RadScriptManager on My master page. and Perticular code block is
called inside a user control.

 

 

 

 


 

Server Error in '/Baker.IssueTrackingSystem.Web' Application.

Script controls may not be registered after PreRender.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Script controls may not be registered after PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +348527
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66
   Telerik.Web.UI.RadDataBoundControl.RegisterScriptControl() +43
   Telerik.Web.UI.RadDataBoundControl.ControlPreRender() +15
   Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +25
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +8682853
   System.Web.UI.ControlCollection.Add(Control child) +80
   Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +238
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.RadGrid.DataBind() +21
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   WebFormsMvp.Web.<>c__DisplayClassa`1.<Register>b__9(Object sender, EventArgs e) +15
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8699938
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029

 

 

 

 

 


 

 

Ashraf
Top achievements
Rank 1
 answered on 11 Dec 2013
3 answers
156 views
I have a page with multiple buttons in an ajaxpanel and when I click any buttons after the first button, the page scrolls back to the top. if I click the very first button (updateFormButton) it keeps the scroll position. Any ideas why? Here's my code

<%@ Page Title="" Language="VB" MaintainScrollPositionOnPostback="true" MasterPageFile="~/Main.master" AutoEventWireup="false" CodeFile="EditSafetyForm.aspx.vb" Inherits="admin_EditSafetyForm" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
 
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentPlaceHolder" Runat="Server">
     
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="success">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="formTypeDrop">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="defaultTextInput">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="updateContentButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="questionInput">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="updateQuestion">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="deleteQuestionButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="answerTypeDrop">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="addQuestionButton">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="answerItemsPanel">
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="questionsGrid">
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" HorizontalAlign="NotSet">
    <telerik:RadToolTip runat="server" ID="success" Height="60px" Width="250px" Position="Center"
        RelativeTo="BrowserWindow" AutoCloseDelay="6000">
    </telerik:RadToolTip>
    <h2><asp:Label ID="nameOutput" runat="server"></asp:Label></h2>
    <h3>Form Type</h3>
    <telerik:RadComboBox ID="formTypeDrop" runat="server" AutoPostBack="true">
            <Items>
                <telerik:RadComboBoxItem Value="1" Text="OSHA" />
                <telerik:RadComboBoxItem Value="2" Text="Personal" />
            </Items>
            <CollapseAnimation Duration="1000" Type="InBack" />
        </telerik:RadComboBox>
    <h3>Description</h3>
    <div class="safeItem">
    <telerik:RadEditor ID="defaultTextInput" runat="server" Width="800" Height="500px">
    </telerik:RadEditor><br />
    <asp:Button ID="updateContentButton" runat="server" Text="Update Form" /> <br /><br />
        <div style="clear: both;"></div>
        </div>
    <div style="clear: both;"></div>
    <br />
    <h3>Add Questions</h3>
    <div class="safeLabel">Question Text:</div>
    <div class="safeItem"><asp:TextBox ID="questionInput" runat="server" Width="450"></asp:TextBox>
           <asp:Button ID="updateQuestion" runat="server" Text="Update Question" />   
        <asp:Button ID="deleteQuestionButton" runat="server" Text="Delete" />
    </div>
    <div class="safeLabel">Answer Type:</div>
    <div class="safeItem">
        <telerik:RadComboBox ID="answerTypeDrop" runat="server" AutoPostBack="true">
            <Items>
                <telerik:RadComboBoxItem Value="Text" Text="Text" />
                <telerik:RadComboBoxItem Value="Drop" Text="Dropdown" />
                <telerik:RadComboBoxItem Value="List" Text="List" />
            </Items>
            <CollapseAnimation Duration="1000" Type="InBack" />
        </telerik:RadComboBox>
            
        <asp:Button ID="addQuestionButton" runat="server" Text="Add New Question" />
    </div>
    <asp:Panel ID="answerItemsPanel" runat="server" Visible="false">
        <div class="safeLabel">Available Items:</div>
        <div class="safeItem">
            <asp:TextBox ID="answerItemInput" runat="server" Width="450"></asp:TextBox>   
            <asp:Button ID="addAnswerButton" runat="server" Text="Add" />
        </div>
         
        <div class="safeLabel"><br /><br /><b>Existing Answers:</b></div>
        <div class="safeItem">
            <telerik:RadGrid ID="answersGrid" runat="server" GridLines="None" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="false" PageSize="50" Width="800" AutoGenerateDeleteColumn="true">
                <MasterTableView DataKeyNames="SafetyFormQuestionAnswersId" AutoGenerateColumns="false">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="SafetyFormQuestionAnswersId" HeaderText="SafetyFormQuestionAnswersId" SortExpression="SafetyFormQuestionAnswersId"
                            UniqueName="SafetyFormQuestionAnswersId" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="AnswerText" HeaderStyle-Width="400" HeaderText="Text" SortExpression="AnswerText"
                            UniqueName="AnswerText">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </asp:Panel>
    <br />
    <h3 style="clear: both;"><br />Edit Existing Questions</h3>
    <div class="safeLabel"> </div>
    <div class="safeItem">
        <telerik:RadGrid ID="questionsGrid" runat="server" GridLines="None" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="false" PageSize="50" AllowFilteringByColumn="true" Width="800" AutoGenerateDeleteColumn="true">
            <MasterTableView DataKeyNames="SafetyFormQuestionsId" AutoGenerateColumns="false">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn EditText="Edit" HeaderStyle-Width="50"></telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="SafetyFormQuestionsId" HeaderText="SafetyFormQuestionsId" SortExpression="SafetyFormQuestionsId"
                        UniqueName="SafetyFormQuestionsId" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QuestionText" HeaderText="Question" HeaderStyle-Width="250" SortExpression="QuestionText"
                        UniqueName="QuestionText">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QuestionType" AllowFiltering="false" HeaderText="Answer Type" HeaderStyle-Width="95" SortExpression="QuestionType"
                        UniqueName="QuestionType">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AnsList" AllowFiltering="false" HeaderText="Possible Answers" HeaderStyle-Width="250" SortExpression="AnsList"
                        UniqueName="AnsList">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <br /><br />
    </div>
        </telerik:RadAjaxPanel>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" SkinID="Hay"
            Height="25px" Transparency="1" BackgroundPosition="Center" >
            <img alt="Loading..." src="../login.gif" height="200" width="200" style="border: 0px;" />
        </telerik:RadAjaxLoadingPanel>
     
</asp:Content>
Eyup
Telerik team
 answered on 11 Dec 2013
3 answers
91 views

I am using this version of telerik for grid in my UI layer

"Telerik.Web.Desing 2010.1.415.35"

Grid is not rendering in IE10 browser(Without compatible mode).Its working with compatible mode but we need to render this grid on IE10 browser.

I am using <telerik:Grid> in aspx pages. I have downloded latest version(2013.3.1015) of Telerik and checked but still grid is not rendering properly.

Please suggest me what should need to be changed....


Venelin
Telerik team
 answered on 11 Dec 2013
5 answers
178 views
I am using Telerik version 2011. 
I have created RadGrid header by using the below code. Under Each header there are sub headers. Each Sub Header is a Rad Grid Column. Each column having Filter Column. Whenever I click on filter button throwing a error in Visual Studio with popup message "Microsoft JScript runtime error: '_data' is null or not an object"

 GridHeaderItem newSubHeaderItem = new GridHeaderItem(FuelSummaryGrid.MasterTableView, 0, 0);
        newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = "&nbsp;", BackColor = System.Drawing.Color.FromName("#61AAE6") });
        newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = "&nbsp;", BackColor = System.Drawing.Color.FromName("#61AAE6") });
       newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = Driving, ColumnSpan = 3, HorizontalAlign = HorizontalAlign.Center });
        newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = Shift, ColumnSpan = 3, HorizontalAlign = HorizontalAlign.Center });
        newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = Day, ColumnSpan = 3, HorizontalAlign = HorizontalAlign.Center });
        newSubHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = Week, ColumnSpan = 3, HorizontalAlign = HorizontalAlign.Center });
head.Controls.AddAt(0, newSubHeaderItem);

For the reference please find the images. 

Please help me how to resolve this issue.

Maria Ilieva
Telerik team
 answered on 11 Dec 2013
1 answer
75 views
Hi,

We have an issue in IE 7 and onwards in all Telerik releases after 2013.1.417.40.

Two of our pages use a grid with manually calculated footers which are then added in the Footer Event. I have rolled back through various versions of the telerik toolkit and found that the footer works as expected in 2013.1.417.40, but when I run it using all later releases the footer is offset with the manually built values appearing to the right of the grid.

Are there any known issues with this feature in subsequent releases?

It only appears to manifest itself when run through IE - all versions 7 to 11 - but is OK in Firefox and Chrome.

For the moment I have had to roll back to the 2013.1 release to avoid customer complaints.

David Penny
Venelin
Telerik team
 answered on 11 Dec 2013
1 answer
61 views
Hi,

I want to show Sum and Avg at the same time while clicking  custom aggregates in the header Context.

I am able to show the Total Sum and Avg . But how do i calculate the sum and Avg for groupby columns and show in the group Footer item.

Any example or thought on this?

Best regards,
Satz
Eyup
Telerik team
 answered on 11 Dec 2013
1 answer
40 views
I want a binding ICommand to the Click event of a button in ControlPanelitem. But it does not work. And I Binding SelectedValue of RadDatePicker control in ControlPanelItem and it also does not work.
Vasil
Telerik team
 answered on 11 Dec 2013
9 answers
737 views
After upgrading to the latest release, there is a border around all my image buttons inside of Radgrid columns.
Prior to the latest update, I had the following css which worked fine for everything

a img
{
    border: 0px !important;
}
Venelin
Telerik team
 answered on 11 Dec 2013
5 answers
67 views
When I tried using RadSearchBox, I found that the results drop down doesn't appear although the response is received successfully.
After some debugging, I found that the code appends the drop down element to the first FORM element it finds!
Here's the code:

b.DropDown.prototype = {
        initialize: function ()
        {
            a(document.body).find("form").prepend(this._element);
        }

ASP.Net restricts the existence of more than one FORM with runat=server, but I may have as many FORM elements as I want for other client side uses. Why supposing that there's only one FORM, while BODY should have been used for this, because there can't be more than one BODY.
Plamen
Telerik team
 answered on 11 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?