Telerik Forums
UI for ASP.NET Core Forum
1 answer
1.3K+ views
I have used templates to alter the styling of my inline edit and delete buttons. How can I now change the update and cancel buttons to match?
Tsvetomir
Telerik team
 answered on 05 Apr 2022
1 answer
598 views

I have been trying to figure out why the model value is not binding to the RadioGroupFor control.

For instance:

@Html.Kendo().RadioGroupFor(m => m.Auth).BindTo(BoolYesNo.Items).Layout(RadioGroupLayout.Horizontal)
What am I doing wrong?
Alexander
Telerik team
 answered on 04 Apr 2022
2 answers
1.2K+ views

I need to show a command button conditionally based on data in the grid.  I'm using the example in the link below but it's not working.

If I leave off the parentheses in the visible property then the javascript call never gets made.  If I add them, the javascript call does get made but the data parameter is undefined. 

I am using Core and the Razor syntax, not MVC and the HTML helpers as the example shows but I would assume the same concept should work.  Any ideas on why this is not working?

ASP.NET MVC Data Grid Component Show Command Buttons Conditionally | Telerik UI for ASP.NET MVC


<commands>
<column-command name="questionanswers" click="goToQuestionAnswers" class-name="link-button" text="Answers" visible="isAnswerButtonVisible()"></column-command> <column-command name="edit" class-name="link-button" icon-class="k-no-icon"></column-command> <column-command name="destroy" class-name="link-button" icon-class="k-no-icon" text="Delete"></column-command> </commands>
    function isAnswerButtonVisible(data) {
        return data.QuestionType !== "TrueFalse";
    }


John
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 Apr 2022
0 answers
233 views

Hi, I am using ASP Net Core UI in my web app. There is a tabstrip which contains 5 tabs. In each table I can edit/update contents. After I submit/save/update  in a tab, the tabstrip alway return to default selected tab. How to prevent that, so user always stay in the current tab after a action? I don't have ASP NET Ajax UI package.

Any suggestion?

thanks,

<div class="k-content">
    @(Html.Kendo().TabStrip()
          .Name("tabstrip")
          .Items(tabstrip =>
          {

              tabstrip.Add().Text("All Waitlist Courses")
               .Selected(true)
                           .LoadContentFrom("Index_ALLCRS", "AdminWaitlistCRSByProfile");
              tabstrip.Add().Text("Active Courses")
                          .LoadContentFrom("Index_AllCRS_Active", "AdminWaitlistCRSByProfile");
              tabstrip.Add().Text("Inactive Courses")
                           .LoadContentFrom("Index_AllCRS_Inactive", "AdminWaitlistCRSByProfile");
              tabstrip.Add().Text("Waitlist by Courses")
                        .LoadContentFrom("WaitlistByCourse", "AdminWaitlistCRSByProfile");
              tabstrip.Add().Text("Waitlist by Students")
                       .LoadContentFrom("WaitlistByStudent", "AdminWaitlistCRSByProfile");
              tabstrip.Add().Text("Test Grouping")
                      .LoadContentFrom("WaitlistByCourse_test", "AdminWaitlistCRSByProfile");

          })
    )
</div>

 

 

G
Top achievements
Rank 1
 asked on 01 Apr 2022
1 answer
139 views

Hello,

Is it possible to divide a line into four and these four fields can be edited, like this?

Regard,

Mihaela
Telerik team
 answered on 30 Mar 2022
0 answers
163 views

We have successfully implemented the Copy and Export in our product as shown in the demo here.

We observed two things that we consider anomalous, which also happen on the demo page:

  • if we select multiple non-contiguous rows and copy them to clipboard, the copied text contains blank rows instead of the unselected ones in the range
  • if we export with headers, in the resulting Excel file the headers are repeated for each selected row

Is there any way to avoid these behaviors?

FMS
Top achievements
Rank 1
 asked on 30 Mar 2022
1 answer
714 views

While Security Testing of application through OWASP Zap tool Medium risk level alert 'Absence of Anti-csrf Token'  is popping up for form tag in Kendo.all.min.js

Even I tried to update kendo version to 2022 (Latest) in Kendo.all.min.js

Are there any ways to resolve it ?

 

Aleksandar
Telerik team
 answered on 29 Mar 2022
0 answers
89 views

Ended up being some css styling i was overriding that doesn't work in the new update

This can be deleted

Tyler
Top achievements
Rank 1
Iron
 updated question on 28 Mar 2022
1 answer
433 views
I am using .NET Core and implementing a treelist with a custom row template.  Therefore, I have to use popup editing.  The window that pops up looks terrible and it contains many fields that I do NOT want to show.  How can I customize the window to use dropdowns, comboboxes etc and only display the fields that I want to edit?
Mihaela
Telerik team
 answered on 25 Mar 2022
1 answer
845 views

Hi everyone.

I've got a grid on my razor page populated from a list of API-sourced records and none of the fields are displaying on there.  I'm using local binding direct from an incoming model property...

@(
Html.Kendo().Grid(Model.AllAccounts)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(b => b.AccountId).Visible(false);
columns.Bound(b => b.AccountDescription).Title(Model.AccountDescriptionLabel);
columns.Bound(b => b.AccountHolder).Title(Model.AccountHolderLabel);
columns.Bound(b => b.ContractsCount  ).Title("Total Contract(s)");
columns.Bound(b => b.ContactsCount).Title("Total Contact(s)");
columns.Bound(b => b.UsersCount).Title("Total User(s)");
columns.Command(command => command.Custom(Model.AccountDetailsButtonText).Click("showDetails"));
})
.Pageable()
.Sortable()
.Scrollable(scr=>scr.Height(430))
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(false)
.Events(events => events.Error("error_handler")
)
)
)


If I look at the records in debug then everything is populated, but the fields aren't showing on the grid row (Empty Grid Row.jpg).

I've got a button on the row linked to the record and if I intercept the dataitem in the script you can see that the camel case fields are populated but the pascal case ones aren't (which is definitely not the case when viewing records in debug!) (Data Item Grab.jpg).

I've followed the first two options in the guidance about the camel case issue from the JSON Serialisation Page but nothing is working for me (snippet of Program.cs follows).

// Add services to the container.
services.AddControllersWithViews()
    .AddJsonOptions(options =>
                options.JsonSerializerOptions.PropertyNamingPolicy = null);

Can anyone advise me what to do here? I've lost most of today on this issue.

Thanks for your time!

 

Aleksandar
Telerik team
 answered on 25 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?