Telerik Forums
UI for ASP.NET Core Forum
3 answers
495 views

Hi,

We want to use the .net core scheduler for people to define their availability online.  This maybe as single meetings or a reoccurring meeting.  This will probably use the standard web api and db schema used in the telerik examples.  What I then need is a helper function that will return me all the periods of time a single user is available in a given week.  I have read elsewhere that recurrence is client side only and that a library such as ical.net is needed to load/cast the data and then interpret it using its functions.  However I see in this telerik example there is a class that seems to do this:

https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/server-side-programming/working-with-recurring-appointments

Before I go down the ical.net path can someone confirm if there is standard telerik SERVER code to get back dates from recurring meetings saved by the schedule and maybe provide more details or an example?

Thanks, Matt

 

 

 

 

Dimitar
Telerik team
 answered on 02 May 2019
1 answer
110 views

The same switch control in windos10 system,it can be slide drag:

press the block and drag,if it is samll distance,release the mouse,the block will go back,otherwise the distance exceed 30%-50%

 

 

Dimitar
Telerik team
 answered on 01 May 2019
1 answer
183 views

Hello,

We are currently using the Kendo DropDownList on our site using the FilterType.Contains filtering.  Here is an example of how we have one of our dropdowns set up currently:

@(Html.Kendo().DropDownListFor(c => c.Explant.FacilityId)
                        .OptionLabel("-- Select a Facility --")
                        .HtmlAttributes(new { style = "width:40%", id = "facilityDropdown", @class = "dropdown" })
                        .BindTo(Model.Facilities.OrderBy(c => c.Name))
                        .DataTextField("Name")
                        .DataValueField("Id")
                        .Filter(FilterType.Contains))

The issue is, the user is able to open up the dropdown just fine by pressing the spacebar, however when they are typing into the filter textbox in the dropdown and try to click the spacebar to add another word to the filter, the space is applied to the filter textbox, but the dropdown closes automatically.  This can be very annoying to our users who are trying to filter the results of the dropdown list with it.  I've tried searching through your site and forums as to why this behavior might be occurring, but the closest thread I found about it is this one from two years ago: https://www.telerik.com/forums/bug-dropdownlist-in-r3-2017-dropdown-gets-closed-when-space-is-hit-in-the-filter-textbox. 

I'm unsure if this is a bug with the dropdownlist, or if it's something on our end, but does anyone have any suggestions on a workaround for this bug?  We've attempted some Javascript to try to prevent its behavior, but we haven't been able to get that working either:

window.onkeydown = function (e) {
                e = e || window.event; // Normalize the event for IE
                var target = e.srcElement || e.target; // Get the element that the event was triggered on
                var tagName = target.tagName; // Get the tag name of the element
                var className = target.className;
                console.log((tagName === "INPUT" && e.keyCode == 32 && className == "k-textbox"))
                if (tagName === "INPUT" && e.keyCode == 32 && className == "k-textbox") {
                    return;
                }
            }

 

If anyone is able to provide any helpful insight into this issue, that would be greatly appreciated.

Thanks,

Jason

Veselin Tsvetanov
Telerik team
 answered on 30 Apr 2019
1 answer
97 views

Hi

I have a custom editable template and i would like to the owner to default owner, no selection. I have below code in the custom template but the value is not posted back to server during ajax call.  can someone advice ?

 

<div data-container-for="OwnerName" class="k-edit-field" id="owner">
    <input type="text" class="k-input k-textbox" name="ownername" id="ownername" data-bind="value:OwnerName" disabled>
    <input type="hidden" name="ownerId" data-bind="value:OwnerID" id="ownerId">
</div>

<script>

    $(function () {

        if (!$("\\\#title").val()) {
            var viewModel = kendo.observable({
                OwnerName: "Tester",
                ownerId: "TS0001"
            });
            kendo.bind($("\\\#owner"), viewModel);
        }

    });

</script>

Jimmy
Top achievements
Rank 1
Iron
Veteran
 answered on 30 Apr 2019
2 answers
140 views

Hello,

I get an error when trying to add Microsoft.AspNetcore.Mvc.Razor.RuntimeCompilation to my project to re-enable this feature which was removed from the base package. Attached is the error I am receiving.

Thanks,

Scott

Scott
Top achievements
Rank 1
 answered on 29 Apr 2019
5 answers
187 views

PivotGrid/TreeList control:

