filter and show only selected node and below node

4 posts, 0 answers
  1. Cuneyt
    Cuneyt avatar
    36 posts
    Member since:
    Dec 2011

    Posted 17 Jan 2014 Link to this post

    Hi.
    I have radtreeview1 (CheckBoxes=true, CheckChildNodes=true, TriStateCheckBoxes=true) and  I am filtering an OpenAccessLinqDataSource with this radtreeview1.SelectedValue.

    But there are multiple selected value of radtreeview and this give me an error.

    How can i filter to OpenAccessLinqDataSource with control.SelectedValue (multiple value).

    Error is something like that : system.web.query.dynamic.parseexception: '==' operator incompatible with operand types 'int32?' and 'object' .
    Thanks.
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 22 Jan 2014 Link to this post

    Hi,

    In such scenarios instead of using the SelectedValue property we recommend using the NodeDataBound server event and check the appropriate node if it needs to be checked.

    Hope this will help you solve the issue.


    Regards,
    Plamen
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cuneyt
    Cuneyt avatar
    36 posts
    Member since:
    Dec 2011

    Posted 22 Jan 2014 Link to this post

    Thank you for your response. This is my mistake. But the my question title is not related with my question. I wanted to change question but title coulndt be changed. because of this this happened.

    Actual and last questions title is : how can i filter an openaccesslinqdatasource with my treeview. checked values (multiple selection).
    I post another question about it.
    Thank you.
  5. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 27 Jan 2014 Link to this post

    Hello,

    In such cases you can retrieve all checked TreeNodes upon a postback to the server-side by using the CheckedNodes property, which returns an ArrayList collection of the TreeNodes that have been checked in the browser as it is described in this on-line demo.

    Regards,
    Plamen
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top