locked
How to change empty grid caption ("No items") RRS feed

  • Question

  • In a html client, whenever a query return zero results, the default grid control shows a constant caption with the text "No items". I can't find how to change that text to another constant (i.e. "No rows").

    Could find only one similar solution that involves postrender code and promises, but it doesn't work, the js code throws and error.

    BTW, I am very surprised with the extremely limited documentation of lightswitch on the internet, is LS dying?

    Thanks in advance.

    Tuesday, March 25, 2014 3:03 AM

Answers

  • Hi Diego,

    The literal string is contained in the 'msls.lang-en-us.resjson' resources file:

    "listView_no_items": "No items",

    2.5.0.js', one for tables, one for listviews. You can change the resource string in the deployment package or at the standard place here: 'C:\Program Files (x86)\Microsoft SDKs\LightSwitch\v4.5\Client'.

    Dave


    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

    • Proposed as answer by Xpert360 Thursday, March 27, 2014 12:36 PM
    • Marked as answer by Angie Xu Monday, March 31, 2014 2:47 AM
    Thursday, March 27, 2014 12:05 PM