or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="SPAC.Web.Paginas.test" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <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> <telerik:RadAjaxManager runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btn"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="lbl" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div> <telerik:RadAjaxPanel runat="server" HorizontalAlign="NotSet" ID="pnl"> <asp:Button runat="server" Text="test" ID="btn" OnClick="btn_OnClick"/> <asp:Label runat="server" Text="test" ID="lbl"></asp:Label> </telerik:RadAjaxPanel> </div> </form></body></html>protected void btn_OnClick(object sender, EventArgs e) { lbl.Text = "nada"; }<telerik:RadGrid ID="AXXRadGrid" runat="server" GridLines="None" AllowAutomaticUpdates="True" OnItemCommand="AXXRadGrid_ItemCommand" OnItemDataBound="AXXRadGrid_ItemDataBound" AutoGenerateColumns="false" OnSortCommand="AXXRadGrid_SortCommand" AllowMultiRowSelection="true" OnItemCreated="AXXRadGrid_ItemCreated" DataSourceID="RequestMasterDataSource" OnHTMLExporting="AXXRadGrid_HTMLExporting" OnExportCellFormatting="AXXRadGrid_ExcelExportCellFormatting"> <ExportSettings HideStructureColumns="true" /> <MasterTableView TableLayout="Auto" RetrieveDataTypeFromFirstItem="true" CommandItemDisplay="Top"> <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false" /> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="True"></Selecting> <Scrolling AllowScroll="false"></Scrolling> <Resizing ResizeGridOnColumnResize="True" AllowRowResize="True" AllowColumnResize="True" /> <ClientMessages DragToGroupOrReorder="Drag to group" /> </ClientSettings> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"> </HeaderContextMenu> </telerik:RadGrid><table class="rgMasterTable" border="0" id="ctl00_m_g_b8cf9c0d_003b_4572_a197_c425836f7d6f_ctl00_AXXRadGrid_ctl00" style="width:100%;table-layout:auto;empty-cells:show;"> <colgroup> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> <col style="width:60px"> </colgroup><thead> <tr style="background-color:#EF5D63;display:none;"> <th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl00','')">SR Number</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl01','')">Client Name</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl02','')">Column 1</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl03','')">Column 2</a> <input type="button" name="ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl04" value=" " onclick="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl04','')"></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl05','')">Column 3</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl06','')">Column 4</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl07','')">Column 5</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl08','')">Column 6</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl09','')">Column 7</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl10','')">Column 8</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl11','')">Column 9</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl12','')">Column 10</a></th><th scope="col"><a title="Click here to sort" href="javascript:__doPostBack('ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl02$ctl02$ctl13','')">Column 11</a></th> </tr> </thead><tfoot> <tr class=" rgPager"> <td colspan="13"><table summary="Data pager which controls on which page is the RadGrid control." border="0" style="width:100%;border-spacing:0;"> <caption> <span style="display: none">Data pager</span> </caption><thead> <tr> <th scope="col"></th> </tr> </thead><tbody> <tr> <td class="rgPagerCell NextPrev"><div class="rgWrap rgArrPart1"> Change page: <input type="button" name="ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl02" value=" " onclick="return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl02", "", true, "", "", false, true))" title="First Page" class="rgPageFirst"> <input type="button" name="ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl03" value=" " onclick="return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl03", "", true, "", "", false, true))" title="Previous Page" class="rgPagePrev"><input type="button" name="ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl04" value=" " onclick="return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl04", "", true, "", "", false, true))" title="Next Page" class="rgPageNext"> <input type="button" name="ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl05" value=" " onclick="return false;WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_b8cf9c0d_003b_4572_a197_c425836f7d6f$ctl00$AXXRadGrid$ctl00$ctl03$ctl01$ctl05", "", true, "", "", false, true))" title="Last Page" class="rgPageLast"> </div><div class="rgWrap rgInfoPart"> Page <strong>1</strong> of <strong>1</strong>, items <strong>0</strong> to <strong>0</strong> of <strong>0</strong>. </div></td> </tr> </tbody> </table></td> </tr> </tfoot><tbody> <tr class="rgNoRecords"> <td colspan="13" style="text-align:left;"><div>No records to display.</div></td> </tr> </tbody></table><asp:ObjectDataSource ID="ods_EDICustomerCodes" runat="server" SelectMethod="SelectEDICustomerCode" InsertMethod="InsertEDICustomerCode" UpdateMethod="UpdateEDICustomerCode" DeleteMethod="DeleteEDICustomerCode" TypeName="App.BLLEDIIntegration.DS.EDICustomerCodeDS" DataObjectTypeName="App.BLLEDIIntegration.Models.EDICustomerCodeObj"> <SelectParameters> <asp:QueryStringParameter DefaultValue="0" Name="EDICustomerID" QueryStringField="EDICustomerID" Type="Int32" /> <asp:Parameter DefaultValue="1" Name="active" Type="Int32" /> </SelectParameters></asp:ObjectDataSource><telerik:RadGrid ID="RadGrid1" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnItemInserted="ItemInserted" OnItemUpdated="ItemUpdated" OnItemDeleted="ItemDeleted" OnPreRender="PreRender" OnBatchEditCommand="BatchEdit" DataSourceID="ods_EDICustomerCodes" runat="server" AutoGenerateColumns="False" Skin="Windows7" GridLines="Both" AutoGenerateDeleteColumn="True" > <MasterTableView CommandItemDisplay="TopAndBottom" EditMode="Batch" DataKeyNames="EDICustomerCodeID" OverrideDataSourceControlSorting="true" DataSourceID="ods_EDICustomerCodes"> <BatchEditingSettings EditType="Row" /> <Columns> <telerik:GridBoundColumn DataField="EDICustomerCodeID" HeaderText="EDICustomerCodeID" UniqueName="EDICustomerCodeID" DataType="System.Int32" Display="false" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="EDICustomerID" DataType="System.Int32" HeaderText="EDICustomerID" UniqueName="EDICustomerID" Display="False" DefaultInsertValue='<%= Request["EDICustomerID"] %>'> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="EDICustomerCode" HeaderText="EDICustomerCode" UniqueName="EDICustomerCode"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Priority" DataType="System.Int32" HeaderText="Priority" UniqueName="Priority"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Active" DataType="System.Int32" Display="False" HeaderText="Active" UniqueName="Active"> </telerik:GridBoundColumn> </Columns> </MasterTableView></telerik:RadGrid>namespace App.BLLEDIIntegration.DS { public class EDICustomerCodeDS { // Select public List<EDICustomerCodeObj> SelectEDICustomerCode( int EDICustomerID, int active ) { List<EDICustomerCodeObj> customerCodes = BLLData.RetrieveList<EDICustomerCodeObj>( true, "EDIIntegration!GetEDICustomerCodes", new BLLParameterList( "@EDICustomerID", EDICustomerID, "@Active", active ) ); return customerCodes; } // Insert public void InsertEDICustomerCode(EDICustomerCodeObj cc){ BLLData.SaveData( true, "EDIIntegration!AddCodeToEDICustomer", new BLLParameterList( "@EDICustomerID", cc.EDICustomerID,
"@EDICustomerCode", cc.EDICustomerCode,
"@Priority", cc.Priority,
"@Active", 1
) ); } // Update public void UpdateEDICustomerCode(EDICustomerCodeObj cc) { BLLData.SaveData(true,"EDIIntegration!UpdateEDICustomerCode", new BLLParameterList("@EDICustomerCodeID", cc.EDICustomerCodeID, "@EDICustomerID", cc.EDICustomerID, "@EDICustomerCode", cc.EDICustomerCode, "@Priority", cc.Priority, "@Active", cc.Active ) ); } // Delete public void DeleteEDICustomerCode(EDICustomerCodeObj cc) { BLLData.SaveData( true, "EDIIntegration!DeactivateEDICustomerCode", new BLLParameterList( "@EDICustomerCodeID", cc.EDICustomerCodeID ) ); } }}namespace App.BLLEDIIntegration.Models { [Serializable] public partial class EDICustomerCodeObj { public int EDICustomerCodeID { get; set; } public int EDICustomerID { get; set; } public string EDICustomerCode { get; set; } public int Priority { get; set; } public int Active { get; set; } }}<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %><!DOCTYPE html><html><head runat="server"> <title>Telerik Decorator Bug # 4</title> <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" RenderMode="Classic" DecoratedControls="Default, Select" /> <script type="text/javascript"> //Put your JavaScript code here. </script> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <div> <asp:DropDownList ID="DropDownList1" runat="server"> </asp:DropDownList> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form></body></html>using System;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Configuration;using System.Web.Security;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using Telerik.Web.UI;using System.Collections.Generic;public partial class Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { Dictionary<int, string> values = new Dictionary<int, string>(); for (int i = 0; i < 50; i++) { values[i] = string.Format("4th Decortor/Select Bug : {0}", i); } DropDownList1.AppendDataBoundItems = true; DropDownList1.Items.Insert(0, new ListItem("")); DropDownList1.DataSource = values; DropDownList1.DataTextField = "Value"; DropDownList1.DataValueField = "Key"; DropDownList1.DataBind(); DropDownList1.SelectedIndex = -1; }}