Telerik Forums
Kendo UI for jQuery Forum
2 answers
267 views
I wanted to know how to implement something like this..

I did see this, but couldn't implement it
    "The PlotArea: PlotArea -> Appearance ->FillStyle ->FillType ->Image, then PlotArea -> Appearance ->FillStyle ->FillSettings->BackgroundImage;The bars filling in a        series: the series -> Appearance ->FillStyle ->FillType ->Image, then the series -> Appearance ->FillStyle ->FillSettings->BackgroundImage"

I am using angular framework..
 My chart Series looks something like this..

 angular.forEach($scope.stacks, function (obj) {
                        $scope.chartSeries.push({ stack: obj.name, field: obj.fields[0], spacing: 0.5, gap: 4});
                        $scope.chartSeries.push({ stack: obj.name, field: obj.fields[1], spacing: 0.5, gap: 4,
                            appearance: {fillStyle: {fillType: "hatch"}}
                        });
});

 $scope.revenueChartConfig = {
                        theme: "uniform",
                        dataSource: $scope.model.asd,
                        seriesColors: ["#1e80d4", "#1e80d4","#00a3e4", "#00a3e4", "#656a6b", "#656a6b"],
                        series: $scope.chartSeries,
                          ..............
}

T. Tsonev
Telerik team
 answered on 11 Nov 2014
7 answers
218 views
Hi,

I have the following issue: We're creating a simple Employee Lookup app where you can drill down from the employee details to the manager details and direct reports details. Each of these pages essentially look the same so I would like to use the same view.

Here my issue:
- When I am on a view 'employee-detail-view' and then want to navigate to the same view again (for manager or direct reports), KendoUI doesn't do this because it keeps track of which view it is currently on.
- I also tried inserting dynamic views into the DOM based on user navigation but it seems KendoUI can't find them. It appears it finds all the local views at beginning of app creation and then doesn't find the dynamically created ones. The code below shows a 'failed to locate resource' error since KendoUI is looking for an external html file.
 
Can anyone point me to the right approach?

Thanks!

