is it possible to combine combobox with paging

5 posts, 0 answers
  1. HotlineOrbicon
    HotlineOrbicon avatar
    7 posts
    Member since:
    Nov 2006

    Posted 01 Apr 2011 Link to this post

    is it possible to combine combobox with paging
    if
    yes, can you give some examples of how to do it.

    thanks in advance
  2. Calleigh
    Calleigh avatar
    9 posts
    Member since:
    Sep 2010
  3. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Apr 2011 Link to this post

    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.
  4. HotlineOrbicon
    HotlineOrbicon avatar
    7 posts
    Member since:
    Nov 2006

    Posted 04 Apr 2011 Link to this post

    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>

     

  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 06 Apr 2011 Link to this post

    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
Back to Top