or
e.TimeSlot.CssClass = "Disabled"
Hi - In a Radgrid, I have a checkbox in HeaderTemplate. When the checkbox is checked, I already set to the Itemtemplate checkboxes selected. Now I need to perserve the selected rows on server-side.
I followed the link - http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-on-sorting.html
That link was working with CommandName and ItemCommand eventhandler. In my requirement,What eventhandler can I go with checkbox id that is in ItemTemplate and loop thru the selected rows in radgrid if the checkbox is selected.
Thanks in advance!

| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> |
| </telerik:RadScriptManager> |
| <asp:UpdatePanel ID="Upd1" runat="server"> |
| <ContentTemplate> |
| <div> |
| <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"> |
| <asp:ListItem>aaaaa</asp:ListItem> |
| <asp:ListItem>vvvvvv</asp:ListItem> |
| <asp:ListItem>ccccc</asp:ListItem> |
| <asp:ListItem>dddddd</asp:ListItem> |
| <asp:ListItem>eeewqewq</asp:ListItem> |
| </asp:DropDownList> |
| <br /> |
| <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
| <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> |
| <br /> |
| <telerik:RadComboBox ID="RadComboBox1" Runat="server"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" |
| Value="RadComboBoxItem1" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" |
| Value="RadComboBoxItem2" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" |
| Value="RadComboBoxItem3" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4" |
| Value="RadComboBoxItem4" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5" |
| Value="RadComboBoxItem5" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6" |
| Value="RadComboBoxItem6" /> |
| <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem7" |
| Value="RadComboBoxItem7" /> |
| </Items> |
| </telerik:RadComboBox> |
| </div> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Web; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| namespace WebApplication1 |
| { |
| public partial class WebForm1 : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| TextBox1.Text = DropDownList1.SelectedValue; |
| } |
| } |
| } |
<telerik:RadListBox ID="lbCostCentre" runat="server" Height="550px" Width="270px" AllowTransfer="True" AllowTransferOnDoubleClick="True" AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True" EnableDragAndDrop="True" SelectionMode="Multiple" TransferToID="lbAssignedCostCentre" AutoPostBack="True" EnableTheming="False"> <ButtonSettings TransferButtons="Common" ShowTransferAll="False"> </ButtonSettings> </telerik:RadListBox>
ItemDataBound event depending upon some condition.But in export to excel its not get persited.
Is there any way to achive this?
.
Thanks.
