Hi,
I am using the Tree List control with Auto Generate Columns
set to false. I want to use in place editing, but the documentation states that
in place editing is only for Auto Generate Columns. I have placed an HTML text
box in an item template with an onClick event.
<input id="txtDescription" type="text" value="<%# Eval("Description") %>" onclick="Field_onClick(this, false);" onblur="Field_onBlur(this);" readonly="readonly" />
function Field_onClick(txt,
allowBlank) {
if (_mode == mode.Params)
{
_tlConfig.AllowEdit = true;
txt.readOnly = '';
txt.focus();
}
}
The problem is that I have to click on the text box twice
before I can edit it contents. Is there a way around this problem?
Thanks, Paul.
<telerik:RadAsyncUpload ID="RadAsyncUpload1" AllowedFileExtensions="JPG,gif,png,jpg,tif,tiff" MaxFileInputsCount="3" OnClientValidationFailed="OnClientValidationFailed" OnFileUploaded="RadAsploayncUd1_FileUploaded" runat="server" ChunkSize="0" Culture="it-IT" PostbackTriggers="pulsante"></telerik:RadAsyncUpload>
<asp:Button runat="server" ID="pulsante" Text="Aggiorna profilo" OnClick="Button1_Click" />
//and in the code:
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
{
RadAsyncUpload1.TargetFolder = "~/App_CProfili/ImgProfili/";
}
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)| <telerik:RadNumericTextBox runat="server" ID="neNumValues" MinValue="1" MaxValue="30" DbValue='<%# Bind("NumItems") %>' NumberFormat-DecimalDigits="0" Width="60px" ShowSpinButtons="True" ShowButton="False" DataType="System.Int32"> |
| </telerik:RadNumericTextBox> |
| Ausnahmeinformation: |
| Ausnahmetyp: System.Web.HttpParseException |
| Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden. |
| Information zu interner Ausnahme (Ebene 1): |
| Ausnahmetyp: System.Web.HttpParseException |
| Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden. |
| Information zu interner Ausnahme (Ebene 2): |
| Ausnahmetyp: System.Web.HttpException |
| Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden. |
RadGrid ReportData = new RadGrid();ReportData.DataSource = datasourceReportData.DataBind();ReportData.ExportSettings.OpenInNewWindow = true;ReportData.ExportSettings.ExportOnlyData = true;ReportData.ExportSettings.IgnorePaging = true;ReportData.ExportSettings.FileName = ReportName.Replace(" ", "_") + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Day.ToString() + "_" + DateTime.Now.Year.ToString();ReportData.MasterTableView.ExportToExcel();
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"> <MasterTableView autogeneratecolumns="False" datakeynames="id" datasourceid="SqlDataSource1"> <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridButtonColumn CommandName="download_file" Text="Download" UniqueName="Download" HeaderText="Download"></telerik:GridButtonColumn> <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="file_name" FilterControlAltText="Filter file_name column" HeaderText="file_name" SortExpression="file_name" UniqueName="file_name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="file_url" FilterControlAltText="Filter file_url column" HeaderText="file_url" SortExpression="file_url" UniqueName="file_url"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"></FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu> </telerik:RadGrid>protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName == "download_file") { string filename=e.CommandArgument.ToString(); string path=MapPath("~/files/" + filename); byte []bts=System.IO.File.ReadAllBytes(path); Response.Clear(); Response.ClearHeaders(); Response.AddHeader("Content-Type", "Application/octet-stream"); Response.AddHeader("Content-Length",bts.Length.ToString()); Response.AddHeader("Content-Disposition","attachment; filename=" + filename); Response.BinaryWrite(bts); Response.Flush(); Response.End(); } }I am using column filter with FilterDelay, when i key in a word, letter by letter, the grid results narrows down the result accordingly when i press a letter.
However, when i press "Backspace" the results does not grow back to the initial results.
Eg:
"C" - shows 10 rows
"Co" - shows 6 rows
"Con" - shows 2 rows
When I press "backspace"
"Co" - still showing 2 rows instead of 6.
How can i trigger the search results when "backspace" is pressed?