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

LoadOnDemandURL Problem not seen as a property of RadComboBox

1 Answer 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 09 Mar 2011, 03:35 PM
Hello dear representative of Telerik. We have problems with the new version of Telerik Combobox.
In the Old version of Telerik you had the .dll file of RadCombobox.Net2.dll. And there we had a possibility of seeing the property LoadOnDemandURL as seen in the example below:


<telerik
:RadComboBox ID="Systems" runat="server" AllowCustomText="true" AutoPostBack

="false"

 

DataTextField="Name" DataValueField="Id" DropDownWidth="360px" EnableLoadOnDemand

="true"

 

HighlightTemplatedItems="true" IsCaseSensitive="false" ItemRequestTimeout

="500"

 

MarkFirstMatch="true" OnClientDropDownClosing="showContactType();" OnClientDropDownOpening

="insertSelectedType(this);"

 

OnClientKeyPressing="showDropDown(this);" OnClientSelectedIndexChanged

="systemUpdated(this);"

 

OnItemsRequested="Systems_ItemsRequested" OnSelectedIndexChanged

="Systems_Changed"

 

ShowDropDownOnTextboxClick="true" Skin="ClassicLongWidth" ToolTip="" ShowMoreResultsBox

="true">

 

<HeaderTemplate>
Please see the Function Below:
function
insertSelectedType(sender)

 

 

{

debugger ;

 

 

 

var

customers = <%= Customers.ClientID %>;

 

 

var

products = <%= Products.ClientID %>;

 

 

var

platforms = <%= Platforms.ClientID %>;

 

 

var

sstes = <%= SSTes.ClientID %>;

 

//inserts the selected tier to the ajax request

 

var tierString = "&ContactTypes=" + $F('<%= ContactTypes.ClientID %>' );

 

 

tierString +=

 

 

"&Customers="

+ customers.GetValue();

 

 

if(sstes !=null )

 

 

{

 

 tierString +=

 

 

 "&SSTes="

+ sstes.GetValue();

 

}

if(products!=null )

 

 

tierString +=

 

 

"&Products="

+ products.GetValue();

 

 

if(platforms!=null )

 

 

tierString += 

 

 

"&Platforms="

+ platforms.GetValue();

 

 

if (sender.LoadOnDemandUrl.indexOf(tierString) != -1)

 

 

 

return ;

 

 

 

var indexOfTiers = sender.LoadOnDemandUrl.indexOf("&ContactTypes=" )

 

 

 

if (indexOfTiers != -1)

 

 

{

//assume is last parameter

 

sender.LoadOnDemandUrl = sender.LoadOnDemandUrl.substring(0,indexOfTiers); 

 

}

 

sender.LoadOnDemandUrl = sender.LoadOnDemandUrl + tierString;

if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7))

{

 

$(

 

'<%= LogicalUnits.ClientID %>').style.visibility = 'hidden' ;

 

 

 

$(

 '<%= Severities.ClientID %>').style.visibility = 'hidden' ;

 

 

 

 $(

'<%= Urgencies.ClientID %>').style.visibility = 'hidden' ;

 

 

 

 

}
As you can see there was a possibility of setting a new LoadonDemandURL.
I tried to do the same in Telerik.Web.UI, Version 2010.2.817.40
But I don't have over there this property.

I wanted first of all to ask if you have any other function which can help me to make what is described below.
If I make LoadOndeMand = true for some combobox it won't be able to see the value of other combos which were loaded in the same way with AutoPostBack = false.
With LoadOnDemandURL I could set the new URL and receive the values by request.querystring.

Wait for your reply.
Thanks.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 14 Mar 2011, 12:23 PM
Hello david,

The LoadOnDemandURL property is obsolete and available only in RadComboBox for ASP.NET.
If you intend to use our RadComboBox for ASP.NET AJAX – please use the context object to pass additional parameters server-side.

Regards,
Kalina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ComboBox
Asked by
david
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Share this question
or