Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
208 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
287 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
624 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
264 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
328 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 3
Bronze
Bronze
Iron
 answered on 04 Feb 2019
3 answers
321 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
362 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
423 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
8 answers
1.3K+ views
Hello,

I have 2 questions concerning the character count with a RadtextBox.

I need the character count of a multiline RadtextBox on client side dynamic when typing a text.
So i wrote a little function for this to get the  get_textBoxValue() length value, that is called by the onKeyPress event.

This works ok, except 2 things that i can't figure out.
1: The character count is also counting the line breaks, as a character, but the MaxLength of the RadTextBox doesn't.
Is there a way to not include the linebreaks with the length of the text?

2: The Backspace or Delete key, when used for deleting some text, is not firing any event at client side.
is there a way to get this keys or action, anywhere in a client side event?

thanks,

Marco

Eyup
Telerik team
 answered on 04 Feb 2019
10 answers
852 views
Using javascript, 

I need to get the value of a TextBox that's in a RadWindow when the user presses X Close button:

        function OnClientBeforeClose(sender, args) {
???how do I get the RadWindow1 TextBox1 value ???
        }

Reason is, I need to refresh the parent page based on that value after the user hits the X Close button.

How do I do that?
Thanks.
Marin Bratanov
Telerik team
 answered on 02 Feb 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?