Telerik Forums
UI for ASP.NET Core Forum
2 answers
2.6K+ views

Hi Telerik,

When I use the "services.AddKendo();" command,the program gives the following message.

I have followed the instructions on your page, the situation has not changed.

I first tried it with version 2016.3.118, then I tried it with the latest promotional version, the message has not changed.

Best regards,

 

 

 

 

Mehmet Bingol

 

Exception Unhandled:

System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: 
Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': 
Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.5.0, 

InvalidOperationException: Error while validating the service descriptor 'ServiceType: Kendo.Mvc.Rendering.IKendoHtmlGenerator Lifetime: 
Transient ImplementationType: Kendo.Mvc.Rendering.KendoHtmlGenerator': Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ClientValidatorCache' 
from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

 

 

Mehmet
Top achievements
Rank 2
 answered on 09 Jul 2020
5 answers
268 views
How do we include antiForgeryTokens to the submit action?
Ivan Danchev
Telerik team
 answered on 08 Jul 2020
1 answer
322 views
I can see that its possible to use most of the kendo editors for a field, but how do I use a <textarea> and not a textbox?  I'm aware that there's the Editor control, but I want pure text, not HTML, RTF or any other markup.
Dimitar
Telerik team
 answered on 08 Jul 2020
1 answer
544 views

I'm trying to create a toolbar with a dropdown menu in my grid, similar to the demo shown here: https://demos.telerik.com/aspnet-core/grid/toolbar-template.

I can not find any information on doing it with tag helpers.

Tsvetomir
Telerik team
 answered on 07 Jul 2020
3 answers
138 views

How get value from inputbox of selected checkboxitem(and subitems)? I can get label of checked item(item.Name), but i don't now how get value of inputbox.

 

<script id="treeview_distribute_template" type="text/kendo-ui-template">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td width="500px;">
                                                                            #= item.Name # &nbsp;
                                                                        </td>
                                                                        <td >
                                                                            <input id='comment_input' type='text' style="width:500px;" />
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </script>

 function getCheckedItems(treeview) {
        var nodes = treeview.dataSource.view();
       
        return getCheckedNodes(nodes);
    }

    function getCheckedNodes(nodes) {
        var node, childCheckedNodes;
        var checkedNodes = [];

        for (var i = 0; i < nodes.length; i++) {
            node = nodes[i];
            if (node.checked) {
                checkedNodes.push(node);
            }

            if (node.hasChildren) {
                childCheckedNodes = getCheckedNodes(node.children.view());
                if (childCheckedNodes.length > 0) {
                    checkedNodes = checkedNodes.concat(childCheckedNodes);
                }
            }

        }

        return checkedNodes;
    }

Aleksandar
Telerik team
 answered on 06 Jul 2020
3 answers
1.0K+ views

Hello,

Looking for an easy solution to enable/disable all grid rows based on other values/selections on the page.

The following selectable parameters for the grid gives me exactly what I need but I need to be able to configure the grid based on the user's input values on the page.

.Columns(columns => {
    columns.Bound(e => e.Id).Hidden();
    columns.Select()
        .Width("20px");
    columns.Bound(e => e.Name)
        .Title("Name")
        .Width("400px");
    columns.Bound(c => c.Description)
        .Title("Description")
        .Width("400px");
})
.Selectable(select => select
    .Mode(GridSelectionMode.Single)
    .Type(GridSelectionType.Row)
)

 

I've tried using the following jquery to toggle the rows, with no luck.  'enabled' is the parameter passed to the function.

var grid = $('#grid').data('kendoGrid');
 
grid.items().each(
    function (index, value) {
        $(value).find('.k-checkbox').attr('disabled', !enabled);
    }
);

 

Any suggestions on how I can achieve the functionality needed with the grid component?

Thanks.

Jason

 

 

Jason
Top achievements
Rank 1
Veteran
 answered on 03 Jul 2020
3 answers
263 views
Are Razor Pages supported by the Forms widget.  I keep getting an unhandled exception caught in the middleware after the Exception Handler has completed and nothing is returned just the <div></div> that I placed around it
Andy
Top achievements
Rank 1
Veteran
 answered on 03 Jul 2020
1 answer
128 views

The demo here: https://demos.telerik.com/aspnet-core/autocomplete/clientfiltering

is missing this script which is in the other demos.

<script>
      function onAdditionalData() {
      return {
          text: $("#[your control's name]").val()
      };

</script>

It would be helpful to be able to report these things from the page.

Martin
Telerik team
 answered on 01 Jul 2020
17 answers
1.1K+ views
I'm building an ASP.Net Core app that fills PDF documents and saves them. I had planned on building it to run on Linux servers and develop on a Mac. But....it appears the document processing libraries are Windows-only? I get an error stating"Could not load type 'System.Windows.Point' from assembly 'WindowsBase...". Is this the case? Does this have to be built and ran on a Windows machine?
Joel
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 30 Jun 2020
7 answers
176 views

I am trying to place an Editor inside of a pane in a Splitter. The only problem is that the Editor goes past the end of the Splitter when I set the height to 100%, creating overflow in the pane, which I have hidden.

The workaround that I have found is putting the editor to have a height of calc(100% - 0px), but I feel as though this should not be necessary. Have I missed something here?

 

Here is the Tag Helpers with the editor height at 100% which produces the overflow.

 

<kendo-splitter name="cp-homepage-splitter" orientation="SplitterOrientation.Vertical" style="height:100%;">
    <pane size="115px" collapsible="false" resizable="false" scrollable="false" id="cp-homepage-top-pane">
        <p class="iv-title iv-title-2">Home page</p>
        <p class="alert">Set the content for the first page shown.</p>
    </pane>
    <pane collapsible="false" resizable="false" id="cp-homepage-bottom-pane" style="height:100%;overflow-y:hidden;">
        <kendo-editor name="HomepageEditor" aria-label="editor" style="height:calc(100% - 0px);">
            <resizable enabled="false" />
            <tools>
                <tool name="bold" />
                <tool name="italic" />
                <tool name="underline" />
                <tool name="strikethrough" />
                <tool name="fontName" />
                <tool name="fontSize" />
                <tool name="foreColor" />
                <tool name="backColor" />
                <tool name="copyFormat" />
                <tool name="applyFormat" />
                <tool name="justifyLeft" />
                <tool name="justifyCenter" />
                <tool name="justifyRight" />
                <tool name="justifyFull" />
                <tool name="insertUnorderedList" />
                <tool name="insertOrderedList" />
                <tool name="outdent" />
                <tool name="indent" />
                <tool name="createLink" />
                <tool name="unlink" />
                <tool name="subScript" />
                <tool name="superScript" />
                <tool name="tableEditing" />
                <tool name="viewHtml" />
                <tool name="formatting" />
                <tool name="cleanFormatting" />
                <tool name="homePageSaveTool" template-id="homePageSaveToolTemplate" />
            </tools>
            <content>
                <h1>Test</h1>
            </content>
        </kendo-editor>
 
    </pane>
</kendo-splitter>
 
<script id="homePageSaveToolTemplate" type="text/x-kendo-template">
    <button id="saveHomePageBtn" class="k-button k-primary">Save</button>
</script>
Ivan Danchev
Telerik team
 answered on 30 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?