It will be usefull if we could define multiple templates for RadListView similar to pure NativeScirpt ListView. For example:
<ListView [items]="countries" [itemTemplateSelector]="templateSelector" (itemTap)="onItemTapFirstList($event)" class="list-group" separatorColor="white">
<template nsTemplateKey="header" let-header="item">
<GridLayout class="list-group-item bg-primary">
<Label class="list-group-item-heading" isUserInteractionEnabled="false" color="white" [text]="header.name"></Label>
</GridLayout>
</template>
<template nsTemplateKey="footer" let-footer="item">
<GridLayout class="list-group-item">
<Label class="list-group-item h4" backgroundColor="gray" [text]="footer.name"></Label>
</GridLayout>
</template>
<template nsTemplateKey="cell" let-country="item">
<GridLayout class="list-group-item">
<Label [text]="country.name" class="list-group-item-text"></Label>
</GridLayout>
</template>
</ListView>
This is important feature and we will work on implementing it.
I've the same problem with multi template in radListView
@ginev : So when we can implement it on our application design sir, Thank's for your help sir.
@culunvb this feature is planned for the upcoming release of NativeScript UI due to in about 5-6 weeks.
Okay, thank u very much sir, i'm ready for wait that feature
On Tue, May 9, 2017 at 1:55 PM, Deyan Ginev notifications@github.com
wrote:
@culunvb https://github.com/culunvb this feature is planned for the
upcoming release of NativeScript UI due to in about 5-6 weeks.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-300077624,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsBB3zeX6ZsVNxdqBlQaAuvswfqq8ks5r4A3FgaJpZM4Mn2zC
.
--
Asan
(ITNSR)
Yeah we need this feature too!!
Thanks for your effort.
This feature is already implemented simply get the latest version of the plugin, more information can be found here.
Ok Thank you for your information,
On Mon, Aug 21, 2017 at 6:25 PM, Vladimir Amiorkov <[email protected]
wrote:
This feature is already implemented simply get the latest version of the
plugin, more information can be found here
http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/ListView/multiple-templates
.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-323719273,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsB8HMEz4NCIakE-OBLgUZJGKYiFVks5saWkXgaJpZM4Mn2zC
.
--
Asan
(ITNSR)
But I have another problem sir it's about RadAutoCompleteTextView, how i
can to store the value result to variable, can u help me please?
Thank you
On Wed, Aug 23, 2017 at 4:43 PM, asan Saleh itnsr09@gmail.com wrote:
Ok Thank you for your information,
On Mon, Aug 21, 2017 at 6:25 PM, Vladimir Amiorkov <
[email protected]> wrote:This feature is already implemented simply get the latest version of the
plugin, more information can be found here
http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/ListView/multiple-templates
.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-323719273,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsB8HMEz4NCIakE-OBLgUZJGKYiFVks5saWkXgaJpZM4Mn2zC
.--
Asan
(ITNSR)
--
Asan
(ITNSR)
Hi @culunvb ,
For issues or questions regarding other components I would suggest you open a different thread as this one is for the RadListView component.
On a side note, you can take a look at our documentation for the RadAutoCompleteTextView and its events section here, you can use those events (tokenAdded, tokenRemoved and/or didAutoComplete)
Ok That's correct sir, but how to implement with nativescript core such as
.js not .ts, this is my script sir
but is nothing happen in function onTokenSelected, please help me sir
.js
for (var i = 0; i < emp.length; i++) {
_items.push(new autocmodule.TokenModel(emp[i], undefined));
}
pageData.set("dataauemp", _items);
exports.onTokenSelected=function(args){
console.log(args.token.text);
}
.xml
"onTokenSelected" showCloseButton="true" closeButtonImageSrc="res://clear">
On Wed, Aug 23, 2017 at 5:31 PM, Vladimir Amiorkov <[email protected]
wrote:
Hi @culunvb https://github.com/culunvb ,
For issues or questions regarding other components I would suggest you
open a different thread as this one is for the RadListView component.On a side note, you can take a look at our documentation for the
RadAutoCompleteTextView and its events section here
http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/AutoCompleteTextView/events,
you can use those events (tokenAdde, tokenRemoved and/or didAutoComplete)—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-324289214,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsIfiM1bvJIDoJ9MbnNBcM8uskDD5ks5sa_-KgaJpZM4Mn2zC
.
--
Asan
(ITNSR)
@culunvb
As mentioned before this thread is related to the RadListView and questions regarding other components should not be made. If you have any specific issue with the RadAutoCompleteTextView you can open a separate issue here.
Hello sir, I'll try to upload image from android to server but failed can u
help please , this is my code
var cameraModule = require("camera");
var fs = require("file-system");
var bghttpModule = require("nativescript-background-http");
var session = bghttpModule.session("image-upload");
//cameraModule.requestPermissions();
var options = { width: 300, height: 300, keepAspectRatio: true };
cameraModule.takePicture(options).then(function (imageSource) {
// console.log("Image taken!");
var folder = fs.knownFolders.documents();
var path = fs.path.join(folder.path, "Test.png");
var saved = imageSource.saveToFile(path, "png");
var request = {
url: "http://xxxxx",
method: "POST",
headers: {
"Content-Type": "application/octet-stream",
"File-Name": "Test.png"
},
description: "{ 'uploading': " + "Test.png" + " }"
};
var task = session.uploadFile(path, request);
task.on("progress", logEvent);
task.on("error", logEvent);
task.on("complete", logEvent);
function logEvent(e) {
console.log("----------------");
console.log('Status: ' + e.eventName);
// console.log(e.object);
if (e.totalBytes !== undefined) {
console.log('current bytes transfered: ' + e.currentBytes);
console.log('Total bytes to transfer: ' + e.totalBytes);
}
}
});
But i found this error Error upload image
this is my Package json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN
"readme": "NativeScript Application",
"repository": "
"nativescript": {
"id": "org.nativescript.apppanglima",
"tns-android": {
"version": "2.5.0"
}
},
"dependencies": {
"nativescript-animatecss": "^1.0.0",
"nativescript-appversion": "^1.4.1",
"nativescript-background-http": "0.0.3",
"nativescript-camera": "0.0.8",
"nativescript-cardview": "^1.3.2",
"nativescript-carousel": "^2.3.1",
"nativescript-checkbox": "^1.2.8",
"nativescript-fresco": "^1.0.3",
"nativescript-permissions": "^1.2.3",
"nativescript-sms-inbox": "^1.0.5",
"nativescript-social-share": "^1.3.2",
"nativescript-sqlite": "^1.1.7",
"nativescript-telerik-ui-pro":
"file:///D:\Project\nativescript\packages\nativescript-ui-pro.tgz",
"nativescript-theme-core": "~1.0.2",
"nativescript-toasts": "^1.0.3",
"tns-core-modules": "^2.5.0",
"tns-core-modules-snapshot": "^2.5.0-5.5.372.32"
},
"devDependencies": {
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"lazy": "1.0.11"
}
}
On Thu, Aug 24, 2017 at 7:21 PM, Vladimir Amiorkov <[email protected]
wrote:
@culunvb https://github.com/culunvb
As mentioned before this thread is related to the RadListView and
questions regarding other components should not be made. If you have any
specific issue with the RadAutoCompleteTextView you can open a separate
issue here https://github.com/telerik/nativescript-ui-feedback/issues.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-324619294,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsAaU2If9MHDGBtcIRT-S9O7nAI-Tks5sbWq7gaJpZM4Mn2zC
.
--
Asan
(ITNSR)
@culunvb Are you reading any of my responses? This is not a forum thread, this is a github issue that is specific to one and one issue only, using our feedback repository issue's for all of the issues you face in the same thread is not the way this repository work. Please read my previous responses!
Oo... Ok sir, I'm so sorry, i'll not repeat it again
Thnk you sir
On Thu, Aug 31, 2017 at 2:09 AM, Vladimir Amiorkov <[email protected]
wrote:
@culunvb https://github.com/culunvb Are you reading any of my
responses? This is not a forum thread, this is a github issue that is
specific to one and one issue only, using our feedback repository
issue's for all of the issues you face in the same thread is not the way
this repository work. Please read my previous responses!—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/telerik/nativescript-ui-feedback/issues/138#issuecomment-326089645,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMfKsFdwDUZTpZGDjYrLR1JWQlhOfgyIks5sdbN1gaJpZM4Mn2zC
.
--
Asan
(ITNSR)
Most helpful comment
This is important feature and we will work on implementing it.