Announcement

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

    ListGrid filter icon change

    Hello,

    I have a quick question, In smartgwt have any option to change custom icon on filter row in a ListGrid Component. For reference please find the image.
    Attached Files
    Last edited by MageshkumarM; 5 Aug 2014, 21:24.

    #2
    Change filter the image

    Any idea how to do it?

    Comment


      #3
      Hi MageshkumarM,

      I don't know that, but I can tell what I would do in that case:
      1. Search JavaDocs for a matching method
      2. Search JavaDocs for possible autochild
      3. If both not found: Get icon URL in showcase (Enterprise skin)
      4. Get icon URL in showcase (Simplicity skin)
      5. If different paths after the skin-name, check the skin's load_skin.js and skin_styles.css and adjust.
      6. If not found play with load_skin.js in the "if (isc.ListGrid)"-part with some educated guesses for the property name.
      7. If that does not work either, just replace the icon file.


      @Isomorphic:
      Out of curiosity, regarding 6):
      In the load_skin.js, there is "isc.ListGrid.changeDefaults": Where are these defaults set? I'm asking, because with that information one could know the name of the property to change. I searched my project for it and found this file: war\proj\sc\system\schema\ListGrid.ds.xml, but that does not seem to be the one. But I'm pretty sure it has to be in one of the js files (being most likely SmartClient related), but not a generated *.cache.js.

      Best regards,
      Blama

      Comment


        #4
        We don't really follow the question.. you seem to be asking where the defaults for component properties are set up, which is done where the components are defined as JavaScript classes, in ISC_Core.js et al (the SmartClient runtime).

        Comment


          #5
          Hi Isomorphic,

          exactly. I had a look at war\myproj\sc\modules-debug\ISC_Grids.js and found
          Code:
          filterImg:{src:"[SKIN]filter.png", width:50, height:50, showOver:true},
          there. So I suppose the OP could change the path via:
          Code:
          isc.ListGrid.changeDefaults("filterImg", {
          src:"[SKIN]somepath/myfilter.png",
          width:50,
          height:50,
          showOver:true            });
          in his skin's load_skin.js.

          Thanks for answering, once again I got a bit more insight.

          Best regards,
          Blama
          Last edited by Blama; 6 Aug 2014, 08:07. Reason: typo

          Comment


            #6
            Response

            Thank you Mr. Blama..

            Comment

            Working...
            X