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

I want to send an anti forgery token AND additional data in my update ajax call of my grid.

Here is my update

.Update(u => u.Url("/Index/?handler=Update").Data("additionalInfo")     
Dan
Top achievements
Rank 1
Veteran
 answered on 16 Oct 2020
1 answer
488 views

I have a Razor Pages project where I have 2 widgets on my UI; a custom widget (non telerik) and the telerik grid. Currently they are supplied their data by the model passed in on my OnGet() method. I cannot get the Grid Persistence (all the grid options) to work with local binding. Is it possible?

Whenever I attempt the setOptions() I get an error because the url path it tries to go to doesnt exist. I am not using Ajax binding for read so there is no read methods. Is it possible to stop this behavior? I would like to use the data in my model only and not have to post another request to get all of the same data.

Grid:

@(Html.Kendo().Grid<MyClass>(Model.Data)
       .Name("Grid")
       .Columns(columns =>
       {
          //column list
       })
       .Sortable()
       .Groupable()
       .ToolBar(toolBar =>
       {
           toolBar.Save();
           toolBar.Search();
       })
       .Editable(editable => editable.Mode(GridEditMode.InCell))
       .Scrollable()
       .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
       .Reorderable(r => r.Columns(true))
       .Resizable(r => r.Columns(true))
       .ColumnMenu()
       .Pageable(pageable => pageable
       .Refresh(true))
       .DataSource(dataSource => dataSource
           .Ajax()
           .ServerOperation(false)
           .Model(model =>
           {
               //mode fields
 
           })
           .Update(u => u.Url("/Index/?handler=Update").Data("forgeryToken"))
           )
            
        )

 

And here is how I try to get and set my grid options:

 

$("#gridStateSave").click(function (e) {
       var grid = $("#Grid").data("kendoGrid");
       e.preventDefault();
       localStorage["kendo-grid-options"] = kendo.stringify(grid.getOptions());
   });
 
   $("#gridLoadState").click(function (e) {
       e.preventDefault();
       var options = localStorage["kendo-grid-options"];
       if (options) {
           grid.setOptions(JSON.parse(options));
       }
   });

 

With the code like this, all of the options are applied to my grid, however the data disappears which i assume to be because the setOptions() calls a read method and since there is no read method configured on my grid, errors and returns no data.I would like to prevent having to call a duplicate request to get the same data that is already in my grids datasource.

Any help is appreciated.

Georgi Denchev
Telerik team
 answered on 16 Oct 2020
8 answers
134 views

My company pays a lot of money to download CODE not use NuGet. If I login with a valid paid for login, I should get ALL we paid for. Instead, you now force me to use NuGet even though I download a zip file. This is wrong.

I have been downloading and using Telerik products since before Kendo, way back in 2010 and this change upsets me. Please reconsider and give us back what we paid for - files. In other words, like it used to be. There was ZERO reason to change this. Keep customers happy or you may lose them!

Nencho
Telerik team
 answered on 16 Oct 2020
1 answer
785 views

How can we POST form data from a step?

I just see GET with all forms data.

Petar
Telerik team
 answered on 16 Oct 2020
1 answer
71 views

Hello,

I need obtain the eventDate value from the current open event.

I try this ...but doesn't work:

 

function refresh() {
 
        var timeline = $("#Timeline").data("kendoTimeline");
        var date = new Date(timeline.dataItem.EventDate);       
 
         ....
 
}

Regards,
Santi.

 

Anton Mironov
Telerik team
 answered on 15 Oct 2020
1 answer
160 views

I have an odd behavior with the splitter.  I'd like to know how to get this to work.  For some reason the Label is aligned to the left off the page.  How do I get around this behavior?

 

Splitter Definition:

@(Html.Kendo().Splitter()
    .Name("splitter")
    .HtmlAttributes(new { style = "height: 150px;" })
    .Panes(panes =>
    {
        panes.Add()
            .HtmlAttributes(new { id = "top_pane" })
            .Collapsible(true)
            .Content(@<p>@Html.Partial("_SplitterWorkPanel1")</p>);
 
        panes.Add()
            .HtmlAttributes(new { id = "bottom_pane" })
            .Collapsible(true)
            .Content(@<p>@Html.Partial("_SplitterWorkPanel2")</p>);
    }))

 

Partial Views (both are the same):

@{ Layout = null; }
 
<div class="row">
    <label class="col-form-label">Date Range</label>
 
</div>
 
<div class="row" style="margin-top: 5px;">
    <label class="col-form-label">Status</label>
 
</div>

 

Joel
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 15 Oct 2020
1 answer
153 views
Greetings!
I have an ASP.NET Core app. In this app on one page I have a custom multiselect with 21 values of 38 selected by default.
In browsers like Firefox and Safari, all works fine, all required values (21 of 38) in multiselect are selected.
But in Chrome the multiselect is empty, so I need to select all 21 values manually.
Is this a bug?
Thanks
Petar
Telerik team
 answered on 15 Oct 2020
5 answers
450 views

The code places the PDF Viewer in a partial razor view.  I am using Zurb Foundation to display a modal dialog.  The PDF viewer displays on the modal dialog.  I am using the OnRender to change the PDF viewer to fit to width.  What I am seeing is the first time that the PDF file is rendered, the PDF file is smaller than subsequent renders while the modal dialog is open.

For example, on the first render of the dialog, I see the following( see attachment FirstRender.png).

While the modal dialog is displayed, I change to another zoom selection and back to fit to width.  This render does appear to fit to width (see attachment SecondRender.png).  Repeating the switch between the selections and back to fit to width yields the same result where fit to width seems to work (see attachment SecondRender.png).

 

Is there some way I can get the first render to fit to width like the subsequent renders?

Aleksandar
Telerik team
 answered on 15 Oct 2020
1 answer
264 views

Hi,

 

I'm stuck on a fall back version due to budget constraints. We use 2020.1.406. 

 

Does this version not support Form? 

Thank you.

Neli
Telerik team
 answered on 15 Oct 2020
1 answer
1.0K+ views
    
 

How do I add data attributes?

Like:

data-filter=".lap"

 

Thanks, Marty

 

FYI, I am having issues posting in the forum as well in chrome

 
Petar
Telerik team
 answered on 15 Oct 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?