Telerik Forums
UI for ASP.NET Core Forum
1 answer
103 views

The code showing how to return json to the client is missing in the autocomplete examples

using Microsoft.AspNetCore.Mvc;


namespace Kendo.Mvc.Examples.Controllers
{
    public partial class AutoCompleteController : Controller
    {
        [Demo]
        public IActionResult ClientFiltering()
        {
            return View();
        }
    }
}
Petar
Telerik team
 answered on 09 Jul 2019
1 answer
167 views

     Hello,

 

I would like to ask if it's possible to group DropDownListFor options as it is described in this link (https://demos.telerik.com/aspnet-core/dropdownlist/grouping), but for DropDownListFor?

 

Thank you.

 

e.g. How can I group my dropdown options by LineOfBusinessCategory?

@(Html.Kendo().DropDownListFor(m => m.CompanyHasLineofBusiness.LineOfBusinessID)
                                                      .DataTextField("LineOfBusinessName")
                                                      .DataValueField("LineOfBusinessID")
                                                      .FixedGroupTemplate("LineOfBusinessCategory")
                                                      .DataSource(source =>
                                                      {
                                                          source.Custom();
                                                          source.ServerFiltering(true);
                                                          source.Read(read =>
                                                          {
                                                              read.Action("LineOfBusinessNameList", "Midas").Type(HttpVerbs.Post);
                                                          });
                                                      })
                                                      .HtmlAttributes(new { style = "width: 100%", @validationMessage = "Mandatory" })
                              )

 

Christos
Top achievements
Rank 1
 answered on 08 Jul 2019
3 answers
119 views

hi,

I am following this example:  https://docs.telerik.com/kendo-ui/controls/navigation/buttongroup/overview

After i added the buttongroup, i got 185 errors. . Is something wrong with my DIV tag ?

    <div class="demo-section" style="width: 250px;">


        @(Html.Kendo().DropDownList()
              .Name("usagedd")
              .DataTextField("Text")
              .DataValueField("Value")
              .DataSource(source =>
                {
                  read.Action("GetPlanesDropDown", "Crud");
                    });
              })
              .HtmlAttributes(new { style = "width: 30%" })
        )

        <ul id="buttongroup">
            <li>Option 1</li>
            <li>Option 2</li>
            <li>Option 3</li>
        </ul>

    </div>

Peter
Top achievements
Rank 1
 answered on 05 Jul 2019
1 answer
182 views

I'm wondering if this idea I've had is possible, and if so, how to go about implementing it.

Basically, I have a Controller that pulls data out of a MySQL database using Dapper, and a View that is composed of a bunch of grids. All these grids have an Action Method in the controller that is responsible for sending the pulled data over to the grids. Once the data has been loaded into these grids, there are checkboxes next to everything for a user to make selections. 

The end goal is to generate a PDF file utilizing the data that the user has selected. I've been looking into libraries that would aid in this PDF generation, and I'm wondering if there is a way to pass the selected data back to the controller in order to utilize a C# library for this task of PDF Generation. Otherwise, I will look into JavaScript libraries in order to implement this. Any suggestions would be much appreciated. Thanks!

Boyan Dimitrov
Telerik team
 answered on 04 Jul 2019
2 answers
364 views

Hello,

 

I am wondering if there is any way to customize the DateRangePicker to allow for it to have the two calendar months stacked vertically when it is opened. I am looking to use the range picker in a sidebar on my page and it would fit much better vertically than the default horizontal. 

 

Thank you

Teya
Telerik team
 answered on 04 Jul 2019
2 answers
502 views

Can someone advice how do I include anti forgery token and parent ID in the hierarchical grid?

 

    <script id="template" type="text/kendo-tmpl">
        @(Html.Kendo().Grid<TransactionRevenue>()
        .Name("Grid_#=ITransactionId#")
        .Columns(columns =>
        {
            columns.Bound(o => o.InvoiceToName).Title("Receive From").Width(450);
            columns.Bound(o => o.Amount).Format("{0:c}").Width(200);
        })
        .DataSource(dataSource => dataSource
            .Ajax()
            .ServerOperation(false)
        .Read(read => read.Action("HierarchyBinding_Orders", "Grid", new { TID = "#=ITransactionId#" }))  //****Need to include token here
        )
        .Sortable()
        .ToClientTemplate()
        )
    </script>

Tsvetomir
Telerik team
 answered on 03 Jul 2019
4 answers
221 views

somehow my scheduler controller has a bad appearance  (see picture)

Do i need to apply a theme or css class ?

 

this is my cshtml code:

        @(Html.Kendo().Scheduler<SkyApp.Models.CosmosDB.ScheduleViewModel>()

            .Name("scheduler")
            .StartTime(new DateTime(2019, 1, 1, 6, 00, 00))
            .Height(600)
            .Width(800)
            
            .Views(views =>
           {
           views.MonthView(w => w.Selected(true));
           views.DayView();
           views.WeekView();
           views.WorkWeekView();
           })
           .Timezone("Etc/UTC")
           .DataSource(d => d
                .Events(e => e.Error("onError"))
                .Model(m =>
                {
                   m.Id(f => f.EventId);
                   m.RecurrenceId(f => f.RecurrenceId);
                })
                .Read(read => read.Action("Schedules_Read", "Crud"))
                .Create(create => create.Action("Schedules_Create", "Crud"))
                .Update(update => update.Action("Schedules_Update", "Crud"))
                .Destroy(destroy => destroy.Action("Schedules_Destroy", "Crud"))
           )


        )

 

 

 

peter
Top achievements
Rank 1
 answered on 02 Jul 2019
1 answer
94 views
I've got a bunch of methods client-side that build up a list of all the filters to apply to a grid. However, I'm told it is possible to pass this list over to the server in order to have better control over the filters? In my case, I am trying to create a filter that looks like this:
```(cond || cond || cond) && cond```
I've noticed that Kendo seems to only support cases where it is ```cond || cond``` or ```cond && cond```. Unless there is a way to make the above condition work, how can I pass my filters to the server and the `DataSourceRequest` in order to have that further control?
Georgi
Telerik team
 answered on 02 Jul 2019
1 answer
486 views

hello,

I have 3    @(Html.Kendo().DropDownList()  

is there a telerik control i can use to arrange them  side by side?

Attached picture shows current placement, this is my cshtml 
    <div class="demo-section" style="width: 250px;">
 
                    <h4>Status</h4>
                    @(Html.Kendo().DropDownList()   etc etc

thanks,Peter

Marin Bratanov
Telerik team
 answered on 01 Jul 2019
1 answer
519 views

I would like the user to be able to add options, however I intend to handle adding the new items when the form is posted rather than dynamically.

Ideally I'd like to continue using the tag helper if possible for simplicity, and be able to hit enter to add the entry if it doesn't appear in the filtered list.

Is there any existing solution to this?

Dimitar
Telerik team
 answered on 01 Jul 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?