This is a migrated thread and some comments may be shown as answers.

filter and show only selected node and below node

3 Answers 90 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cuneyt
Top achievements
Rank 1
Cuneyt asked on 17 Jan 2014, 10:23 PM

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.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 22 Jan 2014, 12:27 PM
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.
0
Cuneyt
Top achievements
Rank 1
answered on 22 Jan 2014, 09:40 PM
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.
0
Plamen
Telerik team
answered on 27 Jan 2014, 03:14 PM
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.
Tags
TreeView
Asked by
Cuneyt
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Cuneyt
Top achievements
Rank 1
Share this question
or