RADGRID inside a RADCOMBOBOX

6 posts, 0 answers
  1. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 19 May 2009 Link to this post

    Hi, I have a RADGRID as a template item inside a RADCOMBOBOX. It is loaded on demand. Now whenever I try to type anything on the text section of RADCOMBOBOX, it throws an error:
    "Script control <grid_name> is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl."
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 20 May 2009 Link to this post

    Hello Omarr,

    The combobox should not be in Load on demand mode. EnableLoadOnDemand should be set to False.
    That is because you have only one item in the combobox.

    You can see a working example here: Load on demand grid in combobox

    All the best,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 20 May 2009 Link to this post

    I got most of the part working...but need to know how will it work if I enter a text in the combo box? I got it working if I enter the string in the combobox text field, but I have to PRESS ENTER key inorder to get the refreshed grid. What should I do to trigger the search on every key I press (like a simple combobox works when its Filter property is set to "Contains").
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 21 May 2009 Link to this post

    Hi Omarr,

    You can subscribe to the OnClientKeyPressing event and use the sender.get_text() to get the currently typed text. Here you can make an ajax request to the server and filter your grid.

    All the best,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 21 May 2009 Link to this post

    I attached the same code as what  onClientDropDownOpening function has; but got a javascript null object error. Can you be more specific and write a sample code for me?
    Thanks

     

  7. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 25 May 2009 Link to this post

    Hello Omarr,

    At which line does the problem occur?
    Can you paste here the relevant code please?

    Regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017