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

 I am trying to access text entered into a RadEditor but when I try to retrieve the value in a button click event there isn't any value there.  It works fine in Chrome but not IE 11.

 

Here is the UI tag:

 <td colspan="6">

 <telerik:RadEditor ID="reCommentsJDEItem" runat="server" ToolbarMode="ShowOnFocus" ToolsFile="~/BasicTools.xml" CssClass="td" Enabled="false"EditModes="Design" AutoResizeHeight="true" Height="80px"></telerik:RadEditor></td>

 

From the click event:

oPackSlipDetail.Comments = reCommentsJDEItem.Content;

 

No value appears even though something has been typed.  Version I am using: 2016.1.113.35  Runtime: v2.0.50727

 

Thanks

Marin Bratanov
Telerik team
 answered on 08 Feb 2016
12 answers
607 views
I'm frustrated beyond belief. What I want to do seems simple enough. First, I'm using RadControls Q2 for ASP.NET AJAX. I have a grid of users with four columns (username, email address, state, city). I need to edit existing records in place and add new records. Some of the properties of the grid include EditMode="InPlace", AllowAutomaticUpdates="true" and AllowAutomaticInserts="true". The issue I am having is that I need to have the "cities" combo box populate based upon the selection of the "state" combo box. Seems simple enough. The combo boxes appear in edit and insert modes. The combo boxes also need to stay in sync for an "edit" of an existing row.

I see examples of loading on demand, but not in the edit/insert row of a RadGrid. Populating the first combo box is easy, but the second... aaarrgh. I can not find an example of how to 'find' the EditItemTemplate combo box in a javascript function attached to the "OnClientSelectedIndexChanging" event.

I found another telerik example that was using a streamer page. Is that old tech? I'm using Q2 ASP.NET AJAX.

Please help.
Eyup
Telerik team
 answered on 08 Feb 2016
1 answer
487 views

