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

is it possible to combine combobox with paging

4 Answers 170 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
HotlineOrbicon
Top achievements
Rank 1
HotlineOrbicon asked on 01 Apr 2011, 12:56 PM
is it possible to combine combobox with paging
if
yes, can you give some examples of how to do it.

thanks in advance

4 Answers, 1 is accepted

Sort by
0
Calleigh
Top achievements
Rank 1
answered on 01 Apr 2011, 01:27 PM
0
Princy
Top achievements
Rank 2
answered on 04 Apr 2011, 01:06 PM
Hello,


I hope the following links will be of help in achieving the required.
ComboBox / Load on Demand modes  
ComboBox / Automatic Load On Demand


Another options is placing grid (with paging) inside RadComboBox.
ComboBox / Load on Demand Grid in Combobox


Regards,
Princy.
0
HotlineOrbicon
Top achievements
Rank 1
answered on 04 Apr 2011, 06:51 PM
that is great, I will try it later. But can i aske you about onther problem with combobox i can't solve.
how to remove or clean text from text-field of the combobox when dropdown box is opening. I tried OnClientDropDownOpening="ClearText" but couldn't figure out how to use parameters sender and arg to set text to empty 
SetText ="";
it tried later to use

 

 

var combo = $find("<%= RadComboBox1.ClientID %>");

 

 

combo.set_text(

 

'');

 

but at got this exepsion :The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).  

plase can you tell me how to make this work,"remove or clean text from text-field of the combobox when dropdown box is opening.
Her is a simple code I am using for test:

<

 

 

body>

 

 

 

<form id="form1" runat="server">

 

 

 

<div>

 

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

 

</asp:ScriptManager>

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px" >

 

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientDropDownOpening="CleanUpText" EnableTextSelection="true" >

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" Value="RadComboBoxItem2" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3" Value="RadComboBoxItem3" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4" Value="RadComboBoxItem4" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5" Value="RadComboBoxItem5" />

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 

 

 

 

</telerik:RadAjaxPanel>

 

 

 

</div>

 

 

 

<script type="text/javascript">

 

 

 

function CleanUpText(sender, arg) {

 

 

 

 

var combo = $find("<%= RadComboBox1.ClientID %>");

 

 

combo.set_text(

 

'');

 

 

}

 

 

 

 

 

</script>

 

 

 

</form>

 

 

</

 

 

body>

 

0
Kate
Telerik team
answered on 06 Apr 2011, 04:57 PM
Hi LarsB,

Please take a look at the following help article: Clearing items on the client-side.

Best wishes,
Kate
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
HotlineOrbicon
Top achievements
Rank 1
Answers by
Calleigh
Top achievements
Rank 1
Princy
Top achievements
Rank 2
HotlineOrbicon
Top achievements
Rank 1
Kate
Telerik team
Share this question
or