Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
186 views

Hi,

There seem to be a bug with RadCloudUpload when uploading files containing accents even when removing the accents using SetKeyName . You can reproduce the problem using the online demo: 

http://demos.telerik.com/aspnet-ajax/cloud-upload/examples/overview/defaultcs.aspx

Try to upload a file named testé.txt and it will simply spin forever... with the Azure Provider it will give a 400 bad request error.

This bug occurs even when using a custom keyname (ie: renaming testé.txt to test.txt)

It looks like it's posting an empty keyname in the form-data / metadata

 ------WebKitFormBoundary27qdoJuKD1bZGORUContent-Disposition: form-data; name="rcuConfigurationData" o7YTRi9y7g5a87elRnSedOyIfTEV6yRP4qSiSAbpKNqJACur2dz8NDNMqtQYwyZm+gslxpwauOF6zoZHoyrVz4z+x6D3YzCZt0GJWxCPX96H/e9o635zvsgBjRPk0kV0cj+OKg==

------WebKitFormBoundary27qdoJuKD1bZGORUContent-Disposition: form-data; name="file"; filename="blob"Content-Type: application/octet-strea------WebKitFormBoundary27qdoJuKD1bZGORUContent-Disposition: form-data; name="rcuPostData" {"KeyName":"","OriginalName":"testé.txt","UploadId":"","IsSingleUpload":true,"IsLastChunk":true,"ChunkNumber":1,"PartEtags":[]}------WebKitFormBoundary27qdoJuKD1bZGORU--

Exception thrown for upload operation for file with keyName: test.txt
Telerik.Web.UI.CloudUploadProviderException
   at Telerik.Web.UI.AzureProvider.UploadFileOnSigleRequest(String keyName, NameValueCollection metaData, Stream fileStream)
   at Telerik.Web.UI.AzureProvider.UploadFile(String keyName, NameValueCollection metaData, Stream fileStream)
   at Telerik.Web.UI.CloudUpload.BaseWorker.PerformSingleRequestUpload()
   at Telerik.Web.UI.CloudUpload.BaseWorker.Process()
   at Telerik.Web.UI.CloudUploadHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Telerik.Web.UI
The remote server returned an error: (400) Bad Request.
Microsoft.WindowsAzure.Storage.StorageException
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.SetMetadata(AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
   at Telerik.Web.UI.AzureProvider.UploadFileOnSigleRequest(String keyName, NameValueCollection metaData, Stream fileStream)

Microsoft.WindowsAzure.Storage
The remote server returned an error: (400) Bad Request.
System.Net.WebException
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)

I am using Telerik 2015.1.401.45

Please let me know if a hotfix or workaround is possible.

Thanks,

Kim

Kim
Top achievements
Rank 1
 answered on 04 Jan 2016
7 answers
319 views

I currently have a RadGrid with an EditForm section where I am defining the layout of edit mode. The mode is being set to PopUp, so the editing is done in the pop-up windows.

 

However, the pop-up will move back to it's original position on a postback, since it contains dependent dropdowns and requires database queries. As I understand from other posts, this behavior can't really be fixed. Either way - I would like to lock the position of the edit pop-up to prevent movement and other behaviors as is done in a RadWindow with the "Behaviors" tag. Is this possible to do with the edit pop-up in a radgrid? I do not see an option that would allow this in the EditForm PopUpSettings tag.

 

Thanks,

James

Pavlina
Telerik team
 answered on 04 Jan 2016
2 answers
44 views

Hi,

I find that text on tab in sliding zone is not displayed correctly in latest Firefox 43.0.1. 

You can see it also in your demo Splitter Demo only 'Deco' is visible instead of 'Decorate Pages' as it is in other browsers.

 

Please let me know if there is any workaround for this issue.

 

Thank you,

Petr

Petr
Top achievements
Rank 1
Iron
Iron
 answered on 04 Jan 2016
1 answer
112 views

Hello,

 I have a combobox which have the proprety disabled=true

 I open firebug, select the combobox and delete the property disabled=disabled

Now I can select other values from the combobox using the keybord arrows (up and down). Values that I am not supposed to have access to.

Is there a fix or something that I need to do ?

Nencho
Telerik team
 answered on 04 Jan 2016
