Telerik Forums
Kendo UI for jQuery Forum
4 answers
237 views
Hi,

I'm using the upload-control. It's working very fine.

However, I have implemented code server-side that checks for whether a file already exists at the server. If it does, the file is renamed to something like 'file(1).jpg' in order not overwrite the existing file.

I'm trying to figure out how to send the information about the renamed file back to the Upload-control. Is this possible?

I'm using AngularJS, btw.

Regards,

Peter
Dimiter Madjarov
Telerik team
 answered on 25 Jul 2016
2 answers
1.7K+ views

Hi,

I have a kendo grid with the Ward column having a dropdownlist editor template. We are using MVC architecture. When I tab through the grid cells so fast so that we are out of the Ward cell before the dropdownlist refreshes, the value is set to undefined and it doesn't change after that even if we select it. When I debugged the issue in IE, it breaks in one of the kendo js saying i.input.val() is undefined. 

It works fine as long as I let the dropdownlist refresh before I move to the next cell. Please advise!

I am having the same issue with all the dropdownlist editor templates.

 

//Inside the partial view

@(Html.Kendo().Grid(programContactData)
      .Name(gridName)

      .Columns(cols =>
      {

   cols.Bound(t => t.Ward).Width(70).EditorTemplateName("WardDropDown").ClientTemplate("#:Ward.WardNumber#").HtmlAttributes(new { style = "text-align:right" });

})

  .DataSource(dataSource => dataSource
                                .Ajax().ServerOperation(false)
                                .Batch(true)

                                .Model(model =>
                                {

                                        model.Field(m => m.Ward).DefaultValue(defaultWardNumber as TRE.Models.WardViewModel).Editable(true);

                               })

)

//Ward dropdown Editor Template

@(Html.Kendo().DropDownListFor(m => m)
            .AutoBind(false)       
                
            .DataValueField("WardId")
            .DataTextField("WardNumber")
            .DataSource(source =>
             {
                 source.Read(read =>
                 {
                     read.Action("PopulateWardList", "SaveForm");
                 }).ServerFiltering(true);
             })
        //.Events(e =>
        // {
        //     e.Select("onSelect");
        // })
)

//Save Form controller PopulateWardList method

   public ActionResult PopulateWardList()
        {
            try
            {
                List<WardViewModel> wardList = new List<WardViewModel>();
                wardList.Add(new WardViewModel() { WardId = 0, WardNumber = " " });
                wardList.Add(new WardViewModel() { WardId = 1, WardNumber = "1" });
                wardList.Add(new WardViewModel() { WardId = 2, WardNumber = "2" });
                wardList.Add(new WardViewModel() { WardId = 3, WardNumber = "3" });
                wardList.Add(new WardViewModel() { WardId = 4, WardNumber = "4" });
                wardList.Add(new WardViewModel() { WardId = 5, WardNumber = "5" });
                wardList.Add(new WardViewModel() { WardId = 6, WardNumber = "6" });
                wardList.Add(new WardViewModel() { WardId = 7, WardNumber = "7" });
                wardList.Add(new WardViewModel() { WardId = 8, WardNumber = "8" });

                ViewBag.DefaultWard = wardList.First();
                return Json(wardList, JsonRequestBehavior.AllowGet);
            }
            catch (Exception ex)
            {
                LogManager.GetLogger("DHW").Error(ex);
                throw;
            }
        }

Benoy
Top achievements
Rank 1
 answered on 23 Jul 2016
2 answers
136 views

The diagram `layout` method returns immediately while the layout process is on-going in the background.

It would be nice to have some way of knowing when the layout is finished, so I can show the user a "waiting" or "working" indication in the meanwhile. 

I couldn't find any `onLayoutFinished` in the API docs. Is there a way to know if the layout has finished processing? 

 

Thank you. 

Itai
Top achievements
Rank 1
 answered on 23 Jul 2016
1 answer
2.1K+ views

I have two questions regarding row grouping with my Kendo Grid that is being built from an existing HTML table.

First, the rows in the table are already sorted by the column to group by before the table becomes a Kendo Grid. This sorting is not ascending or descending, but is a custom sort that should never change. Here is the Kendo Grid initialization code where I group by the groupNumber column.

var grid = $("#myHTMLGrid").kendoGrid({
    dataSource: {
        group: {
            field: "groupNumber"
         }
     },
});

By default, grouping the rows causes the group rows to be sorted in ascending order. Can I possibly prevent the group rows from being reordered in any way so that the table holds true to the initial ordering?

My second question is this. I need to color code the group rows based on the values of groupNumber. How can this be accomplished? Thank you.

 

Dimiter Topalov
Telerik team
 answered on 22 Jul 2016
1 answer
99 views

We are currently experiencing a bug in the kendo grid control on IE version 11.420.10586.0 and 11.0.9600.18349, have not test all IE versions only these 2. The column resizing handles do not appear when attempting to resize the column. It has been tested in modern versions of Firefox, Chrome, Safari, Opera and IE and IE is the only one experiencing this issue. Is this a known issue and can you recommend a work around? I am experiencing this but on your samples so I have not enclose sample code. Please see http://demos.telerik.com/kendo-ui/grid/column-resizing, I am experiencing the problem in your samples as well as in my own project.

Thanks

Randy

Dimo
Telerik team
 answered on 22 Jul 2016
1 answer
317 views

I am very new to telerik and angular.  Literall my 4th week using these controlls and i need help.  I created a telerik grid and connected to a datsource generated by a service.  I am able to get the data into to the grid, but the filter/sort does not function.  I have inserted my code below.

 <======================  html page  begin  =======================>      
<div id="recentclaimsgrid" kendo-grid k-data-source="recentclaims" k-selectable="'row'" k-pageable='{ "refresh": true, "pageSizes": true }'
                                                 k-columns='[
                                    { field: "url", filterable: { multi: true, search: true },  title: "" },
                                    { field: "status", filterable: { multi: true, search: true },  title: "Status" },
                                    { field: "settled", filterable: { multi: true, search: true },  title: "Settled" },
                                    { field: "name", filterable: { multi: true, search: true },  title: "Name" },
                                    { field: "dateofloss", filterable: { multi: true, search: true },  title: "Data Of Loss" },
                                    { field: "claimnumber", filterable: { multi: true, search: true },  title: "Claim Number" },
                                    { field: "policynumber", filterable: { multi: true, search: true },  title: "Policy Number" },
                                    { field: "sequencenumber", filterable: { multi: true, search: true },  title: "Sequence Number" },
                                    { field: "lineofbusiness", filterable: { multi: true, search: true },  title: "Line Of Business" },
                                    { field: "currentworkqueue", filterable: { multi: true, search: true },  title: "Current Workqueue" },
                                    { field: "numberofdays", filterable: { multi: true, search: true },  title: "Number of Days" },
                                    { field: "liabilitydecision", filterable: { multi: true, search: true },  title: "Liability Decision" }
                                    ]'>
