Telerik Forums
Kendo UI for jQuery Forum
2 answers
483 views
Dear Sir/Madam,

I have a problem with Kendo Upload as below:
1. Call aspx file
$("#filUpload").kendoUpload({
        async: {
            saveUrl: "/_QISSI/import/upload.aspx",
            removeUrl: "remove",
            autoUpload: true,
            success: fFile_onSuccess,
            multible: false
        }
    });

2. In Page_Load method, I saved the uploaded file but I don't how to set successful status for Kendo Upload.

Please give me some document relating to the problem.

Thanks and best regards,
Enzo
Top achievements
Rank 1
 answered on 06 Nov 2014
4 answers
1.4K+ views
I am using the upload widget on ASP.Net when I submit the form.  Due to the file size limit allowed by the server I need a way to cancel the submit if the combined size of the files selected for upload as above a set limit.  Any help is appreciated.

Wade
Dimo
Telerik team
 answered on 06 Nov 2014
3 answers
237 views
Hi there, my understanding with SEO is to stay away from JavaScript if at all possible for the content that needs to be indexed.  So naturally I'd imagine if everything is rendered on server side say via JSP then everything should be fine, and I should select Kendo UI JSP rather than Kendo UI (HTML) for this purpose.

However, reviewing either of the following pages with IE's Developer Tools I am able to see the content of the table displayed in proper HTML format.
http://demos.telerik.com/jsp-ui/grid/index
http://demos.telerik.com/kendo-ui/grid/index

So the question is does this mean in terms of SEO either Kendo UI or Kendo UI JSP makes no difference and I shouldn't be selecting one over the other based on this?
Sebastian
Telerik team
 answered on 06 Nov 2014
3 answers
143 views
Hi i have a chart where i have 3 series.

The first series should be the total value (all requests) and the other 2 should be stacked (accepted / rejected requests).
How is this possible?
I can only get it working that all 3 series are stacked but thats not my goal.

.SeriesDefaults(seriesDefaults =>
seriesDefaults.Area().Line(line => line.Style(ChartAreaStyle.Smooth))
)
.Series(series =>
{
series.Area(Model.Requests).Name("Total requests").Stack(false);
series.Area(Model.AcceptedRequests).Name("Accepted requests").Stack(true);
series.Area(Model.RejectedRequests).Name("Rejected requests").Stack(true);
})

why is this not working?
Hristo Germanov
Telerik team
 answered on 06 Nov 2014
1 answer
323 views
Hi
I’ve found a kind of weird behaviour that occurs during change a progress value directly on a gantt chart, when after it, end of date is also changing. I tried to debug this scenario, to exclude bug on my webservices side. But in the same controller i cannot see any what supposed to be wrong. In a tracing, values to be set in business logic was fine.

