This is a migrated thread and some comments may be shown as answers.

trying to add a button group inside a DIV

3 Answers 64 Views
Button
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 02 Jul 2019, 04:00 PM

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>

3 Answers, 1 is accepted

Sort by
0
peter
Top achievements
Rank 1
answered on 02 Jul 2019, 04:07 PM

i tried changing the div tag  class  but it did not work either.

   <div class="k-block" style="width: 250px;">

0
Ianko
Telerik team
answered on 05 Jul 2019, 04:46 AM
Hi Peter,

You can follow the demos for the ASP.NET Core ButtonGroup: https://demos.telerik.com/aspnet-core/buttongroup/index

In the example sent I see only a declaration for a DropDownList. Whereas the ButtonGroup is created by using wither the ASP.NET Core ButtonGroup method or the javascript kendoButtonGroup method.

If the errors keep to show up, please make sure to provide a snapshot of console so that I can proper define what are the errors you get. 

Regards,
Ianko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Peter
Top achievements
Rank 1
answered on 05 Jul 2019, 07:27 AM
yes, i missed that . Thank you.
Tags
Button
Asked by
peter
Top achievements
Rank 1
Answers by
peter
Top achievements
Rank 1
Ianko
Telerik team
Peter
Top achievements
Rank 1
Share this question
or