Telerik Forums
Kendo UI for jQuery Forum
1 answer
309 views
How to add a button in nodatatemplate of autocomplete widget in MVC. Sample screenshot is attached.
Martin
Telerik team
 answered on 03 Feb 2020
4 answers
1.8K+ views

I am trying a scenario where I want to move rows from one grid to another. I have used this link as a starter: https://onabai.wordpress.com/2013/01/28/kendoui-move-rows-between-grids/

The method in the above link works fine, but I am looking to add a dropdownlist in the target grid when a row is added. I am providing a dojo link to illustrate:

https://dojo.telerik.com/@alanwhurt/IsAqOVug/2

The dropdownlist is being added and what I would like to do is to be able to select a value in the list and have it persist when a new row is added. For example, if I select the first user in the left grid and move it to the target grid on the right and then select a role, all is well. If I add another user to the target grid, any previous dropdownlist selection is reset. I assume this is happening due to the grid being refreshed when a new item is added to its datasource. Is there a way to prevent this from happening, or another way I can try to accomplish this scenario?

Alan
Top achievements
Rank 1
 answered on 31 Jan 2020
7 answers
4.0K+ views
Hi,

I have used a Kendo Grid and set the editable mode as Popup and used custom template for editing, but I need increase the default width of the popup as the content of the template doesn't fit in the popup.

I used Window Property for the Editable and specified the Width. It applies the Title but doesn't apply the width to the window.

.Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("EditSchool").Window(w => w.Title("Edit School Details").Name("editWindow").HtmlAttributes(new { id = "editWindow", @width = "700px" })))


Complete Code below for reference:-

@(Html.Kendo().Grid(Model)
    .Name("SchoolGrid")
    .Columns(columns =>
    {
        columns.Bound(p => p.SchoolID).Width("100px");
        columns.Bound(p => p.Name);
        columns.Bound(p => p.Campus).Width("100px");
        columns.Bound(p => p.StateCode).Width("100px");
        columns.Command(command => { command.Edit(); command.Destroy(); }).Width("180px");
    })
    .ToolBar(tb => tb.Create())
    .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("EditSchool").Window(w => w.Title("Edit School Details").Name("editWindow").HtmlAttributes(new { id = "editWindow", @width = "700px" })))
    .Pageable()
    .Sortable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .Model(model => model.Id(p => p.SchoolID))
        .Read("Index""School")
        .Update("Edit""School")
        .Create("Create""School")
        .Destroy("Delete""School")
    )
)


Please help the needful

Cheers
Marty
Top achievements
Rank 1
 answered on 31 Jan 2020
16 answers
733 views
I have a problem when I'm using the grid component in combination with a "detail template" and "virtual scrolling".

When I scroll down to the last entries of the grid and open the detail template, I'm not able to see the whole content of the detail row, because the grid doesn't expand.

If necessary i can also add example code.

I'm using kendoui.complete.2012.1.420.commercial build as source. But this problem appears in all versions I have used so far.

regards, Christopher
Peter Milchev
Telerik team
 answered on 31 Jan 2020
5 answers
499 views
Hi,

I tried the examples which were there along with the q2 beta for mobiles. In the forms example  i get an error which says $("#dropdown").kendoDropDownList is not a function.

I tried using the kendoDropDownList in a similar application for mobile and still got the same error. Can anyone help on what the reasons could be.
Veselin Tsvetanov
Telerik team
 answered on 31 Jan 2020
1 answer
575 views

I have a kendo chart I am using within a dashboard.

The definition of the chart contains a link to the data which is returned as a DataSource (using dt.ToDataSourceResult()) and is in the format.

Field 1, Field 2, Field 3

A, 1, 2

B, 2, 2

etc.

The series are defined as 

series:[{field:"Field2",type:"x", categoryField:"field1",axis:"primary", name:"ABC" }

,{field:"Field3",type:"x", categoryField:"Field1",axis:"primary", name:"Contract Value" }]

where type is set to the series type.

 

In scenario 1, Field 1 is a date and we require Field 2 and 3 to each be a separately defined series (one being a bar and the other a line.) this works as we would like.

In scenario 2, Field 1 is a company name and Field 2 and 3 are again separately defined series but both bars. In this case the first series is shown as a bar but the second is missing, however the legend contains an entry for both. What is going wrong? If we change series 2 to a line it appears as before.

I understand we could reshape the data for every instance and have separate definitions but would rather have a single elegant solution. 

Can you shed any light in what is happening?

Thanks

 

Tsvetomir
Telerik team
 answered on 31 Jan 2020
2 answers
141 views

Hello,

I downloaded the new Kendo UI v2019.3.917 version, integrated it in my web app and generated less file and got the following error:

`rgba`: color functions take numbers as parameters

 

I tracked it down to two widgets: Rating and Filter

If I comment the following lines in "type-bootstrap.less", then generation works:

// Rating
/*@rating-icon-text: @widget-border-color;
@rating-icon-selected-text: @accent;
@rating-icon-hover-text: @accent;
@rating-icon-focused-text: @accent;

@rating-icon-focused-shadow: 0 2px 3.6px rgba(255, 255, 255, .1);
@rating-icon-focused-selected-shadow: 0 2px 3.6px rgba(@accent, .5);*/

@import "Default/filter/_theme.less";

@import "Default/rating/_theme.less";

Paul van Eijk
Top achievements
Rank 1
 answered on 31 Jan 2020
3 answers
53 views

Hello,

is it possible to search numeric columns with the new search panel via built in functionality?

Thanks in advance.

Martin
Telerik team
 answered on 31 Jan 2020
2 answers
85 views

ver.2020 R1

https://dojo.telerik.com/AvenepoV

 

ver.2019 R3 SP1

https://dojo.telerik.com/alaWEjIs/2

 

See ver.2020 R1 sample , click Google or Kendo link is not working
but ver.2019 R3 SP1 is normal

 

Yanjun
Top achievements
Rank 1
 answered on 31 Jan 2020
4 answers
892 views

Hi, Dev Team!

At first, really thank you for Breadcrumb!

How i can set items programmatically or bind to dataSource?

Andrey
Top achievements
Rank 1
Veteran
 answered on 30 Jan 2020
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?