My model responsible for read/update looks like:

 public class GetTasksController : ApiController
    {        
        public IEnumerable<DCProdTask> Get()
        {
            Soneta.Business.App.Login t = WebApiApplication.EnovaLogin;

            using (Session sesja = t.CreateSession(true, false))
            {
                DritProdukcjaModule PM = DritProdukcjaModule.GetInstance(sesja);
                return PM.ProdTasks.CreateView()
                                 .Cast<ProdTask>()
                                 .Select(x => Mapper.Map<ProdTask, DCProdTask>(x));               
            }
        }
       
      
        public async Task<DCProdTask> Get([FromUri] ModelType value, string type)        
        {            
            IList<DCProdTask> persons = new System.Web.Script.Serialization.JavaScriptSerializer()
                .Deserialize<IList<DCProdTask>>(value.models);
            DCProdTask[] arr = persons.ToArray<DCProdTask>();
            DCProdTask task = arr[0];            
            Soneta.Business.App.Login l = WebApiApplication.EnovaLogin;
            List<ProdTask> list = new List<ProdTask>();
            switch (type)
            {
                case "Update":  using (Session sesja = l.CreateSession(false, false))
                    {
                        using (ITransaction t = sesja.Logout(true))
                        {
                            DritProdukcjaModule PM = DritProdukcjaModule.GetInstance(sesja);
                            Soneta.Business.View view = PM.ProdTasks.CreateView();
                            view.Condition &= new FieldCondition.Equal("ID", task.ID);
                            view.LoadingRowsCount = 1;
                            ProdTask PTask = (ProdTask)view.GetFirst();
                            if (PTask != null)
                            {
                                DateTime _start = Convert.ToDateTime(task.Start);
                                DateTime _end = Convert.ToDateTime(task.End);
                                Soneta.Types.Percent _percentComplete =
                                    new Soneta.Types.Percent(Convert.ToDecimal(task.PercentComplete));
                                PTask.DataOd = new Soneta.Types.Date(_start);
                                PTask.CzasOd = new Soneta.Types.Time(_start.Hour, _start.Minute);
                                PTask.DataDo = new Soneta.Types.Date(_end);
                                PTask.CzasDo = new Soneta.Types.Time(_end.Hour, _end.Minute);
                                PTask.PercentComplete = _percentComplete;
                                list.Add(PTask);
                            }
                            t.CommitUI();

                        }
                        sesja.Save();
                        sesja.InvokeChanged();
                    }
                    break;
                default: break;
            }
            return  Mapper.Map<ProdTask, DCProdTask>(list.ToArray<ProdTask>()[0]);                         
        }




I’ve attached a couple of screenshots to show a fake values providing to web service through the url, and response as JSON. What is curious, it only happen on a tasks with small data intervals between start and end. When i have huge gantt tasks and i change progress from Month view, i have not noticed such behaviour.


Dimitar Terziev
Telerik team
 answered on 06 Nov 2014
4 answers
417 views
Iam tring to create custom toolbar for my grid, tried few solutions that works for standard kendo ui js but none of them works for angular.js.

Exmaple
http://dojo.telerik.com/EKeme

How to make it work ?
asd
Top achievements
Rank 1
 answered on 05 Nov 2014
1 answer
179 views
I am using kendo UI with AngularJS, and have ran into this issue in Firefox.

Version Information
===============
Kendo UI Version : v2014.2.1008

Issue reproducible ONLY in Firefox (v33.0.2), works fine in Chrome.

Exception stack trace :
=======================
createWidget@http://localhost/Scripts/lib/kendo.all.js:83279:13\n\n
createIt@http://localhost/Scripts/lib/kendo.all.js:83407:38\n\n
timeout/timeoutId<@http://localhost/Scripts/lib/angular/angular.js:14304:28\n\n
completeOutstandingRequest@http://localhost/Scripts/lib/angular/angular.js:4397:7\n\n
Browser/self.defer/timeoutId<@http://localhost/Scripts/lib/angular/angular.js:4705:7"

On debugging further, I figured that the issue is with 'element' argument passed to link function of 'directiveFactory' angular directive. 

module.factory('directiveFactory', ['$timeout', '$parse', '$compile', '$log', function(timeout, parse, compile, log) {
...
...
...
link: function(scope, element, attrs, controllers) {

While 'element' is interpreted as a jQuery wrapped obj in Chrome, it's just an Object inside Firefox. Hence, inside createWidget(), the following check fails inside Firefox :

            if (element.is("select")) {

As an immediate fix, I have modified createWidget() call inside createIt() 
from
           var widget = createWidget(scope, element, attrs, role, origAttr);
to
           var widget = createWidget(scope, ((element instanceof jQuery) ? element : $(element)), attrs, role, origAttr);

This resolves the issue.

Question
=========

Can you investigate this issue and suggest a permanent fix / workaround for this issue ?

Dimo
Telerik team
 answered on 05 Nov 2014
1 answer
205 views
Hi All,

I have created a page using PivotGrid and now I want to export it to an excel file.
 Anyone know how to do this?

Regards,

Rinaldi
Georgi Krustev
Telerik team
 answered on 05 Nov 2014
1 answer
321 views
Hello,

I'm trying to convert the following element of a dynamic table into a template for a list view but am not sure how to go about passing the template value to the function in order to get the correct display value.

Here is the HTML version:

<tr>
    <td colspan="4" style="padding-left:10px; font-weight:bold; font-size:larger">
        @{
            var orderStatus = EnumHelper<OrderStatuses>.GetDisplayValue(order.OrderStatus);
        }
        @orderStatus
    </td>
</tr>

My issue is getting the OrderStatus passed into the EnumHelper method.

<tr>
    <td colspan="4" style="padding-left:10px; font-weight:bold; font-size:larger">
        @{
            var orderStatusDescription = EnumHelper<OrderStatuses>.GetDisplayValue(#=OrderStatus#);
        }
        @orderStatusDescription
    </td>
</tr>

What would the syntax be for this type of scenario or is it not supported (or is there a better way)?

Thanks!




Petyo
Telerik team
 answered on 05 Nov 2014
1 answer
515 views
Hi,

Just wonder if anyone know how to implement windows layout like this http://www.dockspawn.com/ ?

Thanks!
Petyo
Telerik team
 answered on 05 Nov 2014
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?