This question is locked. New answers and comments are not allowed.
In our application we have a page that is displaying a grid and much more information. In order to save space we have set up the CSS styles to reduce the amount of space that the rows take up and constrained the width of the grid. We would also like to reduce the amount of space in the Pager portion of the grid by modifying the text that appears there from "Displaying items X - Y of Z" to just "Z Total items". I have tried modifying the localization text client side instead of modifying the resource files as that would affect all of the grids but the result is the same. If I change the "Displaying items {0} - {1} of {2}" to just be "{2} Total items" the javascript has an error on the telerik.common.js: formatString method in that when it executes the following lines:
It throws an exception in that it is using the match without first checking to see if it found a match. I have tried searching for some other method of modifying this specific text in the pager without luck. I have considered binding to the databound event on the client side and then modifying it after the data is bound but that seems a bit kludgy. Does anyone have any input on solving this other than modifying the javascript myself to check if a match was found? Or can this be fixed in the official release as all it needs is a simple "if (match)" check before calling the formatter in order to support modified display strings?if (formatter) {
var match = reg.exec(s);
argument = formatter(argument, match[2]);
}