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

Set Value on Load by FullPath

0 Answers 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Muhammad Imran
Top achievements
Rank 1
Muhammad Imran asked on 08 Dec 2010, 05:27 PM
Hi

I am using RadComboBox as below


<telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" ShowToggleImage="True"
                                            Style="vertical-align: middle;" OnClientDropDownOpened="OnClientDropDownOpenedHandler"
                                            EmptyMessage="Choose a destination" ExpandAnimation-Type="None" CollapseAnimation-Type="None">
                                            <ItemTemplate>
                                                <div id="div1">
                                                    <telerik:RadTreeView runat="server" ID="RadTreeView1" OnClientNodeClicking="nodeClicking"
                                                        Width="100%" Height="140px">
                                                        <Nodes>
                                                        </Nodes>
                                                    </telerik:RadTreeView>
                                                </div>
                                            </ItemTemplate>
                                            <Items>
                                                <telerik:RadComboBoxItem Text="" />
                                            </Items>
                                        </telerik:RadComboBox>

I am saving Full Path in DB like

string Path = "" ;
       foreach (RadComboBoxItem myItem in RadComboBoxIn.Items)
       {
           RadTreeView myTree = (RadTreeView)myItem.FindControl("RadTreeView1");
           Path = myTree.SelectedNode.FullPath;
       }

So now onload i want to set Combo and tree to that FullPath which i saved in DB.

thanks

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Muhammad Imran
Top achievements
Rank 1
Share this question
or