Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
284 views
I have a RadGrid in which i am using the RadEditor, my problem is that the other fields will update in my database but the radEditor content does not populate my update parameter.  Am i using the wrong syntax?

<telerik:RadGrid ID="gvRadGrid_Careers" runat="server" DataSourceID="ojDsCareers"
    GridLines="None" AllowPaging="True" AllowSorting="True" AllowAutomaticUpdates="True"
    AllowAutomaticDeletes="True" AutoGenerateColumns="False" AllowAutomaticInserts="True">
    <mastertableview datasourceid="ojDsCareers" datakeynames="CareerID" editmode="PopUp"
        commanditemdisplay="Top">
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <CommandItemSettings ExportToPdfText="Export to Pdf" addnewrecordtext="Add Job"></CommandItemSettings>
        <Columns>
            <telerik:GridEditCommandColumn EditImageUrl="/admin/images/icons/Edit.gif" ButtonType="ImageButton"
                HeaderText="Edit" UniqueName="EditCommandColumn" >
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="JobTitle" HeaderText="Job Title" UniqueName="JobTitle">
            </telerik:GridBoundColumn>
            <telerik:GridHTMLEditorColumn DataField="JobDescription" HeaderText="Job Description"
                UniqueName="JobDescription">
            </telerik:GridHTMLEditorColumn>
            <telerik:GridBoundColumn DataField="AddedBy" HeaderText="Added By" UniqueName="AddedBy"
                ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DateModified" HeaderText="Last Modified" UniqueName="DateModified"
                ReadOnly="True">
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ConfirmText="Delete this job?" ConfirmDialogType="RadWindow"
                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                UniqueName="DeleteColumn" ImageUrl="/admin/images/icons/Delete.gif" HeaderText="Delete">
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridButtonColumn>               
        </Columns>
        <EditFormSettings EditFormType="Template" InsertCaption="Add new job posting" CaptionFormatString="Update Job"
            CaptionDataField="CareerID" PopUpSettings-Modal="True" PopUpSettings-Width="500px" EditColumn-InsertImageUrl="Admin/images/icons/AddRecord.gif">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
            <FormTemplate>
                <div id="adminPopUp" align="center">
                    <table cellpadding="2" cellspacing="2">
                        <tr>
                            <td>
                                <p>
                                    Job Title</p>
                                <telerik:RadTextBox ID="RadTextBox1" runat="server" Text='<%# Bind( "JobTitle") %>'
                                    Width="450px">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <p>
                                    Job Description</p>                                 
                                <telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="/Admin/includes/editortools/Simple.xml"
                                    Width="450px" Height="300px" Editable="True" Html='<%#DataBinder.Eval(Container.DataItem, "JobDescription")%>'>
                                    <CssFiles>
                                        <telerik:EditorCssFile Value="~/Admin/css/EditorCss.css" />
                                    </CssFiles>
                                </telerik:RadEditor>
                            </td>
                        </tr>
                        <tr>
                            <td>
                               <asp:Button ID="Button1" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'
                                runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>
                            </asp:Button>
                            <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                            </asp:Button>
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
            </FormTemplate>
            <PopUpSettings Modal="True" Width="500px"></PopUpSettings>
        </EditFormSettings>
    </mastertableview>
</telerik:RadGrid>
<asp:ObjectDataSource ID="ojDsCareers" runat="server" SelectMethod="GetJobsList"
    TypeName="DouglasEmmett.clsCareers" DeleteMethod="DeleteJob" UpdateMethod="UpdateJob">
    <DeleteParameters>
        <asp:ControlParameter ControlID="gvRadGrid_Careers" Name="CareerID" PropertyName="SelectedValue"
            Type="Int32" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:ControlParameter ControlID="gvRadGrid_Careers" PropertyName="SelectedValue" Name="CareerID" Type="Int32" />
        <asp:ControlParameter ControlID="gvRadGrid_Careers" PropertyName="SelectedValue" Name="JobTitle" Type="String" />
        <asp:ControlParameter ControlID="gvRadGrid_Careers" PropertyName="SelectedValue" Name="JobDescription" Type="String" />
        <asp:SessionParameter DefaultValue="Web Test" Name="Addedby" SessionField="AdminUser" Type="String" />
    </UpdateParameters>
</asp:ObjectDataSource>

Rumen
Telerik team
 answered on 02 May 2019
2 answers
394 views

