Telerik Forums
Kendo UI for jQuery Forum
1 answer
193 views

When load-balancing our web servers, and when we upload small pdf documents (<2MB) then the file uploads fine.  If the document is larger, then it fails quickly.

When on a non-load-balanced web site, then it's able to upload large documents as expected.

Any suggestions for solving or troubleshooting this?

Dimiter Madjarov
Telerik team
 answered on 20 Aug 2015
5 answers
877 views

Hello,

I am new to kendo and the forum. I am having trouble understanding how to use the Validator with Observable objects and templates. I can data-bind all of the data and the validator works great on views with no templates or nested objects but when I try to implement the validator on a page that contains a template, it does not work as expected.

So, on initially changing an input, I get the proper validation error. But then when I change any other field, all of my error messages go away.

 For example, field2 must be length 10. So if I input a number of length 4 on the first object, i get a validation message when I leave the field. Now, if I go edit any other field rendered then that validation message will go away even though the length is still 4 in that input. So if I change the second objects field 3, then i lose my validation message on object ones field2.

 On my other views without templates, the validation messages stay until I validate the field, they don't change based on other fields changing.

 Hopefully this is enough information, let me know if I left something out or need to be more specific.

The code looks like this:

<div id="fieldTab">
    <div data-bind="source: fields" data-template="fieldTemplate" />
</div>
  
<script id="fieldTemplate" type="text/x-kendo-template">
    <select name="field1#= fieldSys#" data-role="dropdownlist" data-bind="value: field1" />
    <input name="field2#= fieldSys#" class="k-textbox" type="text" pattern=".{10,10}" data-bind="value: field2" />
    <input name="field3#= fieldSys#" class="k-textbox" pattern=".{0,20}" type="text" data-bind="value: field3" />
</script>

 

var fieldTab = $("#fieldTab");
var viewModel = kendo.observable({

 fields: [

        {fieldSys: "1",field1: "1", field2: "1", field3: "1"},
        {fieldSys: "2",field1: "2", field2: "2", field3: "2"},
        {fieldSys: "3",field1: "3", field2: "3", field3: "3"}
    ]
});
fieldTab.kendoValidator().data("kendoValidator");
kendo.bind(fieldTab, viewModel);

Vladimir Iliev
Telerik team
 answered on 20 Aug 2015
4 answers
544 views
I did not have issues with Telerik Extensions for MVC with the same setup. 

I have a Kendo Tabstrip that loads partialviews with Kendo Grids contained within. They render fine! However, when I click edit, it throws the following error:

jQuery('#MilitaryPlanned').tTextBox({val:0, step:1, minValue:-2147483648, maxValue:2147483647, digits:0, groupSize:3, negative:1, text:'Enter value', type:'numeric'});

I took the datatype annotation on the model  out, and it worked giving me just a generic textbox, which is useless to me. I must have specific data types.

I tried adding the script references directly to the partial view and no joy.

I then proceeded to test this outside the partial in a full view page supported by the layout page. It worked great!

So I believe the question is:
WHY ARE THE JS REFERENCES NOT WORKING IN THE PARTIAL? Are they not seeing the javascript files in the layout?
Dimo
Telerik team
 answered on 19 Aug 2015
2 answers
169 views

Hello,

 I am experiencing an unusual behavior with dropdownlist within a grid using the keyboard navigation. When the dropdownlist has focus and I press the down arrow key, instead of going to the next item in the list, it goes all the way to the last item. Also I noticed that if I pressed the up arrow key before pressing the down key it works correctly. Is this a bug with your dropdownlist control? How can this be resolved? Thank you.

PrimePay
Top achievements
Rank 1
 answered on 19 Aug 2015
8 answers
398 views

Hello, 

 I have requirement that we should be able to give uses to select number of days to be shown in the scheduler and scheduler should be changed accordingly. Please check the structure of the week scheduler from this.

Requirement:

Ex:

1. Select 6 , scheduler should show only 6 days 

2. Select 8,  scheduler should show only 8 days 

 Any Idea?

 

Thanks, 

Lilan

Rosen
Telerik team
 answered on 19 Aug 2015
5 answers
208 views
If I set the height of the scheduler and have a lot of all day events, the allDaySlot grows in size to fit all the events, causing the contents of the scheduler to overflow its height.  Is there a way to limit the height of the allDaySlot and have it scroll if its contents exceed that height?
Vladimir Iliev
Telerik team
 answered on 19 Aug 2015
1 answer
101 views

The treemap is only showing data that is set first. When I change the options, the widget still displays the old data.

http://dojo.telerik.com/ifEWA/2

Then I thought I will try just changing the data on the datasource but that did not work either.

http://dojo.telerik.com/exUtI

 

What is the right way of using a treemap to display different sets of data? My schema is the same.

 

Thanks.

Daniel
Telerik team
 answered on 19 Aug 2015
4 answers
200 views

Hi there,

