Telerik Forums
UI for ASP.NET AJAX Forum
23 answers
834 views
When I select a file it is automatically uploaded to the specified temp directory but then when I try to run SaveAs() I get an IOException "The process cannot access the file because it is being used by another process."

FRONT END:              

 <rad:RadAsyncUpload ID="uplProofFile" runat="server" MaxFileInputsCount="1" Width="500" OnInit="uplProofFile_Init"
                    ControlObjectsVisibility="None" OnFileUploaded="uplProofFile_FileUploaded" TemporaryFileExpiration="02:00:00" >
                </rad:RadAsyncUpload>

CODE BEHIND:

    protected void uplProofFile_FileUploaded(object sender, FileUploadedEventArgs e)
    {
                    uplProofFile.UploadedFiles[0].SaveAs(SaveLocation);
    }

Marin Bratanov
Telerik team
 answered on 04 Feb 2019
4 answers
346 views
is UploadedFile.SaveAs asynchronous?
Marin Bratanov
Telerik team
 answered on 04 Feb 2019
1 answer
160 views

Hi all,

 

I have a problem with a RadGrid (radgrid_alarms) on a page, where the data are reload every 2 second via an asp timer.

 

I can in the timer event => radgrid_alarms.Rebind();

The problem is about the vertical scrollbar, is flicking at every load.

 

Any suggestion to arrange this ?

 

Thanks,

 

Didier

 

More infos :

1) I have ajaxify the RadGrid

            <telerik:AjaxSetting AjaxControlID="TimerRefresh">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radgrid_alarms" UpdatePanelRenderMode="Inline"/>

2) the rad grid definition :

 

                                            <telerik:RadGrid ID="radgrid_alarms" runat="server"
                                                ShowHeader="true" AutoGenerateColumns="False" Culture="fr-FR"
                                                ResolvedRenderMode="Classic"
                                                Skin=""
                                                MasterTableView-CssClass="table table-bordered table-striped table-bootstrapinputs table-custom table-rounded"
                                                OnNeedDataSource="radgrid_alarme_NeedDataSource"
                                                OnItemDataBound="radgrid_alarme_ItemDataBound" Height="200">
                                                <ClientSettings>
                                                    <Selecting AllowRowSelect="false" />
                                                    <Scrolling AllowScroll="true" SaveScrollPosition="true"/>
                                                </ClientSettings>
                                                <MasterTableView>
                                                    <Columns>

 

Marin Bratanov
Telerik team
 answered on 04 Feb 2019
1 answer
231 views

Hi,

for my scenario I need to override the DeleteRow javascript event. Please see my code below:

function OnClientItemClicked(sender, args) {
        var selectedItemValue = args.get_item().get_value();
        if (selectedItemValue === "CommandDeleteRow") {
            var spreadsheet = $find("<%= RadSpreadsheet1.ClientID %>");
            var activeSheet = spreadsheet.get_activeSheet();
            activeSheet.deleteRow(0);
        }
}

Instead of deleteRow(0) I need to get the correct row index. How can this be achieved?

Thanks in advance and best regards,

Nina

Marin Bratanov
Telerik team
 answered on 04 Feb 2019
5 answers
535 views

We have been trying to extend the Rich Text Editor built into Sitecore 9, but have encountered a problem with the pasteHtml method. Trying to insert this snippet:

<blockquote>
    <p>Quote Text</p>
</blockquote>
<cite>Quote Author</cite>

results in:

<p>Quote Text</p>
<blockquote></blockquote><cite>Quote Author</cite>

Is there anything that can be done to fix this behaviour?

Rumen
Telerik team
 answered on 04 Feb 2019
1 answer
178 views

Hello all,

I don't know if this is allowed to be shared here or not.  If not, please let me know how I can share this with the community if you can.

I spend a lot of time creating FormViews in Visual Studios for CRUD operations.  This video shows you how to use the attached Macros with NotePad++ to automate most of the otherwise tedious re-design from the default FormView created by VS.

It will convert: 

  1. asp:Textbox to telerik:RadTextBox
  2. asp:Label to telerik:RadLabel
  3. asp:Button to telerik:RadButton

It will also either Table or Bootstrap the controls.

I hope you all find this as useful as I have.

Link to YouTube Video and Macros

Rumen
Telerik team
 answered on 04 Feb 2019
7 answers
238 views
Hello,

Is it possible to prevent a user from deleting a certain element in the editor, for example a div with id "placeHolder_something".
The way i think of it, is either by disabling events on that certain div, or detecting pressed keys corresponding to delete and check if the element is going to be deleted.
My goal is to have a template loaded in the editor, and i don't want a user to delete place holder element in the template.
How can i achieve this?

Thanks you
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 04 Feb 2019
3 answers
244 views
Hi
I have a grid that bind at client-side.
I want to have Sum of some column in footer. What i must to do?

Note: I'm set Aggregate="Sum" in column definition but when i run prj it show only Sum:

here is the code of column definition:
<telerik:GridBoundColumn HeaderText="ColumnTitle" DataField="FieldName" HeaderStyle-Width="15%"
    ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Aggregate="Sum">
</telerik:GridBoundColumn>

and for binding i use this code:
var data = CallWebMethod(WebserviceUrl, Parameter);
var MasterTable = gv.get_masterTableView();
MasterTable.set_dataSource(data);
MasterTable.dataBind();

Eyup
Telerik team
 answered on 04 Feb 2019
3 answers
297 views
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   <ClientEvents OnRequestStart="centerLoadingPanel" />
     <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gridDpSummary">
         <UpdatedControls>
           <telerik:AjaxUpdatedControl ControlID="gridDpSummary" LoadingPanelID="RadAjaxLoadingPanel1" />
         </UpdatedControls>
        </telerik:AjaxSetting>
     </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true">
       <img src='/Content/images/ajax-loader.gif' >
    </telerik:RadAjaxLoadingPanel>
</telerik:RadCodeBlock>
I created an AjaxLoadingPanel to display a custom loading image. My problem is that the default one also pops up. how do I disable the default image? The default image in this picture is the Red loading image. I am trying to keep the blue one.

http://i53.tinypic.com/jrtqb4.jpg
Eyup
Telerik team
 answered on 04 Feb 2019
3 answers
322 views
Hello

The help file gives the following instructions on how to change the image of a rad loading panel

Change the image that displays in the loading panel.
RadAjax ships with a number of pre-defined animated "gif" images. Change the <src> tag path to one of the gifs in the installation directory: "\Telerik\RadControls for ASP.NET AJAX Q3 2008\Skins\Default\Ajax"

What if the telerik controls are not installed on our production server? How do you specify an image that is simply located in the images directory of your website? Failing that, how could you specify an image that was located in a folder for a custom skin

thanks
Eyup
Telerik team
 answered on 04 Feb 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?