1 answer
159 views
Some of the commands like "Sharpen" and "Blur" take too long to execute. While I understand that such complicated JavaScript functions take a lot of processing. I wish to display some indicator (probably a gif loader) that the page is "processing". Due to the way JavaScript execution works, showing a gif in OnClientCommandExecuting and hiding it in OnClientCommandExecuted does not work because there is no room for that toggle JavaScript code to execute. I tried to override OnClientCommandExecuting by calling args.set_cancel(true) hoping to find way to fire the command at a later time. I tried imageEditor.fire(commandName, args) but it doesn't work. Is there a way to let the user know that the image editor is processing instead of freezing?
Danail Vasilev
Telerik team
 answered on 04 Jan 2016
1 answer
74 views

I have a bunch of different docks containing a listviews on a page.  See example below.   We are using custom docklayout storage -see below.  My question is why is LoadStateFromStorage called before a paging event and then SaveStateToStorage is called after it.  So whenever a user pages, there are 3 calls to the database.

 

Public Class DockLayoutStorage
Implements IStateStorageProvider
Public Function LoadStateFromStorage(key As String) As String Implements IStateStorageProvider.LoadStateFromStorage
Dim params As List(Of SqlParameter)
params = New List(Of SqlParameter)
params.Add(New SqlParameter("@User_Id", key))
Return OGC.Toolkit.Misc.DataAccess.ExecuteScalar("GetDockState", params, "csxxxx").ToString
End Function
Public Sub SaveStateToStorage(key As String, serializedState As String) Implements IStateStorageProvider.SaveStateToStorage
Dim params As List(Of SqlParameter)
params = New List(Of SqlParameter)
params.Add(New SqlParameter("@User_Id", key))
params.Add(New SqlParameter("@Dock_State", serializedState))
OGC.Toolkit.Misc.DataAccess.ExecuteQuery("InsUpdDockStates", params, "csxxx")
End Sub

 

<telerik:RadDock runat="server" ID="dockNotifications" Title="Notifications" Style="margin-bottom: 5px; margin-top: 5px" DefaultCommands="ExpandCollapse" EnableAnimation="true"
AutoPostBack="true" DockMode="Docked" CommandsAutoPostBack="true" EnableRoundedCorners="true">
<ContentTemplate>
<telerik:RadAjaxPanel ID="upNotifications" runat="server" LoadingPanelID="uprgNotifications">
<asp:ListView runat="server" ID="lvNotifications" DataSourceID="odsNotifications">
<LayoutTemplate>
<asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
<telerik:RadDataPager ID="dpNotifications" runat="server" PagedControlID="lvNotifications" PageSize="5" Skin="Default" OnCommand="dp_Command">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerPageSizeField PageSizeText="Page size: " PageSizes="5,10,20,50" HorizontalPosition="RightFloat" PageSizeControlType="RadDropDownList"></telerik:RadDataPagerPageSizeField>
</Fields>
</telerik:RadDataPager>
</LayoutTemplate>
<ItemTemplate>
<fieldset class="dock">
<legend style="font-weight: bold"><%#Eval("Notification_Header")%></legend>
<asp:Literal runat="server" ID="litNotificationText"></asp:Literal>
</fieldset>
</ItemTemplate>
<EmptyDataTemplate>
<div class="center" style="margin-top: 5px">No notifications available.</div>
</EmptyDataTemplate>
</asp:ListView>
<asp:ObjectDataSource ID="odsNotifications" runat="server" TypeName="xxx.DataAccess" SelectMethod="GetDataTable">
<SelectParameters>
<asp:Parameter Name="sProc" DefaultValue="xxxGetNotifications" />
<asp:Parameter Name="params" />
<asp:Parameter Name="connStr" DefaultValue="csxxx />
</SelectParameters>
</asp:ObjectDataSource>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="uprgNotifications" runat="server" Skin="Default" MinDisplayTime="0"></telerik:RadAjaxLoadingPanel>
</ContentTemplate>
</telerik:RadDock>

 

 

Slav
Telerik team
 answered on 04 Jan 2016
1 answer
93 views

Hello

I have a simple Grid With many Columns and I Add "Export to Excel" to it. I can Export Easily

but I want better Excel File.I mean I want add some Other Information to Excel File Which are not in Grid For Example 'Creation DateTime','The name of someone who Exported' and ... .and I want to format them .for example Bold or Italic .

I dont want use "caption" because it is simple.

Is another way to achive this Goal?

Viktor Tachev
Telerik team
 answered on 04 Jan 2016