I have a bar chart and a pie chart next to each other.  In each case they come from a model with a property of 'category' for displaying the each item falls into.  The pie chart displays the legend correctly, but the bar chart simply states 'Share' instead of a correct legend (see attached screenshot) - it seems it can't read the datasource correctly in the legend but can in the rest of the chart (I have got the x-axis labels switched off but when switched on the categories are being rendered correctly).

This is my view code (pie chart, then bar chart) :-

@( Html.Kendo().Chart<Models.SitesSurveyedPieChartModel>()
.Name("sitesSurveyed")
.ChartArea(chartArea => chartArea.Background("#F5F5F5"))
.Title(title => title
.Text("Sites Surveyed")
.Position(ChartTitlePosition.Top))
.HtmlAttributes(new { @class = "small-chart" })
.Legend(legend => legend
.Visible(true)
.Position(ChartLegendPosition.Bottom)
)
.DataSource(ds =>
{
ds.Read(read => read.Action("SitesSurveyedPieChart", "Reporting"));
ds.Sort(sort => sort.Add(model => model.SiteSurveyed).Ascending());
}
)
.Tooltip(tooltip => tooltip
.Visible(false)
)
.Series(series => series
.Pie(model => model.Share, model => model.SiteSurveyed.ToString(), model => model.Color)
.Padding(0)
.Labels(labels => labels
.Visible(true)
.Template("#= value # (#= kendo.format('{0:P}', percentage)#)")
.Align(ChartPieLabelsAlign.Column)
.Position(ChartPieLabelsPosition.Center)
)
)
.Events(events => events
.SeriesClick("onSeriesClick_sitesSurveyed")
)
)
@( Html.Kendo().Chart<Models.RiskItemsBarChartModel>()
.Name("riskItems")
.ChartArea(chartArea => chartArea.Background("#F5F5F5"))
.Title(title => title
.Text("Risk Items")
.Position(ChartTitlePosition.Top))
.DataSource(ds => ds
.Read(read => read.Action("RiskItemsBarChart", "Reporting")) // Specify the action method and controller name
)
.Series(series => series
.Bar(d => d.Share, d => d.Color)
.Labels(labels => labels
.Visible(true)
.Template("#= value # (#= dataItem.PercentageField #)")
.Position(ChartBarLabelsPosition.InsideBase)
)
)
.CategoryAxis(axis => axis
.Categories(model => model.category)
.Visible(false)
)
.Tooltip(tooltip => tooltip
.Visible(false)
)
.Legend(legend => legend
.Visible(true)
.Position(ChartLegendPosition.Bottom)
)
)

These are my models for each of above respectively (and are definitely being populated correctly) :-

public class SitesSurveyedPieChartModel
{
public Surveyed SiteSurveyed { get; set; }
public int Share { get; set; }
public bool VisibleInLegend { get; set; }
public string Color { get; set; }
public string category { get; set; }  ....

public class RiskItemsBarChartModel
{
public int Share { get; set; }
public bool VisibleInLegend { get; set; }
public string Color { get; set; }
public string category { get; set; }
public int SortOrder { get; set; }
public string PercentageField { get; set; }  ......

The image of what I'm getting rendered is attached.  Any help getting this sorted out would be appreciated.

Thanks, Mark

Mark
Top achievements
Rank 1
 answered on 19 Aug 2015
1 answer
149 views

Hi,

 

 I am trying to work with Kendo UI Bootstrapper, and I must say I really like the idea behind it.

 The problem is that I get errors like this:

Oops, the server has died!The Bootstrapper server has vanished. This is a bug, most likely, but this window won't be usable anymore. You should close it and restart the Bootstrapper.

Happens when I click on Compile in a new project or when I click on Bundle in another app.

This is the error message I get ( in the console ):

/Users/Mate/Sites/kendo-projects/kendo-bootstrapper/node_modules/less/lib/less/parser/parser.js:117
            imports.contents[fileInfo.filename] = str;
                   ^
TypeError: Cannot read property 'contents' of undefined
    at Object.Parser.parse (/Users/Mate/Sites/kendo-projects/kendo-bootstrapper/node_modules/less/lib/less/parser/parser.js:117:20)
    at /Users/Mate/Sites/kendo-projects/kendo-bootstrapper/lib/files.js:135:24
    at fs.js:334:14
    at FSReqWrap.oncomplete (fs.js:95:15)

 

Any idea why this happens?

Also I can see that Bootstrapper hasn't been updated since 2014. Does this mean that the project won't continue? Is there any other tool out there that does the same things?

 

Best Wishes,
Matt

Mihai
Telerik team
 answered on 19 Aug 2015
2 answers
287 views

Hello Telerik Community,

 I have a column chart that is displaying data sorted alphabetically, and I would like to turn this off so that it displays the data based on the order of the array that I put in for the categories. I'm using Javascript for my charting needs and I have a dataset that is returning grouped data based on Month, and the month names are being sorted alphabetically as you can see in the screenshot below. I would like them to sort based on their order in the array which is already ordered properly based on months.

 Any thoughts?

 Thanks!

Iliana Dyankova
Telerik team
 answered on 19 Aug 2015
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?