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

ListBox with checkboxes in a form

4 Answers 535 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 12 Jun 2018, 01:21 PM

I have a small list of items that i need to present on a form. The user can select multiple items with the help of checkboxes. And after the user is done he needs to save the form.

I have seen a similar example on telerik products but for ajax

https://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/checkboxes/defaultcs.aspx

Is there a way to implement the same functionality in Asp.Net Core?

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 15 Jun 2018, 07:44 AM
Hi Dan,

I have created a small sample which demonstrates how to achieve the same functionality as in the provided demo using Telerik for ASP.Net Core.

Attached you will find the sample. Please examine it and let me know how it works for you.

I look forward to your reply.


Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 18 Jun 2018, 08:28 AM

Hi Georgi,

Unfortunally right now my VS2015 does not work and have only VS2017 without .net core 1.0

Could you create a project with with .net core 2.0 that works in VS2017.

Thanks.

0
Accepted
Georgi
Telerik team
answered on 20 Jun 2018, 02:27 PM
Hi Dan,

I have created a .Net Core 2.0 sample with the same content as the one from my previous message.

Attached you will find the sample. Please examine it and let me know if it helps.


Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 26 Jun 2018, 11:50 AM

Hi Geordi,

Indeed it does help me. However be aware that for me the getSelected was failing because of the "`" (grave accent), so I had to adapt the code to $('#selected-items').append('<li>'+ listbox.dataSource.at(x) +'</li>');

Tags
ListBox
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Georgi
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or