Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
141 views

I would like to take files selected, and automatically "Upload" them to my site without having to see the list of files or use another button?

 

Is this possible?

 

Thanks

 

Rog

Peter Milchev
Telerik team
 answered on 30 Sep 2019
3 answers
74 views

Hello sir,

Is it possible to have the favorite option for my radwindow object ?

 

thank you for your reply.

Rumen
Telerik team
 answered on 27 Sep 2019
7 answers
507 views
Hi,
I wanted to find out if copy from excel to Telerik ASP.net Grid is supported. I am looking for the ability for users to just copy the data from excel sheet in to the grid. And then the grid should be able to update the data to database. To start with, the grid should have rows, but no data in it (Like a blank spread sheet). To this, the excel data will be pasted to. This is a very important feature for my team , so please let me know, if this is possible to be done.
Regards
Nikolay
Telerik team
 answered on 27 Sep 2019
1 answer
105 views

I want export with image in the hierarchy Grid

1    biff can support image but not support hierarchy

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/export-formats/excel-biff-export

 

2. Other(HTML,XML) not support image export

 

Can you help me,how to export with image in the hierarchy Grid?

Rumen
Telerik team
 answered on 26 Sep 2019
4 answers
164 views

I'm exporting a RadGrid to excel using the BIFF format, but i can't find a way to set the exported excel file metadata properties like (Author, Tags, Categories...etc)

i know that when using HTML format there's GridHTMLExportingEventArgs e.XmlOptions property that we can use, but how can we do the same for BIFF format?

Attila Antal
Telerik team
 answered on 26 Sep 2019
19 answers
717 views
Hi ALl,

This is an odd one.  I am using a tree view object with a node template,  inside the node template I add in at the server a variety of fields including a basic text box.  They all work fine but for the fact that pressing space inside the text box does nothing....  However if I do some notes in another application then copy and paste them into the textbox any spaces carry over.  

Any idea why this may be happening.  Code for textbox is below

Dim _uxNotes As RadTextBox = New RadTextBox()
_uxNotes.ID = "uxNotes"
_uxNotes.Enabled = True
_uxNotes.Width = 200
AddHandler _uxNotes.DataBinding, AddressOf UxNotes_DataBinding
container.Controls.Add(_uxNotes)

Regards,

Jon
Eyup
Telerik team
 answered on 26 Sep 2019
1 answer
157 views

I have a grid that will bind upon choosing date with RadDatePicker and code in RadComboBox.
I have set the combo box like this:

<telerik:RadComboBox DropDownAutoWidth="Enabled" ID="cboCode" runat="server" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"></telerik:RadComboBox>

 

When I choose more that 4 options, click the Search button, the grid shows the searched data but when i click the export to excel button, it exported nothing.

Meanwhile, if I choose less than 4 options, the data did get exported in the excel - please refer image attached.

 

Below is the code for export setting:

<ExportSettings ExportOnlyData="true" Excel-Format="Biff" IgnorePaging="true" ></ExportSettings>
 
<MasterTableView AllowMultiColumnSorting="true" DataKeyNames="some column name here" AllowNaturalSort="true" CommandItemDisplay="Top" UseAllDataFields="true">

 

 

Attila Antal
Telerik team
 answered on 25 Sep 2019
1 answer
112 views

Hi,

In the latest 2019.3.917 release there is a scripting error if setting animation duration to zero. It happens on open. This error is also in your demo (if setting duration to 0):

https://demos.telerik.com/aspnet-ajax/datepicker/overview/defaultcs.aspx

This scripting error was not present in earlier versions.

The effect of this error is that the opened event isn't raised!

Regards
Andreas

Eyup
Telerik team
 answered on 25 Sep 2019
1 answer
146 views

I'm trying to create a scenario where the upload must contain exactly 9 files and a way to validate that each one exists.

Is there a way to grab the process, perhaps client side that would allow me perform this check? The methods I've found so far seem to operate on one file uploaded at a time rather than being to examine the entire batch before sending the files. Thanks.