m.navigateEmployeeDetailView = function(empId) {
    // Forward Navigation
    m.navFlag = true;
    
    // Set Employee GUID
    m.selectedEmployeeId = empId;
    
    m.currentViewId = new Date().getTime();
    var viewId = "m-emp-detail-view-"+m.currentViewId;
    console.log('view id: '+viewId);
    var newViewDiv = '<div id="'+viewId+'" data-role="view" data-title="Details" data-before-show="m.showEmployeeDetailView" style="display:none;"></div>';
    
    // Add it to the container
    $('#m-emp-detail-views').append(newViewDiv);
    
    // Add Template
    var template = kendo.template($("#m-emp-detail-templ").html());
    var data = { empId: m.currentViewId }; 
    // Pass data to the template
    var result = template(data);
    $('#'+viewId).html(result);
    
    // Navigate to view
    m.kendoApp.navigate(viewId);
Kiril Nikolov
Telerik team
 answered on 11 Nov 2014
1 answer
166 views
Hello,

is there a easy way to show the sum of column in the first row? It seems like the groupFooterTemplate can do this by default. But is this also possible in the groupHeader?

Please check this example, it shows the layout of my Grid. I want to display the red marked line.
http://jsbin.com/mipeqobuna/1/edit

Thanks in advance

Kind regards

Jens



 
</body>
</html>
Vladimir Iliev
Telerik team
 answered on 11 Nov 2014
1 answer
305 views
Dear Telerik Developers,

I've made a grunt task that collects all my javascript files and calculates it's dependencies according to the YUIDoc output which works great. I'm building an IDE upon Kendo and for now I'm including "kendo.all" in my minified version but that kills my browser (the minified version is 2.3 MB). So I want to include only the components of Kendo that I use, but then I'm running into the problem that my grunt task collides with the AMD usage of Kendo itself. The solution would be to remove the first three lines in every file in "src/js":

(function(f, define){
define([ "./kendo.core" ], f);
})(function(){

Or the define needs a name translation as requirejs provides it the "paths" section. If the "./" is not ommited it could make a difference (I think) but testing that would require a lot of work with a huge possibility that it would fail.

Could someone give me a solution or a tip how to resolve this? 
Mihai
Telerik team
 answered on 11 Nov 2014
3 answers
147 views
Hi,

I am developing an application where based on the user role, he/she can view a set of Templates. So in case, of normal user, he/she should view X templates, while Admin can view X and Y Templates.

Is using local templates, anyone regardless of his/her role, could "View Source" and see the Templates used by Admin.

Is there a work around? 

Thanks
Petyo
Telerik team
 answered on 11 Nov 2014
3 answers
240 views
Hi,
Can i place Form inside a PanelBar?
I have a very long form that I want to logically split and place inside PanelBar items. Is that possible?

I will have a single button outside the PanelBar to submit the entire form.

Appreciate your assistance.

Best regards
Bilal Haidar
Petyo
Telerik team
 answered on 11 Nov 2014
3 answers
158 views
Hello, 
I found that kendo version 2014.1.318 supports setter for dependent property. 
Where is the documentation? I can not find it anywhere. 

thank you
Alexander Valchev
Telerik team
 answered on 11 Nov 2014
1 answer
373 views
My kendo Grid have column having combobox editor on clicking edit button its not holding its value rather showing the combobox first value and on cancel the row vanishes from the grid please find the attachment for screenshot.Here is my code

var forecastGrid = detailRow.find(".LongRangePlan").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_api/web/lists/GetByTitle('LELRPMST')/items?$select=ShortDisplayName,EntityName,CountryName/Title,CountryName/ID,RegionName/Title,RegionName/ID&$expand=CountryName,RegionName",
type: "GET",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
},
create: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/LELRPMST",
dataType: "json"
},
update: {
url: function (data) {
return "http://datacollect.taxdemos.com/sites/LaureateDev/_api/web/lists/GetByTitle('LELRPMST')/items" + "(" + data.ID + ")";
},
beforeSend: function (jqXhr, options) {
var data = JSON.parse(options.data);
jqXhr.setRequestHeader("If-Match", data.__metadata.etag);
},
type: "POST",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE"
}
},
destroy: {
url: function (data) {
return "http://datacollect.taxdemos.com/sites/LaureateDev/_api/web/lists/GetByTitle('LELRPMST')/items" + "(" + data.ID + ")";
},
type: "DELETE",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
"X-HTTP-Method": "MERGE",
"If-Match": "*"
}
},
parameterMap: function (data, type) {

// if (type == "update") {
// for (var property in data) {
// if (property != "__metadata" && property != "ID" && property != "Title" && property != "SourceId1" && property != "SourceList" && property != "Status") {
// delete data[property];
// }

// }
// };
// if (type == "create") {
// for (var property in data) {
// if (property === "ID") {
// delete data[property];
// }
// }
// // return kendo.stringify(data);

// };

return kendo.data.transports["odata"].parameterMap(data, type);

}

},
pageSize: 7,
serverPaging: true,
serverSorting: true,
serverFiltering: true,
// filter: { field: "Title", operator: "eq", value: e.data.Title },
schema: {
model: {
id: "ID",
fields: {
ID: { type: "number", editable: false, nullable: true },
EntityName: { type: "string" },
ShortDisplayName: { type: "string" },
RegionName: { type: "object", defaultValue: { Title: "GPS"} },
CountryName: { type: "object", defaultValue: { Title: "Mexico"} }
}
}
}
},

