Telerik Forums
UI for ASP.NET Core Forum
2 answers
204 views

Hi Telerik experts,

 

Could you educate me how to set the height of every line of Grid?

YN
Top achievements
Rank 1
 answered on 24 Jul 2019
2 answers
69 views
how to make the grid use all the width of the page?
YN
Top achievements
Rank 1
 answered on 23 Jul 2019
1 answer
219 views

Does Telerik have a Search Bar Functionality for .Net Core? I see one for Asp Net AJAX, curious if they have for .Net Core?

Thanks,

https://www.telerik.com/products/aspnet-ajax/searchbox.aspx

Nikolay
Telerik team
 answered on 22 Jul 2019
0 answers
185 views

Anyone know how to go into a Taghelper output, and receive the full HTML markup for Masked TextBox?

The following was not working:

output (only gave some of the html)

output.GetChildContentAsync().GetContent();   (Was Not working !!)

 

It Should look like this,

            <span class="k-widget k-maskedtextbox" style="">

                <input id = "test" name="test" data-role="maskedtextbox" class="k-textbox" autocomplete="off" style="width: 100%;">
                <span class="k-icon k-i-warning"></span>
             </span>

              <script>kendo.syncReady(function(){jQuery("#test").kendoMaskedTextBox({"rules":{}});});</script>

 

This is our Taghelper Edit Code,

namespace Test.Web.UI.TagHelpers

{
    [HtmlTargetElement(HtmlTargetElementConts.SearchTextBox)]
    public class TestTextBoxTagHelperGeneral : MaskedTextBoxTagHelper
    {

        [HtmlAttributeName]
        public bool Bold { get; set; }

        [HtmlAttributeName]
        public int? Height { get; set; }

        [HtmlAttributeNotBound]
        public int DefaultHeight { get { return 50; } }

        public IptsTextBoxTagHelperGeneral(IKendoHtmlGenerator generator) : base(generator)
        {
        }

        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            if (Bold || Height.HasValue)
            {
                if (Height.HasValue)
                    output.Attributes.Add("style", "height:" + Height + "px");
                else
                    output.Attributes.Add("style", "height:" + DefaultHeight + "px");
            }
            Name = "test";
            base.Process(context, output);

How do I Get the Final HTML Markup?

 

JoeThomas
Top achievements
Rank 1
Veteran
 asked on 21 Jul 2019
4 answers
263 views

Hi Telerik experts,

How to make menu on the top position like the black one in my attached pic?

How to make menu start from left? and make the grid become larger to take all the space, not only sit in the center?

YN
Top achievements
Rank 1
 answered on 19 Jul 2019
5 answers
621 views

Hello,

 

When viewing events in the scheduler, 

I want new events to be red. (view model status is pending)

later , when I set the status to "approved" , i want the event to appear as green. 

Any suggestions ?

Thanks,Peter

 

Dimitar
Telerik team
 answered on 19 Jul 2019
3 answers
511 views
Hello,

I created an edit-pop up template for a grid and when I try to edit the entry, the pop up works great. But the template is not loading when I click to add a new entry.

e.g.

Html.Kendo().Grid<Areas.TestArea.Models.RoleBasicFunctions>()
                                                .Name("RoleBasicFunctions")
                                               .Columns(columns =>
                                               {
                                                           columns.Bound(p => p.RoleBasicFunctionsID).Title("ID").Visible(false);
                                                           columns.Bound(p => p.EntityBasicInformation.EntityType.EntityTypeName).Title("Entity Name").HeaderHtmlAttributes(new { style = "white-space: normal" });
                                                           columns.Bound(p => p.EntityBasicInformation.Name).Title("Name").HeaderHtmlAttributes(new { style = "white-space: normal" });
                                                           columns.Command(command => { command.Edit().Text(" "); }).Width(80);
                                                       })
                                                .Pageable()
                                                .Sortable()
                                                .Scrollable()
                                                .Editable(editable => editable.Mode(GridEditMode.PopUp).DisplayDeleteConfirmation(false).TemplateName("EditRoleBasicFunctions").Window(ww => ww.Title("Edit").Width(1800)))
                                                .ToolBar(toolbar => toolbar.Create())
                                                .Filterable()
                                                .DataSource(dataSource => dataSource.Ajax()
                                                .Model(model =>
                                                {
                                                            model.Id(p => p.RoleBasicFunctionsID);
                                                        })
                                                .Read(read => read.Action("RoleBasicFunctionsGrid_Read", "Test").Data("additionalData")))

Viktor Tachev
Telerik team
 answered on 19 Jul 2019
2 answers
781 views

 

The column header is light gray as default, user ask me to make it darker. I tried some template, but failed. Could you educate me?

Thank you!

YN
Top achievements
Rank 1
 answered on 18 Jul 2019
0 answers
118 views

Question also listed on stack

https://stackoverflow.com/questions/57069066/net-core-create-tagbuilder-for-kendo-telerik-scrollview

I am trying to get Tagbuilder for Telerik ScrollView Component to work. Currently add Items is not working; it is not transmitting the image divs, and showing a blank page. How would I fix this? Enclosed is tagbuilder below. Am I missing variables or attributes ?
Ideal Telerik code is transmitting div data-role page. My code is transmitting li class scroll-view-page, which are not the right items.

 

JoeThomas
Top achievements
Rank 1
Veteran
 asked on 18 Jul 2019
2 answers
267 views
Setting a default value can be configured via the DefaultValue option in the DataSource Model configuration. My Code would look similar to this:
.DataSource(dataSource => dataSource
   .WebApi()
   .Create(create => create.Action("Create", "Home"))
   .Update(update => update.Action("Update", "Home"))
   .Read(read => read.Action("Read", "Home"))
   .Model(m => {
        m.Id(id => id.Id);
        m.Field(f => f.Name).DefaultValue("test");
    })
)
After I click on the "Add new record" button, the new row can display,but Name cann't display "test". why?
Boyan Dimitrov
Telerik team
 answered on 18 Jul 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?