Announcement

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

    canEdit: false cause problem in FilterBuilder

    Hello,
    I guess it's related to thread 8314. I'm using SmartGWT 2.5. When I define canEdit: false in datasource, FilterBuilder doesn't show editing field (StaticText is generated).

    Does FilterBuilder support special Properties from DataSourceField? For example like ListGridField filterEditorProperties.

    #2
    CanFilter:true will enable the field for filtering without making it editable.

    Comment


      #3
      canFilter:true doesn't help. I can see item in field pick list. However edit field for entering value after operator is StaticText. This is field definition which doesn't work:
      Code:
      {
      	name : "ICO",
      	title : "ICO",
      	required : true,
      	length : 10,
      	width : "100",
      	type : "text",
      	canEdit : false,
      	canFilter : true
      }

      Comment


        #4
        That's an odd result, but another way to do this is to supply an explicit filterEditorType on the field.

        Comment


          #5
          When I add filterEditorType: "DateItem" than filter row in ListGrid build above this DS is changed but FilterBuilder (advanced filter criteria) is still StaticText. Version of Smartclient is SC_SNAPSHOT-2011-08-02.
          Last edited by pavel.tavoda@f4s.sk; 5 Aug 2011, 07:21.

          Comment


            #6
            What does "build above this DS is changed" mean?

            Comment


              #7
              All this definitions are in DataSource. Than I build ListGrid with this DataSource and than FilterBuilder with same DataSource.

              Comment


                #8
                We've now resolved this issue. The fix will be present in the next nightly build on the 2.x branch (Aug 11 or greater).

                Comment


                  #9
                  TNX, I will test it.

                  Comment


                    #10
                    I have the same problem .. in the latest 2.5 release.

                    If i set my field in datasource as canEdit="true", then i can set a filter for the value. If i set it to canEdit="false", then i can't set a value.

                    For some reasons canFilter has no functionality..

                    What's the problem here?

                    Comment


                      #11
                      Yes, that was problem, we still use same night build which was fixed (no latest).

                      Comment


                        #12
                        To get nighties, go to SmartClient.com/builds. 2.5.x nighties contain only fixes relative to 2.5. Please revisit your other recent posts since they presumably were also based on 2.5 with no fixes.

                        Comment

                        Working...
                        X