This is a migrated thread and some comments may be shown as answers.
Small feature request: kendo.format support for array of values
2 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
Jaap
Top achievements
Rank 2
Jaap asked on 18 Jun 2012, 07:17 AM
I want to ask you to add support for this type of call to kendo.format:
    kendo.format('{0} - {1}', [3, 5]);
Of course this is not useful if you have the parameters in seperate variables.
But it is useful if you get the format and the parameters from some external source and that delivers the parameters as an array.
It will be a small change in the kendo.format function. I have changed the first line to this:

var values = arguments;
if (arguments.length == 2 && isArray(arguments[1])) {
    values = arguments[1];
    values.unshift(undefined);
}
(Perhaps you have better ideas about the implementation, but this is the idea and works for me now)

Regards, Jaap

2 Answers, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 18 Jun 2012, 04:27 PM
Hello Jaap,

At present such functionality is not supported in Kendo UI. This idea sounds good and we will appreciate it if you submit this suggestion as a feature request at our UserVoice page. This way the community can evaluate and vote for it. If this idea turns out to be popular, we will consider its implementation for a future releases.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Radu
Top achievements
Rank 1
answered on 05 Sep 2012, 10:52 AM
Thanks for the code! I found your website very interesting!
ejaculare precoce
Asked by
Jaap
Top achievements
Rank 2
Answers by
Iliana Nikolova
Telerik team
Radu
Top achievements
Rank 1
Share this question
or