Telerik Forums
Kendo UI for jQuery Forum
1 answer
164 views

Hi,

I am trying to define a Model for my kendoTreeList.

Normally I would define a Model like:


var Product = kendo.data.Model.define({
    id: "ProductID", // Defines the field to be used as the identifier.
    fields: {
        // Define the fields of the model and their data types.
        ProductID: { type: "number" },
        ProductName: { type: "string" },
        QuantityPerUnit: { type: "string" },
        UnitPrice: { type: "number" },
        UnitsInStock: { type: "number" },
        Discontinued: { type: "boolean" }
    }
});

 

But with the TreeList  you normally have to define the Model like this with a parentId:

                            model: {
                                id: "EmployeeId",
                                parentId: "SupervisorId",
                                fields: {
                                    SupervisorId: { field: "SuperviorId", nullable: true },// this is the parent.
                                    EmployeeId: { field: "EmployeeId", type: "number" }, 
                                },
                                expanded: true
                            }


I don't think kendo.data.Model.define works for this type of model  because it doesnt have some of the properties like parentId or expanded. Is there something I can substitute it with?

What I am trying to do is create a class of Models and I can slide the Model definition in like:


    $("#reportsTreeList").kendoTreeList({

        dataSource:
        {
            data: reports,
            schema: {
                model: Models.TREELISTMODEL
            }
        },
        height: "auto",

OR:


var ds = new kendo.data.DataSource({ data: reportsList, schema: { model: Models.TREELISTMODEL }});

this approach seems to work with a kendo spreadsheet or a grid... but TreeView  seems to break.

Thanks again for your help and patience!

George

George
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 18 Jul 2024
0 answers
120 views

Hello,

Requirement to implement 'More' button in Week view of MVC scheduler as Month view has.

I tried suggestion given in this article https://docs.telerik.com/kendo-ui/knowledge-base/implement-more-events-button-in-week-view

example is here https://dojo.telerik.com/IGOQinES.

Want to change two points,

1. The position of More button from bottom of the slot to right side of the slot shown as in below image.

2. Slot with single appointment also showing 'More' button, why?

Appreciate for the support. 

Thanks,

BP

B
Top achievements
Rank 1
 updated question on 18 Jul 2024
1 answer
98 views

Hi,

I can see that the PivotGrid has a "Compact" display mode in the ASP.NET AJAX libraries: https://docs.telerik.com/devtools/aspnet-ajax/controls/pivotgrid/layouts/overview  

 

Is there a "Compact" mode that renders nested rows with only a slight offset instead of creating a whole new column in the jQuery libraries, or even in ASP.NET MVC version?

 

Kind regards,
Ilya

Martin
Telerik team
 answered on 18 Jul 2024
0 answers
160 views
Hello,

I have a DropDownList in my grid toolbar that represent a list of 'views' for the grid.

When I select one of them, I use both getOptions and setOptions to modify the columns order and states.

My problem is that when I execute setOptions, my DropDownList kendo is lost and don't keep the state it had before setOptions.

How can I achieve this pls ?
Théodore
Top achievements
Rank 1
 asked on 18 Jul 2024
1 answer
127 views

When I select a particular date using the calendar provided by Kendo Scheduler (in Work Week), I can read the selected date (for eg: 25th July). But when I again click on the calendar it does not highlight last selected date (i.e 25th July). Can't find any API to highlight the last selected date.

Pls help!! 

 

Martin
Telerik team
 answered on 18 Jul 2024
2 answers
551 views

Hello,

when one column of a Grid is configured with enabled  "stickable" or "lockable", a "Set Column Position" column menu item appears for all columns.

Is this behavior intentional?

If columns are neither "stickable" nor "lockable", I would like to remove the "Set Column Position" column menu item for those columns. Could you please show me how to achieve the behavior I want?

Thanks and Greetings
Stefan

Akshit
Top achievements
Rank 1
Iron
 answered on 16 Jul 2024
1 answer
160 views

Hi Team,

I am using kendo jQuery grid, and I would like to have a combination of filters on the column.

I would like to have both

1. a section showing multiselect checkbox column filters - (as shown here - https://demos.telerik.com/kendo-ui/grid/filter-multi-checkboxes )

2. another section to allow user to search column data using operator (as shown here https://demos.telerik.com/kendo-ui/grid/filter-menu-customization )

I am able to use only 1 at a time and not both.

here is the dojo that i am trying to build - https://dojo.telerik.com/IrExUMoj 

sort of something like this but in a collapsible panel or in different tabs - 

 

Please suggest.

Nikolay
Telerik team
 answered on 15 Jul 2024
1 answer
117 views

Hi,

I am using Kendo MVC scheduler to display an appointments.

For all day event wants to display  view more button (...) same as month view has if there are more than no of event ( all day event ) in one date.

How to achieve this requirement?

Looking for any suggestion or idea or an examples.

Thanks,

BP

Neli
Telerik team
 answered on 11 Jul 2024
1 answer
122 views
How can I configure my multiselect pop up so that scrolling elsewhere on the page does not make it disappear?
Martin
Telerik team
 answered on 10 Jul 2024
1 answer
136 views

I am having trouble with loading a dateTime filter from localStorage.

What I have observed is that when I send a request to the server with a Date picked from the DatePicker the request looks as follows:

filter: DateTS~eq~datetime'2024-07-09T00-00-00'

However when sent with a Date loaded from localStorage it looks as follows:

filter: DateTS~eq~'2024-07-09T04:00:00.000Z'

My localStorage variable is just the filter object and looks as follows:

{
"filters": [
{
                "operator": "eq",
                "value": "2024-07-09T04:00:00.000Z",
                "field": "DateTS"
            }
],
      "logic": "and"
}

looking for the best way to translate datetime fields so that the request is sent to the api properly when loading from localStorage.

Stacey
Top achievements
Rank 1
Iron
 answered on 09 Jul 2024
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
Drag and Drop
Application
Map
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?