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

Hello,

I noticed a bug with your Tooltip that I haven't been able to find a solution for in your forums.  When using your tooltip, when I'm scrolled up to the very top of the page and mouse over the button with the tooltip, it displays perfectly fine.  However, when I scroll further down the page and then mouse over the button with the tooltip, the tooltip's position gets pushed down.  It seems to remain static where it is, and doesn't update based on where the element is that it's targeting.  I've attached a couple screenshots to show what I mean by this, and the arrows in each screenshot show what element I'm hovering over to display the tooltip.  The tooltip just displays in the wrong position if I scroll a little bit down the page.  If anyone can help me with the solution to this, please let me know.  Here's my code for the tooltip below:

@(Html.Kendo().Tooltip()
 .For("#denyCredit")
 .Position(TooltipPosition.Bottom)
 .Content("Denied Credit - Follow Up with Vendor using Interrogation Report"))
Petar
Telerik team
 answered on 20 Aug 2019
3 answers
111 views
The data returned by the API is not displayed in the list, and there is no data displayed
Alex Hajigeorgieva
Telerik team
 answered on 19 Aug 2019
5 answers
915 views

Hello,

we are using a kendo-combobox in our razor-pages application as a search-box. I want to highlight the allready entered text within the results.

For that I need to get the currently entered Input-Value from the Combobox.
But - $('\#customerComboBox').val() just returns the currently SELECTED Item in the Combobox.
(And nothing when no entry is selected)

How can I access the currently entered Input-Text from the <kendo-combobox ...> before the user selects an Item?
(This works within a <kendo-autocomplete ...> -Control)

 

<kendo-datasource name="dataSourceCustomer" server-filtering="true">
<transport>
        <read url="/pages/Custom/?handler=CustomerRead" datatype="json" type="POST" />
    </transport>
</kendo-datasource>
<kendo-combobox name="CustomerComboBox"
    datasource-id="dataSourceCustomer"
    datatextfield="Text"
    datavaluefield="Value"
    filter="FilterType.Contains"
    highlight-first="true"
    template="#=Text # | #=console.log($('\#CustomerComboBox').val()) #"
    >
</kendo-combobox>

 

Thanks in advance and best regards,

Lars

Eyup
Telerik team
 answered on 15 Aug 2019
2 answers
105 views

Hi All

Normally use Telerik with my Xamarin or WPF project, but now have been asked to do a Web front end, which is no problem. I am try to brand the site to my customers own colours etc, so a bit of CSS is required.

While, I'm getting there changing the background, hover colours etc, i'm struggling to find some the the items required for the grid control and a few others.

Is there a definative list of CSS for the Telerik controls e.g k-header is the grid header etc? If not what tools do you guys use for CSS discovery and branding?

Any help appreciated.

 

Thanks

Andy

Nikolay
Telerik team
 answered on 14 Aug 2019
3 answers
131 views

Hi,
I am having an issue with the ASP.Net Core DropdownList with IE 11.  I have done a search and found a few suggested fixes, none seem to resolve my issue.

The scenario is that I have one dropdownlist that on its change event is to cause another dropdownlist to populate with related data.  It is a parent (Category) to child (Subcategory) relationship. 

The issue is that on the change event of the parent dropdownlist the child is not being refresh as expected.  If any new subcategories have been added since the last time the browser was opened, they do not show.  Sometimes even closing the browser and reopening it does not refresh the data.  I believe it is a caching issue related to IE as it works fine in Chrome.  I have followed the suggested fixes below.  They do not resolve my issue in a satisfactory way.

Solution one suggests using the inherit cascading functionality of the dropdownlist.  This does not work. In the code sample you will see that I am using a function within the .Data() to pass the parent category id.  I cannot seem to get that to work with passing the antiforgerytoken as well. 

https://www.telerik.com/forums/dropdownlist-datasource-read-and-refresh-the-parameters-

Solution two suggests to add “.Type(HttpVerbs.Post)” to the read action of the dropdownlists.  This does work if I remove our AntiForgeryToken protection.  The problem with this solution is that we cannot remove the antiforgerytoken for any post action even if the result is not a change to data.

https://stackoverflow.com/questions/26612828/issue-updating-kendo-dropdownlist-with-internet-explorer

