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

[Solved] tlrkComboBoxes in Q3 Prometheus

7 Answers 171 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 28 Jan 2008, 02:05 PM
Hi,

Since putting on the latest Prometheus, the tlrkComboBoxes doesn't seem to work. It's still int the help file, but when I try to use it it throws up a message saying it's not defined.

Please tell me I'm not being a muppet again. :-(

Regards

Bobby

7 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 28 Jan 2008, 02:47 PM
Hello Bobby,

We removed the tlrkComboBoxes array in the last build of the Prometheus controls. We are in a process of updating the online help and this change will be reflected.

If you have any troubles migrating your javascript code from the previous build to the latest one - please let us know.

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
James
Top achievements
Rank 1
answered on 28 Jan 2008, 02:51 PM
Hi again,

Yes, I am having problems with the migration. :-(

I currently have 3 combo boxes within the toolbar control and the only way I found of accessing the combo boxes was with the tlrkComboBoxes array.

Now that the tlrkComboBoxes array has been removed, how can I get to the combo boxes within a toolbar in javascript? I need to find items in the combo to programatically select them, and I also need to disable items within the combo, or the combo itself.

Regards

Bobby
0
Veselin Vasilev
Telerik team
answered on 31 Jan 2008, 10:55 AM
Hello Bobby,

We have implemented a new client-side event - OnClientLoad. It is included in our latest internal build and will be included in the forthcoming Service Pack 2 of the control.

Here is how this method will help you get the instance of a ComboBox nested in a ToolBar template:

<rad:RadToolbar ID="RadToolbar1" runat="server"> 
                <Items> 
                    <rad:RadToolbarButton runat="server" ButtonText="Select" CommandName="Select" 
                        Hidden="False"  DisplayType="TextOnly"/> 
                     <rad:RadToolbarTemplateButton> 
                        <ButtonTemplate> 
                            <telerik:RadComboBox ID="RadComboBox1"  
                            runat="server"  
                            OnClientLoad="onLoad"> 
                                <Items> 
                                    <telerik:RadComboBoxItem Text="item 1" /> 
                                    <telerik:RadComboBoxItem Text="item 2" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                        </ButtonTemplate> 
                     </rad:RadToolbarTemplateButton> 
                </Items> 
            </rad:RadToolbar> 

<script type="text/javascript"> 
var combo; 
 
function onLoad(sender) 
{ 
    combo = sender; 
} 
</script> 

Now you can use the combo variable which references to that combobox.


Attached, please find the latest internal build of RadControls Prometheus.

I hope this helps.

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
James
Top achievements
Rank 1
answered on 22 Feb 2008, 04:40 PM
Hi,

Do you know when this will be implemented in the full release, or the service pack release?

We've just bought the full product, but it's a slightly earlier version than the hotfix you posted (1314 instead of 1328), and therefore doesn't appear to have the client side event "OnClientLoad"

Regards

Bobby
0
Veselin Vasilev
Telerik team
answered on 25 Feb 2008, 01:54 PM
Hello Bobby,

The forthcoming SP2 will include an array of all the comboboxes on the page.

You can access it by:

var comboArray = Telerik.Web.UI.RadComboBox.ComboBoxes; 
//do whatever you want with the first combobox 
comboArray[0].set_text("Please select a State"); 
//do whatever you want with the second combobox 
comboArray[1].set_text("Please select a City"); 

I hope this helps.

Sincerely yours,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
James
Top achievements
Rank 1
answered on 26 Feb 2008, 08:48 AM
Hi Again,

Thanks for the reply. When is SP2 going to be released?

I'm mainly asking because at the moment I either have 2 options

1) Install using the released version we've bought, but then I lose the "combo Array" functionality and also it doesn't contain the OnClientLoad events for me to code around it.

2) I have to use the hotfixed version that I was sent, but this is only a trial version and therefore the additional "unlicensed" message appears randomly on pages.

Regards

Bobby
0
Veselin Vasilev
Telerik team
answered on 26 Feb 2008, 04:23 PM
Hello Bobby,

We already released the SP2 so you can download the official dev build from your Client.Net account.

You can see the Release notes here: http://www.telerik.com/aspnet-prometheus/2007.3.1425/VersionNotes.aspx


Sincerely yours,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
James
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
James
Top achievements
Rank 1
Share this question
or