</div>

 

 <======================  html page  end=======================>     

 <====================== angular controller page  begin  =======================>  

 function loadfullrecentclaims() {
            caseopenService.loadfullrecentclaims(function(response) {
                $scope.recentclaims = new kendo.data.DataSource({
                    data: response,
                    schema: {
                        model: {
                            fields: {
                                url: { type: "string" },
                                 status: { type: "string" },
                                settled: { type: "string" },
                                name: { type: "string" },
                                dateofloss: { type: "string" },
                                claimnumber: { type: "string" },
                                policynumber: { type: "string" },
                                sequencenumber: { type: "string" },
                                lineofbusiness: { type: "string" },
                                currentworkqueue: { type: "string" },
                                numberofdays: { type: "string" },
                                iabilitydecision: { type: "string" },
                            }
                        }
                    },
                    pageSize: 5,
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true
                });
            }, function(error) {
                messageService.Error(error, true);
            });

        };

 <====================== angular controller page  begin=======================>  

 

 

function loadfullrecentclaims(callSuccess, callError) {

            helperService.httpget('caseopen/LoadFullRecentClaims', callSuccess, callError);

        }

 <====================== angular service page  end=======================>  

 <====================== angular service page  end=======================>  
Dimiter Topalov
Telerik team
 answered on 22 Jul 2016
5 answers
815 views

Hi..

I created kendo stacked column chart in my project using angular js. im giving condition tool tip template. here is the dojo example http://dojo.telerik.com/aZEgu

 

 

Alex Hajigeorgieva
Telerik team
 answered on 22 Jul 2016
1 answer
429 views

HI,

In this sample code i try to delete shape by remove item from diagram datasource,

but after the delete the 2 shapes remain in the diagram and in the datasource only 1.

 

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Kendo UI Snippet</title>

    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.rtl.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.silver.min.css"/>
    <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2016.2.714/styles/kendo.mobile.all.min.css"/>

    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
    <script src="http://kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
</head>
<body>
  
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
    dataSource: [{
       "name": "Telerik",
       "items": [
           {"name": "Kendo"},
           {"name": "Icenium"}
       ]
    }],
    template: "#= item.name #",
    autoBind: false
});

// Fetching data will trigger "change" on the dataSource
$("#diagram").getKendoDiagram().dataSource.fetch();
  
var datasource = $("#diagram").getKendoDiagram().dataSource.data()[0];

  alert(datasource.items.length); //2
$("#diagram").getKendoDiagram().dataSource.remove(datasource.items[0]);
  
  alert(datasource.items.length); //1
  
</script>
</body>
</html>

Vessy
Telerik team
 answered on 22 Jul 2016
8 answers
452 views

How can i generate, using kendo ui grid with mvc, a QRCode for every row of grid with link to id page of this row element?

I have something like in the image.

Dimiter Madjarov
Telerik team
 answered on 22 Jul 2016
3 answers
330 views
Hi,

Was trying the Dojo (http://dojo.telerik.com/tutorial/framework-datasource) but stuck at here.
The error returned in the Result is:

ListView widget not initialized.

What did I miss?

Thanks.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Untitled</title>
 
   
 
  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script>
     
    var ds = new kendo.data.DataSource({
        data: [
            { text: 'Tweet 1', id: 1 },
            { text: 'Tweet 2', id: 2 },
            { text: 'Tweet 3', id: 3 },
            { text: 'Tweet 4', id: 4 },
            { text: 'Tweet 5', id: 5 }
        ]
     });
    $('#twitter').kendoListView({
           dataSource: ds,
           template: '<li>#: text #</li>'
    });
     
  </script>
</head>
<body>
   <ul id="twitter"></ul>
</body>
</html>
Alex Gyoshev
Telerik team
 answered on 22 Jul 2016
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?