//toolbar: [{ name: "my-create", text: "Add new record" }, "cancel"],
toolbar: ["create", "cancel"],
scrollable: false,
sortable: true,
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5
},
filterable: { mode: "row" },
columns: [
{ field: "EntityName", title: "HFM Name", filterable: { cell: { showOperators: true}} },
{ field: "ShortDisplayName", title: "Dashboard Dispaly Name", filterable: { cell: { operator: "contains"}} },
{ field: "CountryName", title: "Country", editor: CountryHierarchyCellDropDownEditor, template: "#=CountryName.Title#", filterable: { cell: { showOperators: false, template: CountryDropDownEditor}} },
{ field: "RegionName", title: "Region", editor: RegionHierarchyCellDropDownEditor, template: "#=RegionName.Title#", filterable: { cell: { showOperators: false, template: RegionDropDownEditor}} },
{ field: "Exception", command: ["edit", "destroy"], title: "Action", filterable: { cell: { showOperators: false, template: '<input id="${id}" type="checkbox" />'}}}],
editable: "inline"
});

function RegionHierarchyCellDropDownEditor(container, options) {
if (typeof (options) == 'undefined') {
$('<input required data-text-field="Title" data-value-field="ID" />')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Regions",
type: "GET",
dataType: "json",
success: function (data) {
alert(data);
alert("RegionId");
},
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
}
}
});
}
else {
$('<input required data-text-field="Title" data-value-field="ID" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Regions",
type: "GET",
dataType: "json",
success: function (data) {
alert(data);
alert("Region");
},
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
}
}
});
}
}

function CountryHierarchyCellDropDownEditor(container, options) {
if (typeof (options) == 'undefined') {
$('<input required data-text-field="Title" data-value-field="ID" />')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Countries",
type: "GET",
dataType: "json",
success: function (data) {
alert(data);
alert("CounrtyID");
},
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
}
}
});
}
else {
$('<input id="drpCountry" required data-text-field="Title" data-value-field="ID" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Countries",
type: "GET",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
},
change: function (data) {

}
}
});

$("#drpCountry").data('kendoDropDownList').value(options.model.CountryName.ID);
}
}


function CountryDropDownEditor(container) {
container.kendoDropDownList({
autoBind: false,
dataTextField: "Title",
dataValueField: "ID",
valuePrimitive: true,
optionLabel: "Select...",
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Countries",
type: "GET",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
}
// filter: { field: "Title", operator: "eq", value: filterData }
}

});
}
function RegionDropDownEditor(container) {
container.kendoDropDownList({
autoBind: false,
dataTextField: "Title",
dataValueField: "ID",
valuePrimitive: true,
optionLabel: "Select...",
dataSource: {
type: "odata",
transport: {
read: {
url: "http://datacollect.taxdemos.com/sites/LaureateDev/_vti_bin/listdata.svc/Regions",
type: "GET",
dataType: "json",
contentType: "application/json;odata=verbose",
headers: {
"accept": "application/json;odata=verbose"
}
}
}
// filter: { field: "Title", operator: "eq", value: filterData }
}

});
}

Dimo
Telerik team
 answered on 10 Nov 2014
1 answer
75 views
hello, Do you guys have example to load the KendoMobileListview using angular $http service and wait until the data is being request from remote call? when the data comes back List view can refresh..

thanks
Manish
Petyo
Telerik team
 answered on 10 Nov 2014
1 answer
167 views
hello, I am using remote data to load the data and its like in "basedata.json" file, now kendomobileListview transport and data source works fine if I have 1 level object so I can map in the template like below 

<script type="text/x-kendo-tmpl" id="mobile-listview-filtering-template">
<div class="product">
<h3>#:name#</h3>
<p>#:siteID#</p>
</div>
</script>

however when I am trying to do somelike this to match with my json data, kendo is not loading the data. appreciate your help..

<script type="text/x-kendo-tmpl" id="mobile-listview-filtering-template">
<div class="product">
<h3>#:InstallSite.name#</h3>
<p>#:InstallSite.siteID#</p>
</div>
</script>



Petyo
Telerik team
 answered on 10 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?