Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
We are using Telerik Web UI component version 2015.1.310.40

We have below issue while posting the message in RadEditor, we are validating and restricting the characters up to 2000 character.

Issue 1: We are losing the format while pasting the text from WordPad where it is working from MS-Word

Issue 2: There were some issues while validating the count (number of character) when keying and pasting, is there any defined method to use?

<telerik:RadEditor EditModes="Design" ID="txtMessage" OnClientLoad="OnClientLoad"
                                                            CssClass="radEMailDiv" runat="server" BackColor="White" EnableResize="false"
                                                           StripFormattingOnPaste="MSWord" OnClientCommandExecuted="getCount">

Please suggest the solution to be used.
Ianko
Telerik team
 answered on 14 Apr 2016
1 answer
171 views

I need to use the following ItemTemplate for styling reasons, however ClickToOpen="true" does not work. What needs to be added in order for ClickToOpen to work properly? If I remove the ItemTemplate block it works as expected.

<telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="true" Skin="Bootstrap">
    <Items>
        <telerik:RadMenuItem Text="Item 1">
            <ItemTemplate>
                <div class="caption">
                    <a href="#"><span><i></i>Item 1</span></a>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadMenuItem Text="Sub Item 1"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 2"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 3">
                    <Items>
                        <telerik:RadMenuItem Text="Sub Sub Item 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 2"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 3"></telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Item 2">
            <ItemTemplate>
                <div class="caption">
                    <a href="#"><span><i></i>Item 2</span></a>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadMenuItem Text="Sub Item 1"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 2"></telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Sub Item 3">
                    <Items>
                        <telerik:RadMenuItem Text="Sub Sub Item 1"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 2"></telerik:RadMenuItem>
                        <telerik:RadMenuItem Text="Sub Sub Item 3"></telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

Veselin Tsvetanov
Telerik team
 answered on 14 Apr 2016
1 answer
71 views

Hi, 

 

I am  new to Kendo and I am facing a very confusing problem that i cant solve.

 

I have a grid which contains 5 columns like so - RoleName, Description, isActive, isDeleted, Action.

Now i have validation just on the RoleName Column.

 

My issue is, I should not let the user Input duplicate RoleName on edit or on creating a new record. For example, RoleName = Admin already exists on the grid and when the user creates a new record he shouldn't be able to enter Admin again, i got this part to work however when the user edits the already existing row which contains "Admin" as the rolename and changes isActive, the validation fires again telling Admin already exists and i cant edit that row. How do i fix this?

 

