Telerik Forums
UI for ASP.NET Core Forum
0 answers
130 views

Hi. 

I created custom editing popup and use it to insert na new element into Kendo Grid.
The ViewModel of this grid  elements contains a Array so my popup template contains another grid with i whant tu use to  fill the array in the viewModel but have no idea how to achive this. I know I have bind the grid with "ConfiguratorAttributs" array but I don know how i can do this.
The Careate method of my "Parent" grid always call my Controller passing ViewModel with null ConfiguratorAttributs element.
Can anyone help me deal with this?

Beniamin
Top achievements
Rank 1
 asked on 10 Jul 2019
3 answers
178 views

Hello Telerik,

 

I am using UI for ASP.NET Core (2019.1.220) and in my .cshtml I'm creating a ListView that I want to be endless scrollable.

As you can see from the attached image, it seems that both the Scrollable method and the ListViewScrollableMode enum are not found.

 

Am I missing some reference or using directive?

 

Thank you,

Maurizio

Eyup
Telerik team
 answered on 10 Jul 2019
1 answer
137 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
200 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
152 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
228 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
414 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
543 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
281 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
117 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?