Telerik Forums
UI for ASP.NET MVC Forum
5 answers
372 views

Hello, I am trying to set the pagesize of my listview on the client side and I am unable to figure out how to do it. I bound the databound event to a javascript function and I am trying to set the pageSize using "listview.dataSource.pageSize(5)"  but when I call this function once it keeps getting called over and over in a  loop until the stack runs out of room. It does set the pagesize but it shouldn't keep getting called. What am I doing wrong?

Viktor Tachev
Telerik team
 answered on 17 Apr 2018
1 answer
448 views

Hi,

I have a TreeList with several columns. One of them is displaying an image. The others just some short text.
The image column contains the url in it's model and I use a custom template to show the image. This is gonna work as expected:

columns.Add().Field(i => i.ImageUrl).Template("<img src=\"#: ImageUrl #\">")

 

But no I wand to edit this row and have a custom editor for this image column. At the end I wand to embedd DropZone to upload a new image. How can I assign a custom editor (any kind) instead of the default textbox which appears for basically every kind of data type?

I've seen that the column builder has a method called "Editor(string value)". But the API documentation of Kendo is as useless as ever. I don't understand why a enterprise grade component provider can survive with such bad quality. Nevertheless, is this maybe the way to go? If yes, how should I use this method? Because it's not the name of a kendo-template, editor template, javascript function nor html id.

Thank you. Best regards.

Alex Hajigeorgieva
Telerik team
 answered on 17 Apr 2018
2 answers
446 views

Hi I have a set of 3 grids displaying financial data for a set of records - all with the same columns -

grid 1 holds the baseline monthly data,

grid 2 (editable) holds same records but the dollar amounts can be edited to what is needed in the new monthly cycle

grid 3 holds the same records but displays the variance between the values of grid 1 and 2 - currently have paging and scrolling synchronized

 

I am wondering now if there is a way to apply the grid column filter from one grid to another - i have not found this exact question answered anywhere

can someone help?

 

thanks

Jim

 

James
Top achievements
Rank 1
 answered on 13 Apr 2018
1 answer
92 views

Anyone know why when I change my grid's page it only seems to really change the page after my function completes? e.g. 

var g = $("#MyGrid").data("kendoGrid");
g.dataSource.page(2);

 

If I try to find a record on this new page by doing something like this: 

var dataItem = g.dataSource.get(MyRecordID);

DataItem is unknown

But if I wait until the function finishes it does change the grid's page.

If I set a breakpoint I can see the grid's datasource page is set to 2, but the data still has the old page one loaded...

Preslav
Telerik team
 answered on 13 Apr 2018
1 answer
106 views

Hello,

 I started to use dropdownlist Kendo but your documentation is confusing and I cannot find an info that I am looking for.

 I created 

@(Html.Kendo().DropDownListFor(d => d.AppraisalType)
                    .Name("optional")
                    .OptionLabel("Select Appraisal Type")
                    .HtmlAttributes(new { @class = "form-control", id = "typeAppraisal" })
                    .BindTo(new List<string>() {
        "60 Days Appraisal",
        "6 Months Appraisal",
        "Yearly Appraisal"
    })

When I submit the form it is not in database, saved as null. How I can save it?

And another thing how to set up dropdownlist as required field? 

Thank you!


Nencho
Telerik team
 answered on 13 Apr 2018
8 answers
476 views

Using the min and max values for the picker will prevent you from being able to select the dates/times via the UI, but you can still manually enter values outside of the min and max. I believe this is expected behavior, but there doesn't seem to e a way to inform the user that they just entered a datetime that is not in valid range. The onChange event does not fire, which makes sense, so there's no way for me to hook in and tell the user they just entered an invalid date.

 

My question: How can I disable dates in the UI AND still do min/max validation for the user so they know they netred a date/time out of the range and prevent a a form submission?

Viktor Tachev
Telerik team
 answered on 11 Apr 2018
1 answer
161 views

I need to call LoadSettings (via razor) as per a previous post; In short I need to call LoadSettings, but I also need to be able to set columns to be multi-select fitlerable.

 

How can I call LoadSettings and then do additional settings that are not yet implemented via LoadSettings? Can I overload LoadSettings in some way? Is the implementation of LoadSettings available? Is it likely to be re-implemented in the future?

 

 

 

Preslav
Telerik team
 answered on 11 Apr 2018
8 answers
100 views

Hi,

Is it possible to use 1 PivotGrid and have pre-defined columns, rows and measures etc, that change based on an onclick event?

For instance i would have two buttons, "View 1" and "View 2", when one of these buttons are clicked the PivotGrid would re-drawn using defined cols, rows etc?

Thanks,
Lee.

Lee
Top achievements
Rank 1
Veteran
 answered on 11 Apr 2018
2 answers
137 views

Im using the Kendo UI Editor and I'd like to be able to capture the print event - not the Print Execute command but the actual printing of the document (see attached image).

I realize that there is a onafterprint event (not supported by all browsers) - is this the only way to capture the printing of the Editor content?

Ruairi
Top achievements
Rank 1
 answered on 11 Apr 2018
5 answers
107 views

Hi Guys,

In my application I have a grid within a grid using ClientDetailTemplateId

in my subgrid I want to have 5 tabs, but in one specific instance I would like to have 6.
I created a script to remove the 6th tab with JavaScript, but this doesn't work in IE. and also it's not nice.

 

What I actually want is something like this.

if (#=MyId# == "9212")
                     {
                                 items.Add().Text("Title").Content(

where only if MyId = 9212 the item should be added,

but whatever I try I can't get it to work.

is there someone who can help me?

Thank you in advance.


Stefan
Telerik team
 answered on 11 Apr 2018
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
Window
ListView
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?