Is it possible to implement my own RadFilterQueryProvider?

10 posts, 0 answers
  1. Matthew
    Matthew avatar
    10 posts
    Member since:
    Oct 2008

    Posted 14 Jan 2011 Link to this post

    I am looking for an easily parsible RadFilterQueryProvider.  My plan was to create a new subclass of RadFilterQueryProvider that will format the filter expression as xml. 

    Is this currently supported by the RadFilter control?
    Is there any documentation or guidance on creating a custom RadFilterQueryProvider that I can reference?
  2. Matthew
    Matthew avatar
    10 posts
    Member since:
    Oct 2008

    Posted 18 Jan 2011 Link to this post

    For anyone interested this is pretty easy to do if you look at the source code for the Rad Filter Query Providers.  I have successfully created a provider that has easily parsable sql value terms, but is still in sql format, which will achieve my immediate goals.  If I can find some time, I will implement a solution that outputs an xml fragment and post it here in case it will be useful for anyone in the future.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matthew
    Matthew avatar
    10 posts
    Member since:
    Oct 2008

    Posted 25 Jan 2011 Link to this post

    I have a working provider that produces output in the following format.

    <Expression>
      <Group concatenator="AND">
        <Clause>
          <Field>[114709]</Field>
          <Operator><![CDATA[=]]></Operator>
          <Value><![CDATA['YES']]></Value>
        </Clause>
        <Clause>
          <Field>[114711]</Field>
          <Operator><![CDATA[<>]]></Operator>
          <Value><![CDATA['NO']]></Value>
        </Clause>
        <Group concatenator="OR">
          <Clause>
            <Field>[114712]</Field>
            <Operator><![CDATA[=]]></Operator>
            <Value><![CDATA['YES']]></Value>
          </Clause>
          <Clause>
            <Field>[114713]</Field>
            <Operator><![CDATA[BETWEEN]]></Operator>
            <Value><![CDATA[1]]></Value>
            <Value><![CDATA[7]]></Value>
          </Clause>
        </Group>
      </Group>
    </Expression>

    I'd like to attach the classes that I used to make this happen in case it would be beneficial to anyone else in the future, but I am unsure how to do that.
  5. Johny
    Johny avatar
    80 posts
    Member since:
    Aug 2008

    Posted 31 Jan 2011 Link to this post

    Hi Matthew

    Why don't you just paste it in a message using the format code block option for better formatting.

    Thanks,
    Johny B
  6. DeveloperX
    DeveloperX avatar
    19 posts
    Member since:
    Apr 2004

    Posted 23 Mar 2012 Link to this post

    I want to do something similar for llblgen.

    Can you share your code with the community?
    Looks like a base for me to start from.
  7. Matthew
    Matthew avatar
    10 posts
    Member since:
    Oct 2008

    Posted 23 Mar 2012 Link to this post

    It's 16 files, so posting the code isn't an option. But I do have a custom provider created for llbl as well.  If you know of a way to attach files, or can get me a way to get the files to you, I'm happy to do so.
  8. DeveloperX
    DeveloperX avatar
    19 posts
    Member since:
    Apr 2004

    Posted 23 Mar 2012 Link to this post

    just reply to this and at the bottom of the editor is a link "attach your files"
  9. Matthew
    Matthew avatar
    10 posts
    Member since:
    Oct 2008

    Posted 23 Mar 2012 Link to this post

    Unfortunately, it appears I can only upload images.  Which is why I haven't attached it before.
  10. DeveloperX
    DeveloperX avatar
    19 posts
    Member since:
    Apr 2004

    Posted 23 Mar 2012 Link to this post

    devxnz@gmail.com
  11. DeveloperX
    DeveloperX avatar
    19 posts
    Member since:
    Apr 2004

    Posted 27 Mar 2012 Link to this post

    Were you able to email me the code?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017