When I have multiple ASP.NET validators on a page, I can't close a RadWindow that has an animation using my usual client-side javascript function. When I comment out the validators until there's just one left or disable the animation, suddenly it works perfectly again. I even tried using NavigateURL and moving all my markup to a separate page instead of using ContentTemplate and the window still wouldn't close until I either disabled animation or commented out validators until one was left.

I was able to recreate this in a fresh web site in VS2012 Pro, although another pre-existing project (different than the one I first discovered this error on) has multiple validators on one page and yet is fine. I also tried a few different versions ranging from the most recent, 2019.1.215.45, back to 2015.2.826.45.  This leads me to believe there is something else that is a factor here, as I doubt I'm the only person to have tried to close a RadWindow under these circumstances since 2015.

Fortunately this error can be resolved for now by simply disabling animations on my RadWindows in that project, but I would like to be able to re-enable them at some point.

This is my code (no code-behind used):

01.<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test1.aspx.vb" Inherits="Test1" %>
02.<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
03. 
04.<!DOCTYPE html>
05. 
07.<head id="Head1" runat="server">
08.    <title>Test1</title>
09.</head>
10.<body>
11.    <form id="form1" runat="server">
12.    <div>
13.        <telerik:RadScriptManager runat="server" ID="rsm1">
14.        </telerik:RadScriptManager>
15.        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
16.            <script type="text/javascript">
17. 
18.                function openWindow(sender, args) {
19.                    $find("<%= window.ClientID%>").show();
20.                }
21.                function closeWindow(sender, args) {
22.                    try {
23.                        $find("<%= window.ClientID%>").close();
24.                    } catch (e) {
25.                        alert(e);
26.                        console.log(e);
27.                    }
28.                }
29.            </script>
30.        </telerik:RadScriptBlock>
31.        <telerik:RadWindow runat="server" ID="window" RenderMode="Lightweight" Skin="Material" Modal="true" Animation="Fade" VisibleStatusbar="false"  KeepInScreenBounds="true" Height="125px" Width="300px" Title="Click Cancel" Behaviors="None">
32.            <ContentTemplate>
33.                <telerik:RadPageLayout ID="layout" runat="server" GridType="Fluid" Height="100%">
34.                    <telerik:LayoutRow style="padding-top:3px;">
35.                        <Columns>
36.                            <telerik:LayoutColumn Span="8">
37.                                <telerik:RadButton runat="server" style="float:right;" RenderMode="Lightweight" Skin="Material" ID="cancelBtn" CssClass="rbFlatButton" Primary="false" Text="Cancel" AutoPostBack="false" OnClientClicked="closeWindow" />
38.                            </telerik:LayoutColumn>
39.                            <telerik:LayoutColumn Span="4">
40.                                <telerik:RadButton runat="server" RenderMode="Lightweight" Skin="Material" ID="okayBtn" CssClass="rbFlatButton" Primary="true" Text="Okay"/>
41.                            </telerik:LayoutColumn>
42.                        </Columns>
43.                    </telerik:LayoutRow>
44.                </telerik:RadPageLayout>
45.            </ContentTemplate>
46.        </telerik:RadWindow>
47.        <telerik:RadTextBox runat="server" ID="text" RenderMode="Lightweight" Skin="Material" />
48.        <asp:RequiredFieldValidator runat="server" ID="val" ControlToValidate="text" ErrorMessage="Required!" />
49.        <telerik:RadTextBox runat="server" ID="text2" RenderMode="Lightweight" Skin="Material" />
50.        <asp:RequiredFieldValidator runat="server" ID="val2" ControlToValidate="text2" ErrorMessage="Required!" />
51.        <telerik:RadButton runat="server" Text="Open Window" Enabled="true" RenderMode="Lightweight" ButtonType="StandardButton" ID="openBtn" Skin="Material" AutoPostBack="false" CausesValidation="false" OnClientClicked="openWindow" />
52.    </div>
53.    </form>
54.</body>
55.</html>

And this is the error I got on opening the window and clicking cancel:

TypeError: $telerik.$(...).stopTransition is not a function
    at c.RadWindow._hide (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:21454)
    at c.RadWindow.hide (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:21314)
    at c.RadWindow.close (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:22597)
    at Array.closeWindow (Test1.aspx:76)
    at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:2556
    at b.RadButton.raiseEvent (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:8930)
    at g._clickedHandler (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:28089)
    at b.BaseFunctionality.trigger (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:15055)
    at b.BaseFunctionality.clicked (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:27039)
    at b.PlainFunctionality.clicked (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=rsm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2019.1.215.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a05294e6d-c3f5-4495-92ed-e871448550ca%3a4877f69a%3a16e4e7cd%3af7645509%3a24ee1bba%3ab2e06756%3a92fe8ea0%3ac128760b%3a19620875%3a874f8ea2%3afa31b949%3af46195d3%3a33715776%3a490a9d4e%3a6d43f6d9%3ab7778d6c:formatted:26896)

