function
ShowUpdateForm()
{
window.radopen("REPUpdate.aspx","RW1");
return false;
}
I call this function from an update on the server side by using the "InjectScriptLabel" solution.InjectScriptLabel.Text =
"<script>ShowUpdateForm();</script>"
When the page goes to run my function I get this script error:<
telerik:RadWindowManager ID="rwm1" runat="server" Skin="Office2007" Behavior="Default"
InitialBehavior="None" Left="" Top="">
<Windows>
<telerik:RadWindow ID="RW1" runat="server" Behavior="Default" InitialBehavior="None"
Left="" NavigateUrl="" Style="display: none;" Top="" Title="REP Code Changes"
Height="200px" Width="450px" Modal="True" ReloadOnShow="true" >
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
It seems to me the window.radopen command is not being recgonized.
Any thoughts?
var selectedNode = embeddedTree.get_selectedNode();
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.
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. |
|
<%@ 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>
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....