fields: {
                            Id: { type: "number", editable: false },
                            RoleName: {
                                type: "string",
                                validation: {
                                    required: true,
                                    validateOnBlur: false,
                                    rolenameValidation: function (input) {
                                        if (input.is("[name='RoleName']") && input.val() !== "" && NetAppAssetRecoveryRoleAdminMethods.IfRoleNameExists(input.val())) {
                                            input.attr("data-rolenameValidation-msg", "Role Name already exists");
                                            return false;
                                        }
                                        else if (NetAppAssetRecoveryRoleAdminMethods.IfRoleNameExists(input.val()) == undefined)
                                        {
                                            input.attr("data-rolenameValidation-msg", "Role Name can contain only characters");
                                            return false;
                                        }
                                        return true;
                                    }
                                }
                            },.....
...............
...............

 

Konstantin Dikov
Telerik team
 answered on 14 Apr 2016
1 answer
63 views

I am needing to change the duration into the timeslote created event as I am using that to show holidays but i see in the event the duration is readonly when i access that is their anyway to change that at all please.

 

01.protected void apertureAppointments_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
02.      {
03.          int i = 0;
04.          bool isFound = false;
05.          List<tblApertureNetShiftPattern> _list = new List<tblApertureNetShiftPattern>();
06.          _list = _dal.getHolidays();
07.          List<Resource> resources = new List<Resource>(apertureAppointments.Resources.GetResourcesByType("Managers"));
08.          Resource res = resources[5];
09. 
10.          foreach (tblApertureNetShiftPattern sp in _list)
11.          {
12.              if (_list.Count >= 1)
13.                  i++;
14.              else
15.                  i = 0;
16. 
17.              DateTime dt1 = Convert.ToDateTime(_list[i - 1].startdate);
18.              DateTime dt2 = Convert.ToDateTime(_list[i - 1].endDate);
19. 
20.              TimeSpan span = dt2.Subtract(dt1);
21.              if (e.TimeSlot.Start == dt1 && e.TimeSlot.Resource.Text == sp.manager_name)
22.              {
23.                  isFound = true;
24.                  if (DoDateRangesOverlap(e.TimeSlot.Start, e.TimeSlot.End, dt1, dt2) && isFound == true)
25.                  {
26.                      Label temperatureLabel = new Label();
27. 
28.                      if (sp.appointmentType == Constants.shiftDayoff)
29.                      {
30.                          e.TimeSlot.CssClass = "DayOfCssStyle";
31.                          temperatureLabel.CssClass = "DayOfCssStyle";
32.                          temperatureLabel.Text = sp.Description;
33.                      }
34.                      else if (sp.appointmentType == Constants.shiftHoliday)
35.                      {
36.                          e.TimeSlot.CssClass = "HolidayCssStyle";
37.                          temperatureLabel.CssClass = "HolidayCssStyle";
38.                          temperatureLabel.Text = sp.Description;
39.                      }
40.                      else if (sp.appointmentType == Constants.shiftStat)
41.                      {
42.                          e.TimeSlot.CssClass = "statCssStyle";
43.                          temperatureLabel.CssClass = "statCssStyle";
44.                          temperatureLabel.Text = sp.Description;
45.                      }
46.                      else if (sp.appointmentType == Constants.shiftsickDay)
47.                      {
48.                          e.TimeSlot.CssClass = "SickDayStyle";
49.                          temperatureLabel.CssClass = "SickDayStyle";
50.                          temperatureLabel.Text = sp.Description;
51.                      }
52.                      else
53.                          temperatureLabel.Text = "OCCUPIED";
54. 
55.                      Image imageControl = new Image();
56. 
57.                      imageControl.ImageUrl = @"~\images\aperturenet\Calendar\resources\holidays.png";
58. 
59.                      temperatureLabel.BackColor = System.Drawing.Color.Orange;
60. 
61.                      e.TimeSlot.Control.Controls.AddAt(1, temperatureLabel);//add the image
62.                      e.TimeSlot.Control.Controls.AddAt(2, imageControl);
63.                  }
64.              }
65.          }
66.      }

Veselin Tsvetanov
Telerik team
 answered on 14 Apr 2016
1 answer
74 views

Hello team,

I am using rad scheduler, while inserting new appointment email address is saved in the table. When exporting the appointment i want that email address is also get export with the appointment and when i send the appointment i want that email id is get filled in "To" filed in outlook .

Also How to change the caption of custom attributes in edit pop up in scheduler.

Thanks in Advance.

Nencho
Telerik team
 answered on 14 Apr 2016
3 answers
70 views

hi,

how to get reference to breadcrumb box in fileexplorer grid?  I'd like to make it editable?

is it possible?

thanks

Vessy
Telerik team
 answered on 13 Apr 2016
1 answer
116 views

When I implement in my usercontrol from your demo:

 

<telerik:RadMediaPlayer RenderMode="Lightweight" ID="RadMediaPlayerFake" runat="server">
      <PlaylistSettings YouTubePlaylist="PLvmaC-XMqeBb991YNEWAHYL9ZJAeURr-r" Mode="Buttons" ButtonsTrigger="MouseDown" />
</telerik:RadMediaPlayer>

 

The app responses with:

The remote server returned an error: (410) Gone.

What could be causing this? The channel id is OK...

 

Marc

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 13 Apr 2016
1 answer
391 views

Hi,

I am experiencing an exception Sys.ArgumentNullException: value cannot be null: parameter name: panelsCreated[6].

Not sure what is causing it, but I suspect the exception has something to do with RadWindow since it occurs when I open a RadWindow repeatedly.

Thanks in advance.

The markup for the 2 RadWindows are as follows:

<telerik:RadWindowManager ID="Singleton" runat="server" Animation="None" Behaviors="Move"
        Width="900px">
        <windows>
            <telerik:RadWindow ID="rwProtoResponseMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwProtoResponseMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/ProtoResponseMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwResource" runat="server" Title="Pick a Resource" VisibleStatusbar="false"
                Modal="true" NavigateUrl="~/Agency/Search/ResourceSearch.aspx"
                Width="800" Height="650">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPatientProfileEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPatientProfileEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Patient"
                NavigateUrl="~/Agency/Authoring/PatientProfileEditEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/PrototypeMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeSummary" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeSummary_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Summary"
                NavigateUrl="~/Agency/Authoring/PrototypeSummary.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeQuestionTypeChange" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeQuestionTypeChange_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Question Type"
                NavigateUrl="~/Agency/Authoring/PrototypeQuestionTypeChange.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeBlueprint" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeBlueprint_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Blueprint"
                NavigateUrl="~/Agency/Authoring/PrototypeBlueprint.aspx">
            </telerik:RadWindow>
        </windows>
    </telerik:RadWindowManager>

 

The javascript for opening the RadWindows are as follows:

function OpenProtoResponseMediaEdit(prid, prrrsi)
            {
                var url = '<%= ConvertRelativeUrlToAbsoluteUrl("~/Agency/Authoring/ProtoResponseMediaEdit.aspx") %>';
                url = url + "?prid=" + prid + "&prrrsi=" + prrrsi;
 
                logsafe(url);
 
                var oWnd = $find("<%= rwProtoResponseMediaEdit.ClientID %>");
                //oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                oWnd.show();
                oWnd.setSize(950, 800);
                oWnd.setUrl(url);
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
                oWnd.center();
            }
 
            function rwProtoResponseMediaEdit_ClientClose(sender, args) {
 
                var arg1 = args.get_argument();
 
                //logsafe("rwProtoResponseMediaEdit_ClientClose");
                //logsafe(arg1);
                if (arg1 && arg1.indexOf('ok') === 0) {
                    SetNeedToConfirm('true');
                    //alert('needToConfirm = true');
                }
 
                var hidAddOptionsMediaAjax = $('#' + '<%=hidAddOptionsMediaAjax.ClientID%>');
                var btnAddOptionsMediaAjax = $('#' + '<%=btnAddOptionsMediaAjax.ClientID%>');
 
                hidAddOptionsMediaAjax.val(arg1);
                btnAddOptionsMediaAjax.click();
            }
 
 //Get current RadWindow
                    function GetRadWindow() {
                        var oWindow = null;
                        if (window.radWindow)
                            oWindow = window.radWindow;
                        else if (window.frameElement && window.frameElement.radWindow)
                            oWindow = window.frameElement.radWindow;
                        return oWindow;
                    }
 
                    function CloseRadWindow(arguments) {
                        var wnd = GetRadWindow();
                        wnd.close(arguments);
                    }
 
                    function OpenResourcePicker() {
 
                        var oWindow = GetRadWindow();
 
                        var oManager = oWindow.get_windowManager();
 
                        setTimeout(function () {
 
                            var winResourceSearch = oManager.getWindowByName("rwResource");
                            //winResourceSearch.remove_close(rwResource_ClientClose); // Remove the close handler, if exist
                            winResourceSearch.add_close(rwResource_ClientClose); // Set the close handler
 
                            oManager.open(null, "rwResource"); // Open RadWindow via RadWindowManager
                        }, 0);
                    }
 
                    function rwResource_ClientClose(sender, args) {
                        //logsafe('ProtoResponseMediaEdit rwResource_ClientClose');
                        //logsafe(args.get_argument());
 
                        var arg1 = args.get_argument();
 
                        sender.remove_close(rwResource_ClientClose); // Remove the close handler, if exist
 
                        setTimeout(
                            function () {
                                var hidResourcePickerPostback = $('#' + '<%=hidResourcePickerPostback.ClientID%>');
                                hidResourcePickerPostback.val(arg1);
 
                                var btnResourcePickerPostback = $('#' + '<%=btnResourcePickerPostback.ClientID%>');
                                btnResourcePickerPostback.click();
                            }, 100);
                    }

Vessy
Telerik team
 answered on 13 Apr 2016
3 answers
134 views

We are using telerik control in our app with windows authentication and upload fails in load balancer with ie11. With Compatibility view it doesn't work either.     

One of the solution that has been posted in the online is to issue a HEAD or a GET request prior to the POST.

How can this be done with the Telerik control?

 

Thanks!

Veselin Tsvetanov
Telerik team
 answered on 13 Apr 2016
4 answers
174 views

We have nested Nested tabstrip/multipage(s) and are using RenderSelectedPageOnly="true". It seems that nested tabstrips and the selected child pages are also rendered before the parent tab item is clicked which means for us about 6 pages are rendered as soon as the user hits the home page, incurring not only web but RDBMS traffic.

It seems this example - http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx

still loads the selectedpage="0" before it is clicked (which in our case for instance would be when the parent tabstrip/multipage is loaded.

Is there a way to avoid this behaviour and only load the child selectedpage when the parent tab containing the child tabstrip/multipage is selected?

 

Veselin Tsvetanov
Telerik team
 answered on 13 Apr 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?