Following the above stack trace, I went in to the _hide function and found the line (line 11 below) where the error was occurring, which was how I figured the animation was part of the issue:

01._hide: function() {
02.    if (!this.get_animation() || this.get_animation() == 0) {
03.        this._afterHide();
04.    } else {
05.        if (this._enableShadow && $telerik.isIE) {
06.            this._setShadowCSSClass(false);
07.        }
08.        var n = Function.createDelegate(this, this._afterHide)
09.          , o = this.isMaximized()
10.          , m = this.get_animationDuration();
11.        $telerik.$(this._popupElement).stopTransition().transition({
12.            opacity: 0
13.        }, m, "linear", function() {
14.            n(o);
15.        });
16.    }
17.}



Sullivan
Top achievements
Rank 1
 answered on 02 May 2019
3 answers
122 views

Hi;

I have some data to display in linechart chart.Getting data as dynamically, so column count can be change. 

Could you show me how to bind to show data correctly?

Data Sample is in attachment

Vessy
Telerik team
 answered on 02 May 2019
1 answer
235 views

Hello Every one

This is my first post, In my Applictaion when i clicked on the Add button it will open a radwindow (New form), When i click on the save button it saves the record and back to the original Wizard Step, I would like to implement a logic in which when user clicked on save button it back to the original Wizard but skip that step and move to the next step Automatically, so user dont need to press the Next button,

Can any one please guide?

 

 //**// for NewForm Start
            function AddOrUpdateNewForm() {
                var eventID = document.getElementById('<%= EventID.ClientID %>').value;          
                var oWnd = window.radopen("NewForm.aspx?IsAmend=true&EventID=" + eventID, "BtnNewForm");
                oWnd.SetUrl(oWnd.GetUrl());
            }
            function OnNewFormClose(radWindow) {
                var arg = radWindow.Argument;
                if (!radWindow.Argument) {
                }
                else {
                    SelectSpecificDisableComboValue($find("<%=ABC.ClientID %>"), arg.ABC);
                  
                    SetValue(arg.BRSTotalScore, $find("<%=Total.ClientID %>"));                
                    MoveNextStep();                   
                }
            }
            //**// for NewForm End

I would like to implement the logic when user is on ABC Step and open the DEF form through ABC Step (RadWindow) and when saved the record through Radwindow then user is redirected to the XYZ (Next Step), rather than coming back to ABC Step.

 function MoveNextStep(sender, args) {
                alert("MoveStep1");
                var step = document.getElementById('<%=ActiveWizardStep.ClientID%>').innerText;
                //alert(step1);              
                alert(step);      

                var command = args.get_command();
                if (command == "1") {
                    var activeIndex = sender.get_activeIndex();
                    if (activeIndex > 0) {
                        sender.set_activeIndex(activeIndex + 1)
                    }
                }            

            }

 

 

Rumen
Telerik team
 answered on 02 May 2019
3 answers
454 views
Hi, all!
I've an RadGrid.
After I make filter, no loads this RadGrid. Because my event CarregaGrid() this inside "If(!IsPostBack)".
I load this RadGrid with SQL, in List (DataSource in my .cs)
If I call CarregaGrid() outside if (!IsPostBack), I've an error.
When I load this RadGrid after an filter? Or... When I call CarregaGrid() outside If(!IsPostBack) without error?


public void CarregaGrid()
    {
        var listaRequest = new Locations().ConsultLocations();
        if (listaRequest != null)
        {
            this.RadGrid1.DataSource = listaRequest;
            this.RadGrid1.DataBind();
        }
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["idioma"] == null)
            {
                string idioma = CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToString();
                Idioma.MudaCultura(idioma);
                Session["idioma"] = idioma;
            }
 
            else if (Session["idioma"] != null)
            {
                string idioma = Session["idioma"].ToString();
                Idioma.MudaCultura(idioma);
            }
 
            IdiomaList.Items.Add("PORTUGUÊS");
            IdiomaList.Items.Add("ENGLISH");
            IdiomaList.Items.Add("ESPAÑOL");
 
            if (Session["idioma"].ToString() == "pt")
            {
                IdiomaList.SelectedValue = "PORTUGUÊS";
            }
 
            else if (Session["idioma"].ToString() == "en")
            {
                IdiomaList.SelectedValue = "ENGLISH";
            }
 
            else if (Session["idioma"].ToString() == "es")
            {
                IdiomaList.SelectedValue = "ESPAÑOL";
            }
 
            RadGrid1.Columns[1].HeaderText = Idioma.RetornaMensagem("location");
            RadGrid1.Columns[2].HeaderText = Idioma.RetornaMensagem("servername");
            CarregaGrid();
        }
    }

