Telerik Forums
UI for ASP.NET Core Forum
3 answers
122 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
190 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
371 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
509 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
227 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
96 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
490 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
527 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
1 answer
830 views

So I've been working with ASP.NET Core for the last few weeks now, and I've started running into multiple roadblocks with my project. I've been told that every single problem I've been running into could be solved if I started programming things server-side rather than client-side, which is the approach I've been taking thus far, as it's what I'm most familiar with. I believe some background is necessary as to what I've spent my last few weeks working on:

Basically, I've been building a Report Generator that has a user navigating through six grids built into the tabs of a Kendo TabStrip, where selections made in Grid 1 filter the options available for selection in Grid 2, etc. all the way down to the last grid. The data bound to the grids all comes from an SQL database. The extent of my server-side code has all been using the widgets that Kendo provides (TabStrip and Grid), and the controller that sends the data to the view. I haven't been utilizing model binding because I don't understand how to use it in my context, but I am semi-aware of what it is. 

As I stated, my application handles practically everything client-side, from filtering the grids based on selection, a search bar, client templates, progression logic for the TabStrip (as selections must be made for the next tab to be enabled), grabbing all the data that the user selects at the end, etc. Some of the difficulties I've been having that I've been told would be easy if I were doing things server-side are with displaying all the collected data on a confirmation screen, and nested filtering of a grid. I don't exactly understand how performing these operations server-side would make my life any easier, and I'm wondering if anyone here is able to explain to me these concepts.

For some background, I am a junior-level developer who has only recently started doing web development.

Ianko
Telerik team
 answered on 01 Jul 2019
0 answers
132 views

I'm interested in the asp .net core controls.

I particularly like the grid and scheduler controls and the demos are great.

In the grid demos, they seem to be focused on calling server side methods for CRUD. Are there demos where the controls update client side json?  For example, having a page that calls a web api to get a list of customers, shows them in a grid under which is a separate save button, where the customers are not saved until the save button is pressed.

 

Rick
Top achievements
Rank 1
 asked on 28 Jun 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?