Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
401 views
Unless I'm trying things out incorrectly, it doesn't seem CloudUpload sets the content type upon successfully uploading a file to azure storage.

I looked into the custom azure provider item, but doesn't seem to be an option to set content type.  

Did I test this out wrong?  Is this a known bug?  Is there a workaround?
Pat
Top achievements
Rank 1
 answered on 25 Jan 2018
0 answers
44 views

Please, How to save file information of asyncupload to database temp , so we can be move it to target folder on saved or submit form ?

I already refer to this link, but still doesn't work.

https://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/functionality/manipulating-query-string-parameters-in-the-upload-handler

Thanks.

haryo
Top achievements
Rank 1
 asked on 25 Jan 2018
3 answers
186 views

Hello,

I am using JavaScript to remove some SearchContext items from the dropdown list. After executing the code below, the items remain in the Search Context dropdown list, but their selection no longer works correctly. I have tried both itemsCollection.removeAt(i); and itemsCollection.remove(item); and both behave in the same way.  If this is a bug, is there a way to define these items in server side code (C#)? That way I can decide which items to add. Thinking about it, I guess I could try adding the items on the client side, rather than declaratively.

JS Code to remove the desired items: I have stepped through vis the debugger to ensure the code is executed as expected.

var searchBox = $find("<%=SearchRadSearchBox.ClientID%>");
 
if (searchBox) {
    searchContext = searchBox.get_searchContext();
    if (searchContext) {
        itemsCollection = searchContext.get_items();
 
        for (var i = itemsCollection.get_count() - 1; i >= 0; i--) {
            item = itemsCollection.getItem(i);
            if (item) {
                if (item.get_text() == 'Joint Barcode' || item.get_text() == 'Weld Barcode') {
                    // remove the item
                    itemsCollection.removeAt(i);
                }
            }
        }
    }
}

 

Definition of the SearchBox:

<telerik:RadSearchBox RenderMode="Lightweight" ID="SearchRadSearchBox" runat="server" Width="500" OnSearch="SearchRadSearchBox_Search" EnableAutoComplete="False">
    <Localization DefaultItemText="General" LoadingItemsMessage="Some Loading" />
    <SearchContext>
        <Items>
            <telerik:SearchContextItem Text="Document Type" Key="1" />
            <telerik:SearchContextItem Text="Heat Number" Key="2" />
            <telerik:SearchContextItem Text="Spread" Key="3" />
            <telerik:SearchContextItem Text="Joint Barcode" Key="4" />
            <telerik:SearchContextItem Text="Weld Barcode" Key="5" />
        </Items>
    </SearchContext>
</telerik:RadSearchBox>

 

 

Marcel
Top achievements
Rank 1
 answered on 24 Jan 2018
0 answers
92 views

Basically in I am using the wizard and each step is using a user control. In most part it functions fine, but the section that uses the radTreeList, there seems to be a delay with the button actions inside the wizard.

Here is my wizard:

<telerik:RadAjaxPanel ID="radPanelWizard" runat="server" ClientEvents-OnResponseEnd="recreateItems">
 
       <asp:Literal ID="litStyle" runat="server"></asp:Literal>
         <telerik:RadWizard ID="radW" runat="server" Width="100%" OnActiveStepChanged="radW_ActiveStepChanged" OnFinishButtonClick="radW_FinishButtonClick" NavigationButtonsPosition="Top" RenderMode="Mobile"
             OnNextButtonClick="radW_NextButtonClick" DisplayCancelButton="true" OnCancelButtonClick="radW_CancelButtonClick">
             <WizardSteps>
                <telerik:RadWizardStep Title="Edit 1" ID="step1">
                    <uc1:FirstControl ID="usc1" runat="server"/>
                </telerik:RadWizardStep>
                <telerik:RadWizardStep Title="Edit 2" ID="step2">
                    <uc2:SecondControl ID="usc2" runat="server"/>
                </telerik:RadWizardStep>
                <telerik:RadWizardStep Title="Edit 3" ID="step3">
                    <uc3:ThirdControl ID="usc3" runat="server"/>
                </telerik:RadWizardStep>
             </WizardSteps>
        </telerik:RadWizard>
   
</telerik:RadAjaxPanel>

 

Im loading the TreeLists from the second user control in the second step. Here's the code for that:

<telerik:RadAjaxPanel ID ="radAjxPnlQAItems" runat="server">
    <div class="sortTable sortTableHalf">
        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
        <telerik:RadTreeList ID="radItemView" runat="server" AllowPaging="false" DataKeyNames="MapID" ParentDataKeyNames="MapParentID" AutoGenerateColumns="false"
        OnItemCommand="radItemView_ItemCommand" OnItemCreated="radItemView_ItemCreated" AllowMultiItemSelection="True" OnNeedDataSource="radItemView_NeedDataSource" >
        <Columns>
            <telerik:TreeListBoundColumn DataField="MapID" HeaderText="MapID" UniqueName="MapID">
            </telerik:TreeListBoundColumn>
        <telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="ItemName" HeaderText="ItemName" UniqueName="ItemName">
            </telerik:TreeListBoundColumn>
        <telerik:TreeListTemplateColumn UniqueName="Template Column" HeaderText=" ">
            <HeaderStyle Width="140px"></HeaderStyle>
            <ItemTemplate>                       
                <telerik:RadButton ID="AddBtn" runat="server" Text="Add" CommandName="AddItem">
                </telerik:RadButton>
            </ItemTemplate>
        </telerik:TreeListTemplateColumn>
        </Columns>
        <NoRecordsTemplate>
        No Records Found
        </NoRecordsTemplate>
 
        </telerik:RadTreeList>
    </div>
    <div class="sortTable sortTableHalf">
        <telerik:RadTreeList ID="radTreeSelected" runat="server" AllowPaging="false" DataKeyNames="MapID" ParentDataKeyNames="MapParentID" AutoGenerateColumns="false"
        OnItemCommand="radTreeSelected_ItemCommand" OnItemCreated="radTreeSelected_ItemCreated" OnDeleteCommand="radTreeSelected_DeleteCommand" OnNeedDataSource="radTreeSelected_NeedDataSource">
        <Columns>
            <telerik:TreeListBoundColumn DataField="MapID" HeaderText="MapID" UniqueName="MapID">
            </telerik:TreeListBoundColumn>
        <telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="ItemName" HeaderText="ItemName" UniqueName="ItemName">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListTemplateColumn UniqueName="Template Column" HeaderText=" ">
            <HeaderStyle Width="140px"></HeaderStyle>
            <ItemTemplate>                       
                <telerik:RadButton ID="DelBtn" runat="server" Text="Remove" CommandName="Delete">
                </telerik:RadButton>
            </ItemTemplate>
        </telerik:TreeListTemplateColumn>
        </Columns>
        <NoRecordsTemplate>
        No Records Found
        </NoRecordsTemplate>
        </telerik:RadTreeList>
    </div>
</telerik:RadAjaxPanel>

 

The logic with those trees is this. The 'radItemView' contains an add button and lists the hierarchy of elements that can be added. The 'radTreeSelected' contains the items, that were added when they clicked the add button. For the most part it works, but what I noticed is this. Any time you go into the section, clicking the add or remove button for the first time after reaching this step, there is significant delay before the tree update. However, if you click the add or remove button again for a different item, then the update is instantaneous. It seems like to me, is that the wizard is causing the tree list to clear something, and seems to reinitialize when clicking the add button. Is there a way to resolve that?

 

 

 

Paul
Top achievements
Rank 1
Iron
 asked on 24 Jan 2018
1 answer
135 views

After upgrading to the latest Telerik binaries on our DotNetNuke (DNN v9.1.1) website, the RadEditor has some odd behavior making it near impossible to use. The RadEditor seems to be centered as a small square inside of a large gray box. Additionally switching between DESIGN and HTML modes causes the entire editor to freak out.

Please see attached screenshots.

Has anyone experienced this, or have a solution to fix it?

-Ben

Rumen
Telerik team
 answered on 24 Jan 2018
0 answers
86 views

Hi,

I'm having problems with a RadTreeView which is databound.

I would like to show 1 context menu if the Category of the node is 1 value and another if not which I have achieved using Javascript and the OnClientContextMenuShowing method. I then assign the context menu to each node depending on the category.

The issue I have is I need to be able to use the OnContextMenuItemClick server side method to run some C# depending on the selected context item but assigning this event to the treeview does not fire when the menu items are clicked.

 

I hope someone can help with this and please let me know if any code snippets are needed.

Charlie
Top achievements
Rank 1
 asked on 24 Jan 2018
1 answer
552 views

With a standard ASP .Net RadioButtonList it's simple to bind the SelectedValue:

<asp:RadioButtonList runat="server" ID="rbl_eit_Executed" SelectedValue='<%# Bind("Executed") %>'   
     RepeatDirection="Horizontal"  RepeatLayout="Table" TextAlign="Right">
          <asp:ListItem Value="False" Text="No"  />
         <asp:ListItem Value="True" Text="Yes"  />
</asp:RadioButtonList>

Attempting the same thing with RadRadioButtonList:

<telerik:RadRadioButtonList runat="server" Orientation="Horizontal"  
           SelectedValue="<%# Bind("Executed") %>"
           ID="rbl_eit_Executed" Direction="Horizontal"
            AutoPostBack="False">
        <Items>
               <telerik:ButtonListItem Text="Yes" Value="True" />
                <telerik:ButtonListItem Text="No" Value="False" />
         </Items>
</telerik:RadRadioButtonList>

Results in the error:

"A call to Bind must be assigned to a property of a control inside a template."

The ASP .Net control works inside an Edit Item Template - the Telerik control does not. How to databind SelectedValue (I do NOT care about binding the list of items, those are declarative as shown above).

Marin Bratanov
Telerik team
 answered on 24 Jan 2018
0 answers
116 views

Hi,

I want to have a Radnumeric Textbox "cssWorkload" in a table <td> element. I am using AJAX to initiate the Text box and do all the functionalities in My code. But when i run the code the Radnumeric text box does not show up when its under ClientItemTemplate.

 <ClientItemTemplate>
                                                    <table cellpadding="10px" border="0" cellspacing="3px" id="tblSelectedItems1">
                                                        <tr style="height: 18px;">
                                                            <td class="cssEmployee">
                                                                <span>
                                                                <asp:Label runat="server" ID="Label1">#= Text #</asp:Label>
                                                                <asp:HiddenField runat="server" ID="HiddenField1" Value='#= Value #' />
                                                            </span>
                                                             </td>
                                                             <td class="cssWorkload">
                                                                 <span>
                                                                   <telerik:RadNumericTextBox runat="server" Visible="true" ID="RadNumericTextBox1" Type="Number" 
                                                                            RenderMode="Auto" AutoPostBack="True" >
                                                                            <NumberFormat DecimalDigits="0"></NumberFormat>
                                                                            <ClientSettings showbutton="true"></ClientSettings>
                                                                            <ClientEvents OnLoad="Load"/>
                                                                    </telerik:RadNumericTextBox>
                                                                 </span>
                                                             </td>
                                                         </tr>
                                                      </table>
                                               
        </ClientItemTemplate>

agasthya
Top achievements
Rank 1
 asked on 24 Jan 2018
0 answers
316 views

Hi

I use ComboBox and I get this error sometimes:

Uncaught Error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON. Parameter name: data.

 

My Code:

  <telerik:radcombobox runat="server" id="ImpersonationRequestUsersCmb" height="190px" width="300px"
            markfirstmatch="true" enableloadondemand="true" highlighttemplateditems="true" emptymessage="<%$ Resources:UserImpersonationResources, SelectUserMessage %>"
            onclientitemsrequested="UpdateItemCountField" onitemsrequested="ImpersonationRequestUsersCmb_ItemsRequested"
            onitemdatabound="ComboBox_ItemDataBound" skin="MetroTouch"  dropdownwidth="500px" nowrap="True">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
                <ul> 
                    <li class="col1">
                        <%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "Login"))) ? "&nbsp;" : DataBinder.Eval(Container.DataItem, "Login") %></li>
                    <li class="col2">
                        <%# (string.IsNullOrWhiteSpace((string)DataBinder.Eval(Container.DataItem, "FullName"))) ? "&nbsp;" : DataBinder.Eval(Container.DataItem, "FullName")%></li>
                    <li class="col3">
                        <%# DataBinder.Eval(Container.DataItem, "Email") %></li>
                </ul>
            </ItemTemplate>
            <FooterTemplate>
                <asp:Literal ID="ltStartString" runat="server" Text="<%$ Resources:UserImpersonationResources, TotalItemsString%>" />
                <asp:Literal runat="server" ID="ImpersonationListItemsCount" />
                <asp:Literal ID="ltEndString" runat="server" Text="<%$ Resources:UserImpersonationResources, ItemsString%>" />
            </FooterTemplate>
        </telerik:radcombobox>

 

 

please advise

 

 

 

 

Itai
Top achievements
Rank 1
 asked on 24 Jan 2018
0 answers
72 views

Hi,

As the title said, this happens only in IE browser. Any idea if this bug was fixed in newer versions of Telerik?

My version is 2013.3.1114.35 of Telerik.Web.UI

 

Thanks!

Zedrci03
Top achievements
Rank 1
 asked on 24 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?