Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
309 views

I have a radwizard with 2 steps.  The first step has a couple of custom controls as well as some other text input fields.  The issue that I am seeing (in chrome and firefox) is when I select one of the text fields and hit enter, the wizard is firing a click event for one of the buttons on the custom controls.  What I would like to see is hitting enter fires the next button clicking event.  I thought that this is the default behavior of the radwizard.  Is there something that I may have set up improperly?  Or could I possibly set it programmatically to fire the next button click when enter is pressed?  Something like this?:

 

$(document).ready(function () {
        $("form").bind("keypress", function (e) {
            if (e.keyCode == 13) {
                $('RadwizardNextButton').click();
            }
        });
    });

 

Thanks for any help.

Peter Filipov
Telerik team
 answered on 25 Feb 2016
1 answer
429 views

In a from with RadGrid, data of selected row is read and assigned to related textboxes, RadComboBox, RadDatePicker above Grid. There is an update button as well to make change to the fields. I want to refresh RadGrid or updated row after making change. everything works but after making changes, I want the last row that I was working on it to be selected. with below code, first row is selected:

protected void BtnUpdate_Click(object sender, EventArgs e)
{
    Update(); // function for updating fields
 
    //Below are codes to updating grid after making changes but it
    //selects the first row
    DataTable dp = Dbo.PreOrder.Grid();
    GridPreOrder.DataSource = dp;
    GridPreOrder.DataBind();
 
}

 

 

 

Eyup
Telerik team
 answered on 25 Feb 2016
1 answer
94 views
Is it possible to hide the RadEditor toolbar for the browser's Print and Print Preview? It seems like a @media query in CSS would work, but I'm having trouble finding the proper CSS to not display the toolbar.
Ianko
Telerik team
 answered on 25 Feb 2016
1 answer
84 views

Hi,

I want to change mediaplayer youtube playist back color. playlist does not change unless you change the back color property back color.

Help.

Eyup
Telerik team
 answered on 25 Feb 2016
3 answers
123 views

Hey there, I'm trying to use a RadRotator to create functionality where whenever an image is clicked, an accompanying DIV is shown or hidden. This is a different DIV depending on the image which is clicked, and only one can be shown at a time. If the onclick javaScript event changes the style to 'block' I want the rotator to be paused, and only resume when the div is changed to 'none' style. This works fine for a couple seconds, however when I leave it for half a minute (to read the text in the div for example) and then click the image in the rotator it'll shoot over to another image (so the image will change on click) and the DIVs won't show or collapse. I am yet to find a pattern in the behaviour, but I feel like the rotator isn't fully paused but rather still going underwater - and we just can't see it.

I have added the code below, if you guys could tell me which function to use or what else to try that'd help immensely!

.aspx:

<div style="padding: 10px 10px 10px 10px;" id="ImageRotatorDiv">
    <telerik:RadRotator OnClientLoad="onRotatorLoadHandler" runat="server" ID="ImageCarouselRotator" Name="CarouselRotator" Width="1000" Height="550" CssClass="rotatorStyle" Style="cursor: default; margin: 0 auto;" ItemWidth="1000" ItemHeight="550" RotatorType="SlideShow" ScrollDirection="Right" FrameDuration="3000" SlideShowAnimation-Duration="500" SlideShowAnimation-Type="Fade" PauseOnMouseOver="False">

        <Items> //I add the images dynamically from a certain SiteFinity image folder
        </Items>
    </telerik:RadRotator>
</div>

//Example of one of the divs
<div class="hiddenDiv" id="DivShow1">
    <h1>Diginissim</h1>
    <p>In a mauris posuere, hendrerit nisi ut, rhoncus leo. Donec viverra mi ac ipsum placerat bibendum. Cras vel lacus nec augue laoreet maximus vel ac ex. Cras eu rhoncus dui, id iaculis risus. Aliquam consequat ex erat, sit amet consequat mi varius ac.</p>
    <p>Integer luctus nunc ut porttitor dignissim. Pellentesque efficitur, nibh in euismod mattis, enim urna efficitur massa, id venenatis dui dui at ex.</p>
</div>

 

JavaScript:

function showHide(id) {
        for (var divName in divNamesArray) {          //gets all the (currently hidden) divs on the page
            if (divNamesArray.hasOwnProperty(divName)) {
                var div = document.getElementById(divNamesArray[divName]);
                if (div === null || div === undefined) {         //check
                    continue;
                }
                if (divNamesArray[divName] === id) {       //each image gets the correct DIV name attached to it on load, this all works fine
                    if (div.style.display === 'none') {
                        div.style.display = 'block';
                        oRotator.pause();       //Wrong function?
                    } else {
                        div.style.display = 'none';
                        oRotator.resume();
                    }
                }
            }
        }
    }

 

