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

[Solved] Radcontrols 2006 to RadControls 2009 Q3 upgradation

3 Answers 96 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Anil K
Top achievements
Rank 1
Anil K asked on 28 Oct 2009, 12:08 AM
I have upgraded from RADcontrols 2006 to 2009.  The below code that used to work is no more working.  This code is for treeview in a combobox. once a node item is selected it supposed to be the show up on the radcombobox text. I am able to populate and navigate through treeview items but when a node is selected, the item is not being displayed as the selected item in combobox.

 <div onmousedown="allowCBClose(true);">
                    <radC:RadComboBox ID="ddlHierachy" runat="server" RadControlsDir="~/Resources/" Skin="WindowsGray"
                        SkinsPath="~/Resources/Skin/RadControls/ComboBox/Skins" Height="200px" NoWrap="True"
                        Width="80%" OnClientDropDownClosing="OnClientDropDownClosing" AllowCustomText="true"
                        EnableLoadOnDemand="true" OnItemsRequested="ItemsRequested" OnClientItemsRequested="OnClientItemsRequested"
                        OnClientKeyPressing="keypressing">
                        <ItemTemplate>
                            <div onmouseup="allowCBClose(false);">
                                <radT:RadTreeView ID="rtEventCycle" runat="server" BeforeClientClick="ProcessClientClick"
                                    AfterClientClick="ProcessClientClick">
                                </radT:RadTreeView>
                            </div>
                        </ItemTemplate>
                    </radC:RadComboBox>
                </div>
Can some one help me upgrade the code to the newer version of radcontrols in 2009. I changed radC to telerik. But it doesn't work and then it says BeforeClientClick and AfterClientClick are no more valid.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 28 Oct 2009, 02:53 PM
I believe you will have to look up what events you want to subscribe to in the documentation since some functions may have been deleted or renamed.
0
Anil K
Top achievements
Rank 1
answered on 29 Oct 2009, 12:20 AM
As you can see in the code the events are
For RadComboBox
OnClientDropDownClosing
OnItemsRequested
OnClientItemsRequested
OnClientKeyPressing

And for the RadTreeView inside it
BeforeClientClick
AfterClientClick

I dont see BeforeClientClick and AfterClientClick in the new version. I dont know what is the replacement for these events or I could make out from the events listed in the newer version. Spent all day long trying to figure out. But no success. I am not sure the third party controls like telerik make us save time or spend more time for the same task.







0
Schlurk
Top achievements
Rank 2
answered on 29 Oct 2009, 01:21 PM
I believe the events you are looking for are:

BeforeClientClick - OnClientNodeClicking
AfterClientClick - OnclientNodeClicked

I haven't worked with the older controls so I'm not positive but those two methods seem to be the ones you might want to look into.
Tags
ComboBox
Asked by
Anil K
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Anil K
Top achievements
Rank 1
Share this question
or