Telerik Forums
UI for ASP.NET MVC Forum
2 answers
6.2K+ views

it's not work,how to use EditorTemplateName?

columns.Bound(u => u.RoleNameString).EditorTemplateName(
"roles_editor"

);



<script type="text/javascript">

function roles_editor()

 

{

}

</script>

 

 

Anton Mironov
Telerik team
 answered on 17 Jul 2020
1 answer
162 views

I have a column in grid (ASP.Net Core MVC) that is multi-select.

Right now I've turned filtering and sorting off for this column...

How to implement filtering for a column that is multi-select...

Petar
Telerik team
 answered on 16 Jul 2020
7 answers
324 views
Is there an Attachment Column type of the MVC or Core grid?
Petar
Telerik team
 answered on 15 Jul 2020
1 answer
240 views
We are using Kendo Grid in Asp.Net MVC application. The grid is configured and mapped to a Odata WebAPI for server filter to a Odata controller. Currently, any filter on two or more than two columns works with AND condition for filter. I want to convert into OR instead of AND. How can I do that ?
Alex Hajigeorgieva
Telerik team
 answered on 14 Jul 2020
1 answer
99 views
Hi there. I am new to this forum.
Alex Hajigeorgieva
Telerik team
 answered on 14 Jul 2020
3 answers
261 views

I am trying to sort my grid. Nothing happens and I'm getting the following console error: 

kendo.all.js:164 Uncaught TypeError: r[n].call is not a function
    at init.trigger (VM376 kendo.all.min.js:25)
    at init.d (VM376 kendo.all.min.js:61)
    at init.trigger (VM376 kendo.all.min.js:25)
    at init._click (VM376 kendo.all.min.js:54)
    at HTMLTableCellElement.d (jquery-1.12.3.min.js:2)
    at HTMLTableCellElement.dispatch (jquery-1.12.3.min.js:3)
    at HTMLTableCellElement.r.handle (jquery-1.12.3.min.js:3)

I created this Dojo to duplicate the problem: https://dojo.telerik.com/@dojolee/AFEqOfiZ

Petar
Telerik team
 answered on 14 Jul 2020
1 answer
137 views

Hey there,

 

I have one requirement. I need to put filtering in grouped data on group data header section same like filter like in grid columns. Is it possible with C# MVC grid

Ivan Danchev
Telerik team
 answered on 13 Jul 2020
6 answers
475 views

Hi,

I've recently found an issue with the combobox where a user can type in any number on the combobox and it will save if the foreign key exists on the database - regardless of checking whether or not the value is valid for use or not.

Why does the combobox treat typing in a random number as the FK of the control anyway when it doesn't do the same thing if you type in a random character?

Anyway the above is a question for a different time but after finding this out, I've found there's an article on how to avoid these kind of situations using JavaScript on this page: 

https://docs.telerik.com/kendo-ui/knowledge-base/prevent-submission-of-missing-value

While trying to implement this logic, I can see that it's working (by not allowing the random number selection to be saved), but I've noticed there's actually an error on the first round of "select" call as the loading icon is displayed on the combo box.

 

The specific line is the "this.select(0)" line from the code snippet below:

if (this.value() && this.selectedIndex == -1) {   
    this.dataSource.filter({
        value: this.value(),
        field: this.options.dataTextField,
        operator: "contains"
    });
 
    this.select(0);  <=== this line is causing the issue.
 
    if ( this.selectedIndex == -1 ) {                   
        this.text("");
    }
}

 

 

Upon closer inspection, I see that there's a 500 error being thrown due to the "Page" parameter being set to NaN and the "PageSize" parameter being set to 0.

https://.../Items?sort=&group=&filter=NameDisplay~contains~%2712%27&page=NaN&pageSize=0

 

Any subsequent searches works without any issues and sets the "Page" and "PageSize" to the correct values.

https://.../Items?sort=&page=1&pageSize=80&group=&filter=NameDisplay~contains~%2712%27

 

This is very strange as the 500 error (above) only displays the first time this.select(0) is called, but any subsequent times will work without any issues.

 

While trying to reproduce this, I've found that it only occurs when the combobox has a valuemapper set to it.

.Virtual(v => v.ItemHeight(26).ValueMapper("itemsValueMapper"))

 

 

When the valuemapper function is removed from the combobox, the this.select(0) functions runs without any issues.

 

The value mapper is required for my comboboxes as it provides a good way to virtualise my lists.

 

My datasource is using webapi as below:

.DataSource(source =>
{
    source.Custom()
        .ServerFiltering(true)
        .ServerPaging(true)
        .PageSize(80)
        .Type("webapi")
        .Transport(transport =>
        {
            transport.Read(a => a.Url(itemsUrl));
        })
        .Schema(schema =>
        {
            schema.Data("Data")
                    .Total("Total");
        });
})

 

 

Is there any work around that can be done for this?

Or even better, is there a way to prevent the combobox from binding random number values typed into the control?

Veselin Tsvetanov
Telerik team
 answered on 13 Jul 2020
1 answer
233 views

Hi All,

 

I have a requirement to show collapse icon (after clicking the expand icon) whether it has a child nodes or not.

 

Thanks

Aleksandar
Telerik team
 answered on 13 Jul 2020
9 answers
1.1K+ views
Hi, we always load all js files at the bottom of a page because of performance. Before the </body> closing tag.
If we shift the JS files from head to the end of the file, Kendo controls are not working.
All the JS files are loaded correct if we check the network traffic with firebug tool.

Is it an known issue? and we have always to load all the scripts in head?

I made a 2nd quick test with the keno example code.
Open kendoui.trial.2012.3.1114\wrappers\aspnetmvc\Examples\Areas\razor\Views\Shared\_WebLayout.cshtml and shifted the following scripts to the bottom. Than load e.g. the datepicker example page (http://localhost/kendo/razor/web/datepicker/index)

    <script src="@Url.Content("~/Scripts/jquery.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.web.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>
    <script src="@Url.Content("~/Scripts/console.min.js")"></script>
    <script src="@Url.Content("~/Scripts/prettify.min.js")"></script>

Same problem. If I open the datepicker test page. Datepicker is not working.
Thanks for your help.
Regards fan
Marin Bratanov
Telerik team
 answered on 09 Jul 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
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?