Eyup
Telerik team
 answered on 02 May 2019
1 answer
263 views

I have a screen with RadComboBox with these parameters:

<telerik:RadComboBox ID="RadComboBox1" runat="server"  
    OnClientItemsRequested="OnClientItemsRequestedHandler" 
    OnClientDropDownOpening="OnClientItemsRequestedHandler" 
    EnableLoadOnDemand="true"             
    OnItemsRequested="RadComboBox1_ItemsRequested"> 
    <ExpandAnimation Type="none" /> 
    <CollapseAnimation Type="none" /> 
</telerik:RadComboBox> 

 

 

and this code :

 

<script type="text/javascript"> 

function OnClientItemsRequestedHandler(sender, eventArgs) 
{ 
    //set the max allowed height of the combo  
    var MAX_ALLOWED_HEIGHT = 220; 
    //this is the single item's height  
    var SINGLE_ITEM_HEIGHT = 22; 

    var calculatedHeight = sender.get_items().get_count() * SINGLE_ITEM_HEIGHT; 
    var dropDownDiv = sender.get_dropDownElement(); 
    if (calculatedHeight > MAX_ALLOWED_HEIGHT)  
    {  
        setTimeout ( 
            function () { 
                dropDownDiv.firstChild.style.height = MAX_ALLOWED_HEIGHT + "px";  
            }, 20 
        );                 
    }  
    else  
    {  
        setTimeout ( 
            function () { 
                dropDownDiv.firstChild.style.height = calculatedHeight + "px";  
            }, 20 
        ); 
    } 
}         
</script> 

 

 

The problem is when the dropdown is expanding Up and the height of the dropdown is reduced, the dropdown is render far from the combo box input field.

Like that:

 


Vessy
Telerik team
 answered on 01 May 2019
7 answers
2.0K+ views
I use GridHyperLinkColumn  on the radgrid, the grid has id, date, amount1, amount2 columns,
amount1 and amount2 columns are GridHyperLinkColumn, I want to click on amount1 columns but pass date and amount on the URL
if I set DataNavigateUrlFormatString="Detail.aspx?amount={0}", it will pass amount1 on the url, but not date, how I pass date on the URL when click on the amount1, since I want to go to a detailed screen for amount1 for the specific date (same for amount2 column).

Thanks,
Jessie

Eyup
Telerik team
 answered on 01 May 2019
1 answer
106 views
I'm working on an application that allows multiple people to collaborate on a document. Ultimately, the document has a single document owner, and multiple contributors. The document owner is the only one that can accept/reject changes.  I've found the client-side method set_canAcceptTrackChanges, but I'd still like for the user to be able to remove their own comments/changes. I was hoping there was some client-side method I could use to check when the context menu pops up. Any suggestions?
Rumen
Telerik team
 answered on 30 Apr 2019
2 answers
348 views

I am using RadGrid (2018.3.910.40) with the EnableHeaderContextMenu="true" to allow user to show/hide any columns of the grid.  Due to the number of columns being displayed in the grid vertical scrolling is needed.  On first load the grid displays 5 columns, if I right-click on any of these columns I can select the option "Select Columns" and a list of all the columns appear and each one is checked.  Now if I scroll to display the next 5 columns and right-click to select columns, the columns 2-4 are shown but are not checked anymore.  if I scroll again to display the next five, then columns 2-10 are no longer checked and this continue.  If I scroll to show the previous columns then those columns are shown as checked.  This happens on all browsers.

Any ideas?

 

John
Top achievements
Rank 1
 answered on 30 Apr 2019
3 answers
141 views

Is it possible to drag lines similar to following example?

https://bl.ocks.org/denisemauldin/538bfab8378ac9c3a32187b4d7aed2c2

Thank you

Vessy
Telerik team
 answered on 30 Apr 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?