Announcement

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

    Customizing FilterBuilder fieldPicker

    Is it possible to use a custom control for the FieldPicker in FilterBuilder? Using multiple ComboBoxItems together as the FieldPicker would be ideal, but in searching the forums, I found this post indicating that it may not be possible:

    http://forums.smartclient.com/forum/...endering-issue

    Is there a recommended way to do this?

    #2
    You can use arbitrary controls for actually editing criteria values, but the fieldPicker cannot be similarly customized - you can apply a number of common ComboBoxItem customizations, but can't switch to a completely different control type.

    To make arbitrary controls possible there, we'd need a couple of new APIs to coordinate between the containing FilterBuilder and your custom fieldPicker, including some rules about how this would interact with a fieldDataSource, if any. This kind of functionality could be added via Feature Sponsorship.

    Note on that other thread, the user's error was that his custom CanvasItem just uses a single DynamicForm instance, instead of creating a unique DynamicForm each time the CanvasItem is created. Since there's only one DynamicForm instance, this of course creates a control that can only be used once. But what he was attempting is still not a valid, supported use case, and can't be without additional docs, APIs, and automated test cases to keep the functionality working.

    Comment


      #3
      Thank you. That's what I expected from experimenting with the code, but it was helpful to verify.

      Comment

      Working...
      X