11 answers
912 views
I need to add a radio ButtonList in a Custom Item Template for a test. I pull [QID],[TestQuestion] from SQL DataSource1  I have a Radiobuttionlist inside the ItemTemplate as well which uses SQLDataSource2 which Pulls [QID],[TestChoice] I need to populate the itemtemplate with the test questions and the test choices underneath in the radiobuttonlist but I can't seem to get the control parameter correct for the buttonlist unless I go into edit mode. How do I tell SQLDatasource2 to use the [QID] of the current record to populate the buttonlist?

 <form id="form1" runat="server">  
    <div>  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager>  
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        </telerik:RadAjaxManager>  
        <br />  
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gulfcoastConnectionString %>" 
            SelectCommand="SELECT [QID], [Question] FROM [mttestquestions]"></asp:SqlDataSource>  
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:gulfcoastConnectionString %>" 
            SelectCommand="SELECT [Choice], [Selectvalue], [QID] FROM [mttestChoices] WHERE ([QID] = @QID)">  
            <SelectParameters>  
                <asp:ControlParameter ControlID="RadGrid1" Name="QID" PropertyName="DataSource" />  
            </SelectParameters>  
        </asp:SqlDataSource>  
      
    </div>  
        <br />  
        <br />  
        <br />  
        <br />  
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
            GridLines="None" Skin="Sunset">  
            <MasterTableView DataSourceID="SqlDataSource1">  
                <EditItemTemplate>  
                    &nbsp;  
                </EditItemTemplate>  
                <RowIndicatorColumn>  
                    <HeaderStyle Width="20px" />  
                </RowIndicatorColumn>  
                <ExpandCollapseColumn>  
                    <HeaderStyle Width="20px" />  
                </ExpandCollapseColumn>  
                <Columns>  
                    <telerik:GridBoundColumn DataField="QID" DataType="System.Int32" HeaderText="QID" 
                        SortExpression="QID" UniqueName="QID">  
                    </telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="Question" HeaderText="Question" SortExpression="Question" 
                        UniqueName="Question">  
                    </telerik:GridBoundColumn>  
                </Columns>  
                <ItemTemplate>  
                    <asp:Label ID="LABELQID" runat="server" Text='<%# Eval("QID") %>' AssociatedControlID="RadioButtonList1"></asp:Label>  
                    <asp:Label ID="Label2" runat="server" Text=". "></asp:Label>  
                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Question") %>'></asp:Label><br />  
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" DataSourceID="SqlDataSource2" 
                        DataTextField="Choice" DataValueField="Selectvalue">  
                    </asp:RadioButtonList>&nbsp;&nbsp;  
                </ItemTemplate>  
            </MasterTableView>  
            <FilterMenu EnableTheming="True" Skin="Sunset">  
                <CollapseAnimation Duration="200" Type="OutQuint" />  
            </FilterMenu>  
        </telerik:RadGrid>  
    </form>  
</body> 
Angel Petrov
Telerik team
 answered on 04 Jan 2016
2 answers
117 views

Hello,

 

I'm having some trouble with my filter template on a GridDatetimeColumn. It's happenig only when I try the Between or NotBetween function.

The thing is:

I can normally call the method filter() from the table view client object.

I have all  parameters like this example:

1.// columnUnique = 'dateColumn'
2.// value = '01/12/2015 31/12/2015'
3.// cont = 11 (Between function from the Telerik.Web.UI.GridFilterFunction.Between)
4. 
5.tableView.filter(columnUnique, value, cond, true);

When this method is called, it's not fired to the server.

If I change the function to something like EqualsTo (in this case, the 31/12/2015 part is omitted and only the first part is used), the same method works fine.

In the grid setup, I set all date columns to EnableRangeFiltering = true;

 

I also tried the grid without my filter template to check the built-in funtion. That way, the command was fired on the server and the value was just like the example. ('01/12/2015 31/12/2015')

 

I need to use the template because of some requirements and the date column's is the only one that's giving more trouble.

Thanks for the help

Kostadin
Telerik team
 answered on 04 Jan 2016
14 answers
1.2K+ views
Hi,
    I have dynamic grid to export in excel but  i want to show  Header and Footer data like Logo,Text on excel . I don't know how can do this please provide the example or demo.

Regards
Rahul

Viktor Tachev
Telerik team
 answered on 04 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?