Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Custom Empty Message for ComboBoxItem and SelectItem

    SmartClient version : SmartClient_v90p_2014-03-07_PowerEdition

    Browser(s) and version(s) : Internet Explorer Version 9 and Google Chrome Version 28.0.1500.95 m

    The empty ComboBoxItem and SelectItem displays "No items to show." message . I need to display custom empty message (in arabic) for empty ComboBoxItem and SelectItem.

    I tried setting the attribute "emptyMessage" but it did not work.

    Have a look at the attached image to get a clearer idea about my requirement.
    Attached Files
    Last edited by Abdulaziz A. ; 28 Apr 2014, 00:45.

    #2
    Are you setting that attribute on the item's pickListProperties?

    That's where it needs to be set.

    Comment


      #3
      I want set this property to ComboBox and Select (drop down). Please find the sample code below

      Code:
      isc.ListGrid.create({
         fileds :[
                     {ID : " " , name : " ",title : " ",  editorProperties : {editorType : "comboBox" , ..... },
                       width:200
                      }
                 ]
      });

      Code:
      isc.ListGrid.create({
         fileds :[
                     {ID : " " , name : " ",title : " ",  editorProperties : {editorType : "select" ,...... },
                       width:200
                      }
                 ]
      });
      Last edited by Abdulaziz A. ; 29 Apr 2014, 19:41.

      Comment


        #4
        OK. So now set the property via pickListProperties, which should be underneath editorProperties.

        Note your use of editorType is incorrect. It should be the name of a SmartClient class, so use "SelectItem" (not "select") and "ComboBoxItem" (not "comboBox").

        Comment


          #5
          Thank you .. it worked..
          Now, can you please let me know how to set the empty message in the frameworkMessages.properties . I tried setting it as shown below but it did not work
          Code:
          editorProperties_emptyPickListMessage : "Custom blank Message"

          Comment


            #6
            If you are trying to create a custom empty message just for this particular component, set emptyMessage in the pickListProperties (it is a property of ListGrid).

            If you are trying to change the default message system-wide, see the Internationalization overview.

            Comment


              #7
              I tried setting the following properties in frameworkMessages.properties

              Code:
               isc.ComboBoxItem.addProperties({emptyPickListMessage: 'Custom blank message'});
               isc.PickList.addProperties({emptyPickListMessage: 'Custom blank message'});
              
               isc.SelectItem.addProperties({emptyPickListMessage: 'Custom blank message'});
              It did not work.. Please let me know how to set them right.

              Comment


                #8
                If you are trying to create a custom empty message just for this particular component, set emptyMessage in the pickListProperties (it is a property of ListGrid).
                What we indicated was that you need to set emptyMessage in the pickListProperties. You tried to set "emptyPickListMessage" on the wrong class.

                That said, if you are trying to set the default system-wide, we're guessing you are doing this for Internationalization reasons, and you should read the Internationalization overview.

                Comment


                  #9
                  yes, we're doing this for Internationalization reasons, Can you please provide the link for Internationalization overview.

                  Comment


                    #10
                    You can just search the SmartClient docs for "i18n"

                    Comment

                    Working...
                    X