Telerik Forums
Kendo UI for jQuery Forum
1 answer
216 views

I don't want users to set UNITS while assigning tasks to resources, either I want to disable that column or hide the column. The default value should always be 100%.

 


Martin
Telerik team
 answered on 02 Jan 2024
1 answer
261 views

I have a problem with DropDownMenu in the KendoGrid: https://dojo.telerik.com/aFoTuXoy

I tried to add DropDownMenu (from bootstrap) to cell inside of KendoGrid.

Also I added style to code (I found this reference early: https://stackoverflow.com/questions/68672182/boostrap-dropdown-menu-in-kendo-grid-cell-template):

<style type="text/css">
    .k-master-row td {
      overflow: visible !important;
    }
  </style>

But it didn't help me and menu hides inside of table.

I need to add DropDown menu to Main and Detail tables.

Nikolay
Telerik team
 answered on 28 Dec 2023
0 answers
178 views
-
Frank
Top achievements
Rank 1
 updated question on 27 Dec 2023
1 answer
139 views

I've figured out how to initialize a ButonGroup with badges using this documentation:

items - API Reference - Kendo UI ButtonGroup - Kendo UI for jQuery (telerik.com)

 

Now I want to update badge options or remove a badge after initialization. I found this documentation:

badge - API Reference - Kendo UI ButtonGroup - Kendo UI for jQuery (telerik.com)

However, this only seems to allow updating the text value of the badge. I want to be able to update other things like themeColor. Furthermore, if a badge is removed by calling:

buttonGroup.badge(index, false);
then when the badge method is called again to re-add a badge, the original badge parameters are not applied.
Nikolay
Telerik team
 answered on 27 Dec 2023
1 answer
313 views

I am having an issue getting my controller code to get called from the UI.  Here is what I have tried. 

<script type="text/javascript">

    $(document).ready(function () {
        $("#pdfViewer").kendoPDFViewer({
            fromFile: {
                url: "@Url.Action("DetailsReport", "ReportViewer")"
            }
        });
    });


</script>

 

--RAZOR PAGE

 @(Html.Kendo().PDFViewer()
                              .Name("pdfViewer")

                        )

 

Controller ActionMethod (never gets called).  

returns File(bytes, mimeType).  

                              
Peter Milchev
Telerik team
 answered on 25 Dec 2023
1 answer
88 views
Is there was a way to set the size of all the elements on a grid filter menu to "small"?
Peter Milchev
Telerik team
 answered on 25 Dec 2023
1 answer
295 views

I am setting up a grid with inline edit mode and CRUD operations. I add the "create" option in the toolbar and added a command column with "edit" and "delete" options. When I use the add row button, or the edit row button, then the command column changes to contain "Update" and "Cancel" buttons. When I click the "Update" button, nothing seems to happen. The change does not get saved, I see no errors in the console and mu console.logs in the update/create/delete functions also don't get triggered. I am using version 2022.2.621 of Kendo UI for jQuery. (I cannot easily update to a newer version, because we have custom CSS for most components and with every new update, we have a ton of work to update this CSS, because Kendo is always changing/removing/adding class names on HTML elements for some reason.)

I have created an example in the dojo where you can reproduce this problem: https://dojo.telerik.com/eRibIRed

Did I configure the grid wrongly?

Update: I tried version 2023.3.1114 and have the same problem there.

Nikolay
Telerik team
 answered on 25 Dec 2023
0 answers
160 views

hello,
i want to use kendo to send data to a REST API. I get a 415 error. But i do not know what i have made wrong.
My test html looks like this:

 <button id="button" type="button">Submit</button>
 <script>
     $("#button").kendoButton({
         click: function (e) {
             //alert(combobox.value);
             //alert(e.event.target.tagName);

             var dataSource = new kendo.data.DataSource({
                 transport: {
                     // make JSONP request to https://demos.telerik.com/kendo-ui/service/products/create
                     create: {
                         url: "https://localhost:7170/api/Kunden",
                         dataType: "json", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
                         type: "PUT"
                     },
                     parameterMap: function (data, type) {
                         if (type == "create") {
                             // send the created data items as the "models" service parameter encoded in JSON
                             return { models: kendo.stringify(data.models) };
                         }
                     }
                 },
                 schema: {
                     model: {
                         id: "kundenId", // the identifier of the model
                         fields: {
                             id: { editable: false, nullable: true },
                         }
                     }
                 }
             });
             // create a new data item
             dataSource.add({ id: 4713 });
             //dataSource.insert(0, { id: 4714 });
             // save the created data item
             dataSource.sync(); // server response is [{"ProductID":78,"ProductName":"New Product","UnitPrice":0,"UnitsInStock":0,"Discontinued":false}]
             //dataSource.pushCreate([{ id: combobox.value }]);
         }
     });
 </script>

My API controller looks like this. I want to use the method SetKunde.


namespace Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class KundenController : ControllerBase
    {
        // GET: api/Kunden
        [HttpGet]
        public async Task<ActionResult<IEnumerable<Kunde>>> GetKundeItems()
        {
            //return await _context.KundeItems.ToListAsync();
            DataAccess dataAccess = new DataAccess();
            return dataAccess.GetKunden();
        }

        // GET: api/Kunden/5
        [HttpGet("{id}")]
        public async Task<ActionResult<Kunde>> GetKunde(long id)
        {
            //var kunde = await _context.KundeItems.FindAsync(id);
            DataAccess dataAccess = new DataAccess();
            Kunde kunde = dataAccess.GetKunde(id);
            if (kunde == null)
            {
                return NotFound();
            }

            return kunde;
        }


        // PUT: api/Kunden/5
        [HttpPut]
        public async Task<ActionResult<Kunde>> SetKunde(KundeShort kdn)
        {
                return NotFound();
        }
   }
}
I hope someone can help.

Kind regards
Jens
Jens
Top achievements
Rank 1
Iron
Iron
 asked on 21 Dec 2023
0 answers
128 views
I'm working on implementing multi checkbox grid filtering in a project. I have a requirement where I need to have a different value for the display text than the value that is filtered on. I'm basically looking for the properties dataTextField and dataValueField  that are found on other controls such as a multiselect. Using this example to explain further; how do I use the multi checkbox filter to filter on the Category field by CategoryID but still display the CategoryName as the filter display?
Justin
Top achievements
Rank 1
Iron
 asked on 20 Dec 2023
14 answers
255 views

I'd like to highlight cells, in a range.forEachCell method, but each cell has to have a different highlight (background colour) based on some rules. It's quite slow. Is there a way to do this quicker?

Thanks,

Marc

Angel Petrov
Telerik team
 answered on 20 Dec 2023
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? 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?