If EnableDragAndDrop="true" the Textbox in ItemTemplate is not editable. Interestingly, I can right-click in the TextBox and it becomes editable but normal left-click does nothing. Setting EnableDragAndDrop="false" makes everything work normally.
Seems like a bug to me, but is there some type of work-around or additional property that needs to be set? Thanks!
The following code works fine, but setting EnableDragAndDrop="true" stops the TextBox from being edited (unless you right-click it as mentioned prior).
<telerik:RadListBox ID="RadListBox2" runat="server" AllowReorder="true" Width="300px" Height="400px" EnableDragAndDrop="false" AutoPostBackOnReorder="true" AutoPostBackOnTransfer="true" > <Items> <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" /> <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" /> </Items> <ItemTemplate> <div > <div> <%# DataBinder.Eval(Container, "Text")%> </div> <div> <div style="float:left;"> <asp:CheckBox ID="chkShowTitle" runat="server" Text="Checkbox" /> </div> <div style="float:right;"> Title <asp:TextBox ID="txtTitle" runat="server" /> </div> </div> </div> </ItemTemplate></telerik:RadListBox><telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Width="100%" Height="600px" ExplorerMode="FileTree" onclientitemselected="OnClientItemSelected" OnClientLoad="OnFileExplorerLoad" VisibleControls="TreeView, Grid, Toolbar, ContextMenus" TreePaneWidth="100%" BorderColor="Transparent" BorderStyle="None" EnableCopy="True" EnableOpenFile="False" MaxUploadFileSize="2147483647" ViewStateMode="Enabled"> </telerik:RadFileExplorer>using (SqlConnection connection = new SqlConnection(newConnect)) { // Create the Command and Parameter objects; SqlCommand command = new SqlCommand(queryString, connection); // Open the connection in a try/catch block; // Create and execute the DataReader; try { connection.Open(); SqlDataReader reader = command.ExecuteReader(); while (reader.Read()) { UsernameDB = (reader[1]).ToString(); listViewPaths.Add(reader.GetString(3)); listUploadDeletePaths.Add(reader.GetString(4)); WebPageTitle = (reader[5]).ToString(); } reader.Close(); } catch (Exception ex) { } } } } Page.Title = WebPageTitle; RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray(); RadFileExplorer1.Configuration.UploadPaths = listUploadDeletePaths.ToArray(); RadFileExplorer1.Configuration.DeletePaths = listUploadDeletePaths.ToArray();Team
I am using radalert in my application.
I have a requirement to close radalert box on ESC key press.
I have done some search & found the following link
Is it available in DLL V2011.3.1115.40?
Can you please let me know whether it is possible or not & if yes then please let me know How I can implement this?
<telerik:AjaxSetting AjaxControlID="_btnSearch" EventName="OnClick" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/> </UpdatedControls> </telerik:AjaxSetting><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %><!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>Untitled Page</title></head><body> <form id="form1" runat="server" autocomplete="false"> <div> <telerik:RadScriptManager ID="RadScriptManager" runat="server"> </telerik:RadScriptManager> <!-- content start --> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="_btnSearch" EventName="OnClick" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"/> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="300px" OnLoad="RadAjaxPanel1_Load" > <table> <tr> <td style="width: 150px;"> Search By</td> <td style="width: 5px;"> :</td> <td style="width: 150px;"> <asp:DropDownList ID="_cboSearchBy" runat="server" Width="150px"> </asp:DropDownList> </td> <td style="width: 25px"> <asp:TextBox ID="_txtPrefix" runat="server" Width="25px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td> <td style="width: 200px;"> <asp:TextBox ID="_txtFind" runat="server" Width="200px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td> <td style="width: 25px"> <asp:TextBox ID="_txtSuffix" runat="server" Width="25px" AutoPostBack="false" AutoCompleteType="none"></asp:TextBox></td> <td style="width: 50px"> <asp:Button ID="_btnSearch" runat="server" Text="Search" Width="50px" OnClick="_btnSearch_Click" /> </td> </tr> </table> </telerik:RadAjaxPanel> <telerik:RadGrid ID="RadGrid1" Width="97%" AllowPaging="True" PageSize="15" runat="server" AllowSorting="true" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" OnItemCommand="RadGrid1_ItemCommand"> <MasterTableView Width="100%" EditMode="" AllowAutomaticUpdates="false"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" EditText="Edit" HeaderStyle-Width="30" ItemStyle-Width="30" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="center"> </telerik:GridEditCommandColumn> </Columns> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> <FilterMenu EnableTheming="True"> <CollapseAnimation Duration="200" Type="OutQuint" /> </FilterMenu> </telerik:RadGrid> <!-- content end --> </div> </form></body></html>public DataTable GetDataTable(string query) { String ConnString = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString; SqlConnection conn = new SqlConnection(ConnString); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.SelectCommand = new SqlCommand(query, conn); DataTable myDataTable = new DataTable(); conn.Open(); try { adapter.Fill(myDataTable); } finally { conn.Close(); } return myDataTable; } protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"); } protected void _btnSearch_Click(object sender, EventArgs e) { if (_txtFind.Text.Trim()!="") RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers where CustomerID='" + _txtFind.Text.Trim() + "'"); else RadGrid1.DataSource = GetDataTable("SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM Customers"); RadGrid1.Rebind(); } protected void RadAjaxPanel1_Load(object sender, EventArgs e) { } protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { //e.Canceled = true; }