Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
600 views

I want to save appointment data that selected by user in database. I haven't found any solution on telerik site. 

Please help me on this issue. 

Peter Milchev
Telerik team
 answered on 16 Apr 2020
1 answer
279 views

I have a rad list box as follows:

<telerik:RadListBox runat="server" ID="RadListBox1" Height="375px" Width="750px" DataSourceID="SqlDataSource2"
    AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true" ButtonSettings-ShowReorder="true"
    AllowAutomaticUpdates="true" DataKeyField="SectionSort_ID" DataTextField="Header_Title" DataValueField="Header_Image" DataSortField="SectionSort_SortOrder"SelectionMode="Multiple">
    <ItemTemplate>
        <telerik:RadNumericTextBox RenderMode="Lightweight" runat="server" ID="ItemNo" Width="60px" MinValue="1"
            MaxValue="50" ShowSpinButtons="true" Value='1' NumberFormat-DecimalDigits="0" Skin="Bootstrap">
        </telerik:RadNumericTextBox>
        <img class="product-image" src='<%# DataBinder.Eval(Container, "Value")%>'>
        <span class="product-title"><%# DataBinder.Eval(Container, "Text")%></span>
    </ItemTemplate>
</telerik:RadListBox>

 

I want to set the RadNumericTextBox value in the databound event

I have tried the following:

Protected Sub RadListBox1_ItemDataBound(sender As Object, e As RadListBoxItemEventArgs) Handles RadListBox1.ItemDataBound
    If TypeOf e.Item Is RadListBoxItem Then
        Dim item = CType(e.Item, RadListBoxItem)
        Dim ItemNo As RadNumericTextBox = CType(item.FindControl("ItemNo"), RadNumericTextBox)
        ItemNo.Value = e.Item.DataItem("SectionSort_ItemNo")
    End If
End Sub

 

But I get this:

 

Specified cast is not valid.

based on this line

ItemNo.Value = e.Item.DataItem("SectionSort_ItemNo")

So basically how do i set the value of the text box in the databound event?

 

 

 

 

 

 

 

 

 

 

Jon
Top achievements
Rank 2
Veteran
 answered on 16 Apr 2020
5 answers
529 views

Hi All,

I have a radEditor that is being used as email template creator for email blasting. User can select image they want to put on their template.

Now the issue is email received does not display any images added to the template.

I have already added <telerik:RadEditor ContentFilters="MakeUrlsAbsolute,FixEnclosingP" ...

but to no avail. Still cant show images.

Thanks in advance,

Ryan

Rumen
Telerik team
 answered on 15 Apr 2020
4 answers
186 views

     Here is my code.  I am getting a yellow icon on the upload control and it is not uploading.

HTML

telerik:RadCloudUpload ID="CloudUpload" runat="server" MultipleFileSelection="Automatic" HttpHandlerUrl="~/UploadToCustomFolderHandler.ashx"  
OnClientFileSelected="onClientFileSelected" OnFileUploaded="CloudUpload_FileUploaded" AllowedFileExtensions="xlsx,xls,doc,pdf,docx,png,tiff" ProviderType="Azure">
</telerik:RadCloudUpload> 

JS

function onClientFileSelected(sender, args) {    
        var UBID =  document.getElementById('<%= hfUBID %>').value
        sender._module._handlerUrl = "/UploadToCustomFolderHandler.ashx?UBID=" + UBID;
}

It never gets to the HttpHandlerUrl as I have a break point set if it does. 

Here is the code in the handler that is not getting data.

string ubid = HttpContext.Current.Request["UBID"];

Peter Milchev
Telerik team
 answered on 15 Apr 2020
3 answers
245 views
Hello,

Is it possible to do Image Processing using RAD controls?

Jayanthi
Vessy
Telerik team
 answered on 15 Apr 2020
1 answer
184 views

Hi Team,

We have upgraded following dll from Telerik.Web.UI.dll (2014.2.724.45) to Telerik.Web.UI.dll (2020.1.219.45)
& RadEditorSharePoint.dll(7.4.1.0) to RadEditorSharePoint.dll (7.21.1.0) in SharePoint 2013 environment.

Before upgrading the dll, doclink is displaying along with icon on the SharePoint page, but after upgrading the dll, only doclink is getting displayed on the SharePoint page.

How to fix this issue. please suggest.

 

Rumen
Telerik team
 answered on 15 Apr 2020
1 answer
148 views

The title for the image properties dialog is 'Properties...'. I use request filtering in IIS, and I would like to block '..' in urls and query strings. However, this blocks the image properties dialog, because the request query string includes the title, which includes '...'.

 

So, how can I change the title of this dialog to remove the dots from the request?

Rumen
Telerik team
 answered on 15 Apr 2020
1 answer
2.8K+ views

I'm using RadSpreadsheet control in one my my asp.net web forms page. Everything works as expected when I debug the application from Visual Studio. But when I deploy the application to IIS the Save operation fails with the message attached.

I have been using Newtonsoft.Json package long before I added the spreadsheet functionality and never had a similar problem with it. What could be the cause of this error?

Could not load file or assembly &#39;Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Giorgos
Top achievements
Rank 1
 answered on 14 Apr 2020
4 answers
1.1K+ views
Hi,

I'm trying to use programmatic data binding, as in this demo http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/databinding/defaultcs.aspx
But I'm getting the message error: 

Parent Columns and Child Columns don't have matching columns (my SO is in spanish, so the original message is "Las columnas primarias y las columnas secundarias no tienen columnas que coincidan.")

Attached is an image of my data and this is my code:

    System.Data.DataSet ds = st.getFileStructure();

     treeView.DataTextField = "leafDisplayName";
     treeView.DataFieldID = "leafName";
     treeView.DataFieldParentID = "Parent";
 
     treeView.DataSource = ds;
     treeView.DataBind();

and this is my stack trace:  

[InvalidConstraintException: Las columnas primarias y las columnas secundarias no tienen columnas que coincidan.]
POsWorkflow.UserControls.FileStructureCtrl.BindToDataSet(RadTreeView treeView, Boolean isGidStructure) in C:\Users\...\UserControls\FileStructureCtrl.ascx.cs:217
POsWorkflow.UserControls.FileStructureCtrl.Page_Load(Object sender, EventArgs e) in C:\Users\...\UserControls\FileStructureCtrl.ascx.cs:65
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Control.LoadRecursive() +145
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


I don´t know what i'm doing wrong. Some body help :(

Thanks in advance.



Gilberto
Top achievements
Rank 1
Veteran
 answered on 13 Apr 2020
2 answers
160 views

I am hiding the detail template item in the OnItemDataBound method which works, but this causes a blank row when I export to Excel.  How can the row be removed completely?

Dim item = CType(e.Item, GridDataItem)

item.DetailTemplateItemDataCell.Visible = false

Benjamin
Top achievements
Rank 1
 answered on 13 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?