Is there any other solution to my issue?  IE 11 is the official browser the company supports and as such I need it to work with IE 11.

In this first example I am using the cascading functionality with trying to pass the antiforgerytoken within the getCategoryId function.

function onCategoryChange() {       
    $("#SubCategoryId").data("kendoDropDownList").dataSource.read();
}
 
function getCategoryId() {
    var categoryId = $("#CategoryId").data("kendoDropDownList").value();       
    var id = categoryId;
    dict = new Object();
    dict['parentId'] = id;
    return { args: dict, "__RequestVerificationToken": $('input[name=__RequestVerificationToken]').val() };
}

 

@(Html.Kendo().DropDownListFor(m => m.CategoryId)
    .HtmlAttributes(new { @class = "input-category" })
    .DataTextField("Description")
    .DataValueField("ServiceCategoryId")
    .Events(e => e.Change("onCategoryChange"))
    .DataSource(source => {
        source.Read(read => {
            read.Action("ActionSelectList", "ServiceRequest", new { listModel = "category" }).Type(HttpVerbs.Post).Data("sendAntiForgery");
            });
        })                  
)
 
@(Html.Kendo().DropDownListFor(m => m.SubCategoryId)
    .HtmlAttributes(new { @class = "input-category" })
    .ValuePrimitive(true)
    .DataTextField("Description")
    .DataValueField("ServiceCategoryId")
    .NoDataTemplate("NO SUBCATEGORY")
    .DataSource(source => {
        source.ServerFiltering(true);
        source.Read(read => {
            read.Action("ActionSelectList", "ServiceRequest", new { listModel = "subcategory" }).Data("getCategoryId");
        });
    })
    .Enable(false)
    .AutoBind(false)
    .CascadeFrom("CategoryId")
)

 

In this second example is am using the “.Type(HttpVerbs.Post)" solution with antiforgerytoken protection turned off.  The onCategoryChange function and the parent categoryId dropdownlist are the same as the first.  This works but is not a real solution since I have to turn of antiforgerytoken.

function getCategoryId() {
    var categoryId = $("#CategoryId").data("kendoDropDownList").value();       
    var id = categoryId;
    dict = new Object();
    dict['parentId'] = id;
    return { args: dict };
}

 

@(Html.Kendo().DropDownListFor(m => m.SubCategoryId)
    .HtmlAttributes(new { @class = "input-category" })
    .ValuePrimitive(true)
    .DataTextField("Description")
    .DataValueField("ServiceCategoryId")
    .NoDataTemplate("NO SUBCATEGORY")
    .DataSource(source =>
    {
        source.ServerFiltering(true);
        source.Read(read =>
        {
                read.Action("ActionSelectList", "ServiceRequest", new { listModel = "subcategory" }).Data("getCategoryId").Type(HttpVerbs.Post);
        });
    })
    .AutoBind(false)
)

 

Thank you for any help you can provide.

Rick

 

 

Rick
Top achievements
Rank 1
 answered on 13 Aug 2019
3 answers
673 views

what is the difference between the NuGet package Kendo.for.AspNet.Core vs. Telerik.UI.for.AspNet.Core ?
Under what situation to use one versus the other ?

I downloaded both from Visual Studio NuGet into my project then noticed I get a compilation warning error about the PackageReference and Version.

Nikolay
Telerik team
 answered on 12 Aug 2019
1 answer
132 views

Hi Telerik experts,

 

Could you educate me add a logo picture on the top menu, like this picture showed.  Thanks a lot!

 

 

Ivan Danchev
Telerik team
 answered on 09 Aug 2019
3 answers
659 views

Hi, looking for information on how to integrate spell checking in the asp.net core editor component. Can anyone provide an example.  I see radspell in MVC but not core.

Thanks in advance, Matt

Marin Bratanov
Telerik team
 answered on 09 Aug 2019
1 answer
142 views
     Can I have a vertical toolbar?
Aleksandar
Telerik team
 answered on 09 Aug 2019
1 answer
70 views

I've got a webapp already running fine and I've been thinking about adding scheduler.  What would be the easiest way to implement it?  My data will be on a sql database.

 

Thanks in advance

Veselin Tsvetanov
Telerik team
 answered on 09 Aug 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?