I'm looking forward to hearing your ideas!

Vessy
Telerik team
 answered on 25 Feb 2016
1 answer
100 views

Hi Team,

 

I have a RadGrid with multiple template columns, In one column i have a link and textbox and on another I have a dropdown list.

I click on link, a popup opens select some value and set in the grid's text box, Since I need to bind the dropdown from text based on textbox value, I post back the using the Autopostback=true, But I am not able to bind the combobox, as I am not able to retain the values for textbox.

 

Can you help me on this.

 

Regards,

Sandeep

Eyup
Telerik team
 answered on 25 Feb 2016
2 answers
154 views

Hi,

              Can you please let me know how to add the tool tip for the RadWizard buttons Next/Previous/Finish buttons…etc?

Thanks,
BVS Rao.

Burepalli V S Rao
Top achievements
Rank 1
 answered on 24 Feb 2016
3 answers
304 views

I'm creating a user control that adds a new window to the RadWindowManager. I'm trying to add a header to the window, which seems easy enough in the demo code, but I'm getting an error that says "'header' is not a member of 'Telerik.Web.UI.RadWindow'.". I'm new to jquery and Ajax controls, so I don't know if I'm missing something.

(Telerik version is 2014.3.1024.45)

ascx file -

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadWindowManager RenderMode="Auto" ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="True" runat="server" EnableShadow="true" EnableViewState="False">
  <Shortcuts>
    <telerik:WindowShortcut CommandName="RestoreAll" Shortcut="Alt+F3"></telerik:WindowShortcut>
    <telerik:WindowShortcut CommandName="Tile" Shortcut="Alt+F6"></telerik:WindowShortcut>
    <telerik:WindowShortcut CommandName="CloseAll" Shortcut="Esc"></telerik:WindowShortcut>
  </Shortcuts>
</telerik:RadWindowManager>

Code Behind -

Public Sub ShowModalDialog(ID As String, URL As String)
 
  Dim newWindow As New RadWindow()
  'NavigateUrl to be chosen dynamically.
  newWindow.ID = ID
  newWindow.NavigateUrl = URL
  newWindow.VisibleOnPageLoad = True
  newWindow.OnClientClose = "OnClientClose"
  newWindow.Modal = True
 
  newWindow.header = "Test"
 
 
  newWindow.Shortcuts.Add(NewWindowShortcut("Maximize", "Ctrl+F2"))
  newWindow.Shortcuts.Add(NewWindowShortcut("Restore", "Ctrl+F3"))
  newWindow.Shortcuts.Add(NewWindowShortcut("Minimize", "Ctrl+F8"))
 
  RegisterControl(ID)
  ModalWindow.Windows.Add(newWindow)
 
End Sub

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 24 Feb 2016
15 answers
832 views
Hi,

I am thinking about adding the AjaxManager to the master page instead of one manager for each page.

Is there any disadvantage of using a single RadAjaxManager performance wise? I have a common type for Masterpage so I don't have to use findcontrol.

In the help file,

6) RadAjaxManager and RadAjaxPanel at the same application

There are some known issues when using both the manager and the panel in some complex applications - MasterPage or WebUserControls. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios.

What are the known issues? Since RadAjaxManager cannot ajaxify asp:panel anymore, it is not as easy to use as the RadAjaxPanel. I want to avoid any issues beforehand before I add a RadAjaxManager to my masterpage.

In addition, about RadCodeBlock:

What's the difference between using it and a regular asp:placeholder? If I enclose the <%=%> within a placeholder, it works as well. I need to know the advantage/disadvantage of using either performance wise. Since both are derived from UI.Control and don't have any additional functionalities... And since you don't have any info about it in the help file, I don't really see the point of having this extra control..
Maria Ilieva
Telerik team
 answered on 24 Feb 2016
1 answer
106 views

My customer wants to display different nested row controls, depending on the several clickable cells in a row. So if the user clicks on the cell in column 1, a dialog allowing to change some data should appear. If the user clicks on the cell in column 2, a different view presenting some child records shall be displayed, etc. etc.

Are NestedView templates the way to go here? Can I replace the template with every postback?

Also, there are views required that concern all rows. Would it be possible to show those before row 0?

Viktor Tachev
Telerik team
 answered on 24 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?