Expand/collapse button's mouseover  cursor is text style,not arrow or hand icon,like the treeview control/grid control

Preslav
Telerik team
 answered on 29 Apr 2019
3 answers
1.6K+ views
I am looking for a straightforward way to replace the update buttons with an icon only edit and delete button. I don't want to use font awesome icons I have a png I want to use (see attached.) and I want no text. The icons are round and fit within my theme.
Tsvetomir
Telerik team
 answered on 29 Apr 2019
3 answers
308 views

The current examples available online to implement an ImageBrowserController by extending EditorImageBrowserController do not work. Is there any documentation available for hooking this up for .NET Core?

 

Thank you.

Joana
Telerik team
 answered on 29 Apr 2019
15 answers
140 views

Hello Telerik community,

In the application I'm building I am trying to implement the Telerik UI Editor. While the size and position of the editor itself is completely fine, I seem to get some problems when trying to open some of it's tools which are connected to dropdown sections. These happen when using the tools 'formatting' and also when accesing the three-dotted "more tools" button.

I found online that it could maybe be caused by the jQuery version I'm using, so I tried updating to jQuery 3.3.1, but without luck unfortunately.

I am only getting this problem with Internet Explorer 11. Chrome or even simulating IE 10 seem to work fine.

I'm using ASP.NET Core 2.1. jQuery version 3.3.1. Kendo UI for ASP.NET Core.

I tried the implementation of the demo given here: https://demos.telerik.com/aspnet-core/editor/index.

I have tried both turning 'Resizable' true or false.

I also read that the positioning is caused by the scrollbar, which is true for me. However I don't know how to solve this, since the solution was to upgrade jQuery.

For my lay-out I'm using CSS Grid in combination with Flexbox.

 

Here's the code snippet of the Telerik editor implementation.

@(Html.Kendo().Editor()
                  .Name("editor")
                  .HtmlAttributes(new {style = "height:440px", aria_label = "editor"})
                  .Resizable(resizable => resizable.Toolbar(true).Content(true))
                  .ImageBrowser(imageBrowser => imageBrowser
                      .Image("~/images/{0}")
                      .Read("Read", "ImageBrowser")
                      .Create("Create", "ImageBrowser")
                      .Destroy("Destroy", "ImageBrowser")
                      .Upload("Upload", "ImageBrowser")
                  )
                  .Value(@<text>
                             <p>
                                 Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.<br/>
                                 In this version, the Editor provides the core HTML editing engine, which includes basic text formatting, hyperlinks, lists,
                                 and image handling. The widget <strong>outputs identical HTML</strong> across all major browsers, follows
                                 accessibility standards and provides API for content manipulation.
                             </p>
                             <p>Features include:</p>
                             <ul>
                                 <li>Text formatting & alignment</li>
                                 <li>Bulleted and numbered lists</li>
                                 <li>Hyperlink and image dialogs</li>
                                 <li>Cross-browser support</li>
                                 <li>Identical HTML output across browsers</li>
                                 <li>Gracefully degrades to a <code>textarea</code> when JavaScript is turned off</li>
                             </ul>
                             <p>
                                 Read <a href="http://docs.telerik.com/kendo-ui">more details</a> or send us your
                                 <a href="http://www.telerik.com/forums">feedback</a>!
                             </p>
                          </text>)
                  )

 

Here are some screenshot of the problem:

 

Joran
Top achievements
Rank 1
 answered on 29 Apr 2019
1 answer
120 views

Hi,

I have a async  upload control as shown below. It's on a razor page. I also have a couple of dropdownlists. When my SaveTraitFiles function is called, I need the bound value of the dropdown's selected value in my function. Right now it's always zero because of the async on the upload. If I remove the asyc and just process uploaded files on a submit, I get the desired value from the dropdown's bound property. Is there some magic sauce that I need to pour on this to get the async upload to get receive bound values of other controls?

Thanks ... Ed

 

 

@(Html.Kendo().Upload()
    .Name("traitFiles")
    .Async(a => a
        .SaveUrl("/Admin/UploadCertFiles?handler=SaveTraitFiles")
        .RemoveUrl("/Admin/UploadCertFiles?handler=RemoveTraitFiles")
        .AutoUpload(true))
    .Validation(v => v.AllowedExtensions(new string[] { ".pdf", ".jpg" }))
 
)
Joana
Telerik team
 answered on 29 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?