Peter Milchev
Telerik team
 answered on 24 Sep 2019
1 answer
483 views
I added a dropdownlist to an autogenerated grid in code behind, however, I am unable to get the selected value when the row is updated.  I add the dropdownlist as follows:

protected void grdAssetImport_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem edit = (GridEditableItem)e.Item;
 
        TextBox txt = (TextBox)edit["AssetTypeName"].Controls[0];
        txt.Visible = false;
        DropDownList rddl = new DropDownList();
        PortalView.LookupListBO list = LookupListBA.LookupList_GetByKey(DB_Context, "SITE_ASSETTYPE_LIST", UtilityBA.IsActiveChoice.Active);
        List<PortalView.LookupListItemBO> oList = LookupListBA.LookupListItem_GetList_ByLookupListId(DB_Context, list.LookupListId, (Guid)Current.Employee.SiteId);
        var AssetList = oList.Select(l => new { AssetTypeName = l.Name });

        rddl.ID = "ddlAssetTypeName";

        rddl.AutoPostBack = false;
        rddl.DataSource = AssetList;
        rddl.DataTextField = "AssetTypeName";
        rddl.DataValueField = "AssetTypeName";
        rddl.DataBind();
 
        edit["AssetTypeName"].Controls.Add(rddl);
    }
}

 

 

I try to use the follow update command, but neither attempt to capture the dropdownlist works and when it gets to the actual column it only sees the textbox in the column and never finds the dropdownlist at all:

protected void grdAssetImport_UpdateCommand(object sender, GridCommandEventArgs e)
{
    GridEditableItem editedItem = e.Item as GridEditableItem;
    GridEditManager editMan = editedItem.EditManager;
    foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
    {
        GridEditableItem editableItem = e.Item as GridEditableItem;
        DropDownList ddl = editableItem.FindControl("ddlAssetTypeName") as DropDownList;
        if(ddl != null)
        {
            string assetType = ddl.SelectedValue;
 
        }
 
            DropDownList ddl2 = editableItem["AssetTypeName"].Controls[0] as DropDownList;
            if(ddl2 != null)
            {
                string assetType = ddl.SelectedValue;
            }
 
 
        if (column is IGridEditableColumn)
        {
            IGridEditableColumn editableCol = (column as IGridEditableColumn);
            if (editableCol.IsEditable)
            {
                IGridColumnEditor editor = editMan.GetColumnEditor(editableCol);
                string editorText = "unknown";
                object editorValue = null;
                if (editor is GridTextColumnEditor)
                {
                    editorText = (editor as GridTextColumnEditor).Text;
                    editorValue = (editor as GridTextColumnEditor).Text;
                }
                if (editor is GridBoolColumnEditor)
                {
                    editorText = (editor as GridBoolColumnEditor).Value.ToString();
                    editorValue = (editor as GridBoolColumnEditor).Value;
                }
                if (editor is GridDropDownColumnEditor)
                {
                    editorText = (editor as GridDropDownColumnEditor).SelectedText + "; " +
                     (editor as GridDropDownColumnEditor).SelectedValue;
                    editorValue = (editor as GridDropDownColumnEditor).SelectedValue;
                }
                try
                {
                    DataRow[] changedRows = this.AssetGridDataSource.Select("Id = " + editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["Id"].ToString());
                    changedRows[0][column.UniqueName] = editorValue;
                    this.AssetGridDataSource.AcceptChanges();
                    GetSearchColumns();
                }
                catch (Exception ex)
                {
                    // Label1.Text = "<strong>Unable to set value of column '" + column.UniqueName + "'</strong> - " + ex.Message;
                    e.Canceled = true;
                    break;
                }
            }
        }
    }
}

 

Any assistance is greatly appreciated as I am on day 4 of trying to get this working.

Eyup
Telerik team
 answered on 24 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?