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

Javascript PanelItem Value returns NULL

1 Answer 52 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 10 Sep 2008, 06:27 PM
I have a databound PanelBar.  I'm trying to write a javascript to expand/collapse panelbar groups.  I am trying to use the findItemByValue function to get a reference to the item I want to expand.  It just returns NULL.  Upon doing some debugging I found that none of the databound panelbar items had a value assigned to them.  If I go item by item and do get_value it returns NULL.  I'm using Q2 2008 and databinding against a LINQ to SQL query.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Sep 2008, 06:03 AM
Hello Daniel,

By default the Value of the panel items is not populated during databinding. You should specify the DataValueField property to tell RadPanelBar which database column provides the Value property.

Best wishes,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Daniel
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or