<style type="text/css"> .reLeftVerticalSide, .reRightVerticalSide, .reToolZone, .reToolCell { background: white transparent !important; text-align: left; overflow: auto; } .RadEditor table, .reToolbar, .reToolbar li, .reTlbVertical, .reDropDownBody ul, .reDropDownBody ul li, .RadWindow table, .RadWindow table td, .RadWindow table td ul, .RadWindow table td ul li { margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none !important; } .reWrapper_corner, .reWrapper_center, .reLeftVerticalSide, .reRightVerticalSide, .reToolZone, .reEditorModes, .reResizeCell, .reToolZone table td, .RadEditor .reToolbar, .RadEditor .reEditorModes { border: 0 !important; } .reToolbar li, .reToolbar ul li, .reInsertTable .reTlbVertical .reToolbar li { float: left !important; clear: none !important; border: 0 !important; } </style>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server" />
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX= "true" EnableEmbeddedScripts="true" >
</
telerik:RadAjaxManager>
<
telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
<asp:GridView ID="GV_EmpStatus" runat="server" AutoGenerateColumns="False" Width="264px">
<Columns>
<asp:TemplateField HeaderText="Code">
<ItemTemplate>
<asp:LinkButton ID="employmentStatusCode" Width="50px" runat="server" OnClick="Get_EmpStatusReason"
Text='<%#DataBinder.Eval(Container.DataItem, "employmentStatusCode")%>'>
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<asp:TextBox ID="employmentStatusDesc" BorderStyle="None" Width="170px" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem, "employmentStatusDesc")%>'>
</asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="btnupdate1" runat="server" ImageUrl="../Image/pencil2.gif" OnClick="GV1_update"
ToolTip="Update" OnClientClick="if(!ValidateDesc(this,'btnupdate1','employmentStatusDesc')) {return false}else {return true};"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<SelectedRowStyle BackColor="Transparent" Font-Bold="True" />
<HeaderStyle BackColor="#E0E0E0" />
</asp:GridView>
</
telerik:RadAjaxPanel>
</form>
<telerik:RadTreeList ID="RadTreeList1" runat="server" AllowMultiItemEdit="False" AllowPaging="True" Culture="(Default)" DataKeyNames="SousThemeID" ParentDataKeyNames="SousThemThemeID" AutoGenerateColumns="True" DataSourceID="SqlDataSource1" IsItemInserted="False"><ValidationSettings CommandsToValidate="PerformInsert,Update"></ValidationSettings> <Columns> <telerik:TreeListBoundColumn UniqueName="column"></telerik:TreeListBoundColumn> </Columns><EditFormSettings EditFormType="AutoGenerated"></EditFormSettings></telerik:RadTreeList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ContenuConnectionString %>" SelectCommand="SELECT [SousThemeID], [SousThemLibelle], [SousThemThemeID] FROM [SousTheme]"> </asp:SqlDataSource>I have 4 RadTextBoxes on my form. I'm using txtComments.Text to get the text the user has entered. However, The text property is blank. Is there something I'm missing?
ASPX:
<telerik:RadTextBox ID="txtDocumentReviewer" runat="server" MaxLength="1500" Skin="DMID" EnableEmbeddedSkins="False" Columns="50" Rows="5" TextMode="MultiLine" > </telerik:RadTextBox>
C#:
oProfile.DocumentReviewerComments = txtDocumentReviewer.Text;
ScriptManager.RegisterClientScriptBlock(
Me, Me.GetType, "clientScript", "alert('Rates has Updated Successfully');", True). Can any give me any solution for this.
Hi,
I have a RadCombo with the following event : OnClientSelectedIndexChanging which contains a call to a web service which returns a value. Depending on the value I may need to cancel the change. I have a callback function attached to the webservice.
How would I going about cancelling the change if I needed to?
Thanks
using System;using System.Collections.Generic;using System.Linq;using System.Web;using OSIRISModel;namespace Telerik.Web.UI.OSIRIS{ /// <summary>Summary description for OS_JobStatusComboBox</summary> public class OS_JobStatusComboBox : RadComboBox { #region Constructor public OS_JobStatusComboBox() { // // TODO: Add constructor logic here // } #endregion #region Control Events protected override void OnLoad(EventArgs e) { if (!Page.IsPostBack) { OSIRISEntities context = ((OSIRISPage)Page).OSIRISContext; List<JobStatu> items = context.JobStatus.ToList<JobStatu>(); this.DataTextField = "Description"; this.DataValueField = "ID"; this.DataSource = items; this.RegisterWithScriptManager = false; this.AppendDataBoundItems = true; this.Items.Insert(0, new RadComboBoxItem("Select a Job Status", "")); this.SelectedIndex = 0; } } // This is to prevent double-binding in cases where this control is used inside another control that causes Child Databinding (such as Formview) private bool Bound = false; protected override void OnDataBound(EventArgs e) { Bound = true; } protected override void OnPreRender(EventArgs e) { if (Bound == false) { this.DataBind(); } } #endregion }}| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| If Not Page.IsPostBack Then |
| AddTab("Custom1") |
| AddTab("Custom2") |
| End If |
| End Sub |
| Private Sub AddTab(ByVal tabName As String) |
| Dim tab As New RadTab() |
| tab.Text = tabName |
| RadTabStrip1.Tabs.Add(tab) |
| Dim pageView As New RadPageView() |
| pageView.ID = tabName |
| RadMultiPage1.PageViews.Add(pageView) |
| End Sub |
| Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated |
| Dim userControlName As String = e.PageView.ID + ".ascx" |
| Dim userControl As Control = Page.LoadControl(userControlName) |
| userControl.ID = e.PageView.ID + "_userControl" |
| e.PageView.Controls.Add(userControl) |
| End Sub |
| <script type="text/javascript"> |
| var tabStrip = $find("<%= RadTabStrip1.ClientID %>"); |
| var multiPage = $find("<%= RadMultiPage1.ClientID %>"); |
| var tab = tabStrip.findTabByText(tabText); |
| var pageView = tab.get_pageView(); |
| var tabtabToSelect = tab.get_nextTab(); |
| if (!tabToSelect) |
| tabtabToSelect = tab.get_previousTab(); |
| tabStrip.get_tabs().remove(tab); |
| multiPage.get_pageViews().remove(pageView); |
| if (tabToSelect) |
| tabToSelect.set_selected(true); |
| </script> |
| <telerik:RadTabStrip Style="position: absolute; top: 84px;" ID="RadTabStrip1" SelectedIndex="0" |
| runat="server" MultiPageID="RadMultiPage1"> |
| <TabTemplate> |
| <%# DataBinder.Eval(Container, "Text") %> |
| <img style="margin-left: 10px" src="img/close.png" alt="delete" onclick="deleteTab('<%# DataBinder.Eval(Container, "Text") %>')" /> |
| </TabTemplate> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage Style="position: absolute; top: 134px;" ID="RadMultiPage1" |
| runat="server" SelectedIndex="0"> |
| </telerik:RadMultiPage> |
| </div> |