Hello telerik team,

 I am developing an aspx page (C#, ASP.Net),

In my webform i have four buttons with its own functionality aligned similar to tabs.

If i click  button1, then button1 should be highlighted and automatically all the other three buttons should not be highlighted, vise versa to all the three buttons.

Only one clicked button should be highlighted at a time.

Is there any easy ways to achieve it..

Thanks in advance.

Will be more grateful if u people replied a bit faster..

Danail Vasilev
Telerik team
 answered on 08 Feb 2016
1 answer
103 views

I have a radgrid bound by entity datasource and has the following column:

<telerik:GridTemplateColumn UniqueName="Color" HeaderText="Background Color" DataField="Colour" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Center"
                                    SortExpression="myColor" AllowFiltering="false" HeaderStyle-Width="32px">
                                    <ItemTemplate>
                                        <div style='width: 16px; height: 16px; background-color: #<%# Eval("Colour") %>'></div>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadColorPicker runat="server" ShowIcon="true" ID="RadColorPicker1" SelectedColor='<%# System.Drawing.ColorTranslator.FromHtml("#" + Eval("Colour")) %>' />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>

 

The datasource looks like this

 

<asp:EntityDataSource ID="eds1" runat="server" OrderBy="[it].Name" ConnectionString="name=DBSchoolsEntities" DefaultContainerName="DBSchoolsEntities" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="Classifications" EntityTypeFilter="Classification">
                    </asp:EntityDataSource>

I have other columns on the grid that dont have EditItemTemplates and these fields update in the db just fine, but the colour picker column doesnt update in the database and I dont know why?

Viktor Tachev
Telerik team
 answered on 08 Feb 2016
1 answer
93 views

Hi all,

I have a grid and I use Popup for editing row. I use client side event OnPopUpShowing to set popup position and size. The problem is that my data contains text with symbols '<>' which are not allowed for web request and I need to replace them before request is sent to server. I can do it simple by javascript when any button is clicked, but I am not able to detect closing button (from top right corner).

Is there any client-side event when popup is closing?

Or is it possible to remove/hide closing button when dialog is showing?

Thank you for any idea,

Petr

Petr
Top achievements
Rank 1
Iron
 answered on 08 Feb 2016
1 answer
278 views

Hi guys,

I've been attempting to create and aspx page that will automatically launch the select window, as if the user had clicked the "Browse" button, as soon as the page loads.  I was able to launch the window successfully using a new button I created myself (ID "RunMe"), and as you can see I've tried a couple different methods in the code below to try and launch the window on page load (document.ready and an onload function call in the body tag).  I added in the timeouts in case the call was happening before the control finished loading.  I'm testing in Chrome Version 48.0.2564.97 m.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewFileUpload.aspx.cs" Inherits="CYBERWebPortal.NewFileUpload" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script type="text/javascript">
        function OnClientFileUploaded(sender, args) {
            //var contentType = args.get_fileInfo().contentType;
            //alert(contentType); 
            
            __doPostBack('RadAsyncUpload1', '');
           
        }
        function OnClientClicking(sender) {
            setTimeout(function () {
                $telerik.$(".ruFileInput").click();
            }, 100);
            //$telerik.$(".ruFileInput").click();
        }
        function FinishedLoading(sender) {
            setTimeout(function () {
                $telerik.$(".ruFileInput").click();
            }, 900);
            //$telerik.$(".ruFileInput").click();
        }

        $(document).ready(function () {
            setTimeout(function () {
                document.getElementById("RunMe").click();
            }, 900);
        });

    </script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body onload="FinishedLoading()">
    <div>
        <button type="button" id="RunMe" onclick="OnClientClicking()">Test</button>
        <p><strong> Your test was successful. You have reached doc upload!</strong></p>
        
            
            <div style="display:inline-block;" > 
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" >
                <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
                </telerik:RadScriptManager>
                
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" 
                runat="server"
                AutoAddFileInputs="false"
                OnFileUploaded="HandleFileUploaded" 
                OnLoad="HandlePageLoadForFiles" 
                OnClientFileUploaded="OnClientFileUploaded" 
                Localization-Select="Upload"  InputSize="25" 
                AllowedFileExtensions=".jpg,.jpeg,.pdf,.doc,.docx,.bmp,.tif,.tiff,.png,.txt,.ppt,.pptx,.xls,.xlsx,.rtf"
                TemporaryFolder="../App_Data/"
                TargetFolder="../TargetUploads/" 
                EnablePermissionsCheck="false"
                EnableInlineProgress="false" > 
        </telerik:RadAsyncUpload>
        
</div>
        
</div>

</body>
</html>

Ivan Danchev
Telerik team
 answered on 08 Feb 2016
2 answers
38 views

I have a form contains many types of controls and validationpart .contains a rad tabstrip has two tabs in one tab entry controls like radtextbox and radcombobx there is a vaidation for each control result in a validationsummary, second tab contains a radgrid containing add record button opens a radwindow cotaining a webform for enering data .

In normar case when pressing a tab from tab strib it cuases a postback so the validation summary has error messages but the add button in the radgrid works fine.

I edited the config file add

<add key="validationsettings:unobtrusivevalidationmode" value="none">

 

the tabstrip worked fine but the add button in the radgrid has no effect and the window.radopen does not occure

is there a setting do the same thing witout affecting radgrid or radwindow

 

 

Ivan Danchev
Telerik team
 answered on 08 Feb 2016
7 answers
162 views
Is it possible to collapse a node when one of the nodes below are clicked?  I have a navigation control with multiple nodes with some nodes having "sub" nodes.  When one of the sub nodes are clicked the page does what I want (navigate a separate panel to a new page) but the node stays expanded unless another parent node is clicked on the navigation control itself is clicked.
Thanks,
Jeff
Jon
Top achievements
Rank 1
 answered on 08 Feb 2016
3 answers
130 views
I have drilldown enabled on my Org Chart, but I want to load the page "already drilled down" to a specific Node ID

I'll know the Node ID when the page loads

So is this possible, and if so, how?

Thanks
Peter Filipov
Telerik team
 answered on 08 Feb 2016
2 answers
62 views

I've made a lot of progress with the scheduler, but I am running into one issue.

I am working on scheduling physicians and they are either scheduled as a person or a group.

I have two seperate drop down boxes.  One for physicians and one for groups.

 I am able to display the appointment and return either the group name or physician name on the appointment box, but I have set a parameter for inserting or updating entries with a @Type parameter.  @Type is defined in my c# code and works for all other function, except when dragging an appointment to another day.  @Type sets whether the insertion was a physician or a group.  When I do a report it will need to know if the ID stored is a physician ID or group ID.  Based on that it will resolve group/physician names and create links.

 

Long story short I need to be able to define @Type insert parameter while the appointment is being moved to another day.  The appointment wouldn't necessarily be the last appointment open, which is making it harder.  The javascripting I've tried so far with OnClientAppointmentMoveEnd has caused the appointment to not be stored in SQL at all.

Daniel
Top achievements
Rank 1
 answered on 07 Feb 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?